Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("f2213755", this, 10301, true);
_root.hero_follow.removeMovieClip();
_root.menu.removeMovieClip();
_root.hero.removeMovieClip();
_root.btn_mc.removeMovieClip();
levels_array = new Array(2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
level_playing = 0;
Stage.showMenu = false;
_root._x = 0;
var savefile = SharedObject.getLocal("newgame");
if (savefile.data.savefile_available) {
_root.levels_array[0] = savefile.data.levels_array0;
_root.levels_array[1] = savefile.data.levels_array1;
_root.levels_array[2] = savefile.data.levels_array2;
_root.levels_array[3] = savefile.data.levels_array3;
_root.levels_array[4] = savefile.data.levels_array4;
_root.levels_array[5] = savefile.data.levels_array5;
_root.levels_array[6] = savefile.data.levels_array6;
_root.levels_array[7] = savefile.data.levels_array7;
_root.levels_array[8] = savefile.data.levels_array8;
_root.levels_array[9] = savefile.data.levels_array9;
_root.levels_array[10] = savefile.data.levels_array10;
_root.levels_array[11] = savefile.data.levels_array11;
}
Frame 2
var MochiAd = {getVersion:function () {
return("2.3");
}, showPreGameAd:function (options) {
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = w * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(w - 20, 0);
backing.lineTo(w - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside = bar.createEmptyMovieClip("_inside", 2);
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(w - 20, 0);
inside.lineTo(w - 20, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(w - 20, 0);
outline.lineTo(w - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _clip = this._parent._parent;
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = this._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside._xscale = pcnt;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (finished)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}, showInterLevelAd:function (options) {
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (finished) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, _allowDomains:function (server) {
var hostname = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(hostname);
}
}
return(hostname);
}, _loadCommunicator:function (options) {
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = MochiAd.getVersion();
var clip = options.clip;
var clipname = ("_mochiad_com_" + options.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (options.com_server + options.id);
MochiAd._allowDomains(server);
delete options.id;
delete options.com_server;
var depth = options.depth;
delete options.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in options) {
lv[k] = options[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var cblst = this._callbacks[cb];
if (!cblst) {
return(undefined);
}
delete this._callbacks[cb];
var args = [];
var i = 2;
while (i < cblst.length) {
args.push(cblst[i]);
i++;
}
var i = 1;
while (i < arguments.length) {
args.push(arguments[i]);
i++;
}
var method = cblst[1];
var obj = cblst[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, args);
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var q = this._queue;
delete this._queue;
var ds = this.doSend;
var i = 0;
while (i < q.length) {
var item = q[i];
ds.apply(this, item);
i++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var qargs = [];
var i = 0;
while (i < arguments.length) {
qargs.push(arguments[i]);
i++;
}
this._queue.push(qargs);
return(undefined);
}
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var lc = MochiAd._loadCommunicator({id:options.id});
if (!lc) {
return(false);
}
var fncall = ["fetchHighScores", options];
lc.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var lc = MochiAd._loadCommunicator({id:options.id});
if (!lc) {
return(false);
}
var fncall = ["sendHighScore", options];
lc.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = MochiAd.getVersion();
var clip = options.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = options.depth;
delete options.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(options);
options.res = (wh[0] + "x") + wh[1];
options.server = options.server + options.id;
delete options.id;
clip._mochiad_loaded = true;
var lv = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in options) {
lv[k] = options[k];
}
var server = lv.server;
delete lv.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.hostname = hostname;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var o = System.security;
if (o.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var b = options.clip.getBounds();
var w = 0;
var h = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = b.xMax - b.xMin;
h = b.yMax - b.yMin;
}
if ((w == 0) || (h == 0)) {
w = Stage.width;
h = Stage.height;
}
return([w, h]);
}, _parseOptions:function (options, defaults) {
var optcopy = {};
for (var k in defaults) {
optcopy[k] = defaults[k];
}
if (options) {
for (var k in options) {
optcopy[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var i = 0;
while (i < pairs.length) {
var kv = pairs[i].split("=");
optcopy[unescape(kv[0])] = unescape(kv[1]);
i++;
}
}
if (optcopy.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(optcopy);
}, _:null};
MochiAd.showPreGameAd({id:"1bddc683d8c613ca", res:"600x400"});
Frame 5
stop();
_root.hero_follow.removeMovieClip();
_root.menu.removeMovieClip();
_root.hero.removeMovieClip();
_root.btn_mc.removeMovieClip();
x = 1;
while (x <= 10) {
_root["delete" + x].removeMovieClip();
x++;
}
_root._x = 0;
savefile.data.levels_array0 = _root.levels_array[0];
savefile.data.levels_array1 = _root.levels_array[1];
savefile.data.levels_array2 = _root.levels_array[2];
savefile.data.levels_array3 = _root.levels_array[3];
savefile.data.levels_array4 = _root.levels_array[4];
savefile.data.levels_array5 = _root.levels_array[5];
savefile.data.levels_array6 = _root.levels_array[6];
savefile.data.levels_array7 = _root.levels_array[7];
savefile.data.levels_array8 = _root.levels_array[8];
savefile.data.levels_array9 = _root.levels_array[9];
savefile.data.levels_array10 = _root.levels_array[10];
savefile.data.levels_array11 = _root.levels_array[11];
savefile.data.savefile_available = true;
savefile.flush();
Instance of Symbol 53 MovieClip in Frame 5
onClipEvent (load) {
if (_root.levels_array[11] == 3) {
this.gotoAndStop(2);
}
}
Instance of Symbol 63 MovieClip "continue" in Frame 5
onClipEvent (load) {
if (_root.levels_array[0] == 3) {
this.gotoAndStop(2);
}
}
Frame 6
stop();
_root.hero_follow.removeMovieClip();
_root.menu.removeMovieClip();
_root.hero.removeMovieClip();
_root.btn_mc.removeMovieClip();
x = 1;
while (x <= 10) {
_root["delete" + x].removeMovieClip();
x++;
}
_root._x = 0;
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 0;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 1;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 2;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 3;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 4;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 5;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 6;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 7;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 8;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 9;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 10;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 114 MovieClip in Frame 6
onClipEvent (load) {
level = 11;
this.gotoAndStop(_root.levels_array[level]);
}
Instance of Symbol 118 MovieClip in Frame 6
onClipEvent (load) {
if (_root.levels_array[0] == 3) {
this.gotoAndStop(15);
}
}
Frame 8
stop();
Instance of Symbol 138 MovieClip "baddie1" in Frame 8
onClipEvent (enterFrame) {
enemy = true;
dontdie = true;
if (dead) {
dead = false;
_root.hero.dead = true;
}
}
Instance of Symbol 144 MovieClip "platform3" in Frame 8
onClipEvent (load) {
spring = true;
spring_height = -18;
}
Instance of Symbol 144 MovieClip "platform4" in Frame 8
onClipEvent (load) {
spring = true;
spring_height = -18;
}
Instance of Symbol 147 MovieClip "platform7" in Frame 8
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform6" in Frame 8
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform8" in Frame 8
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 149 MovieClip "platform11" in Frame 8
onClipEvent (load) {
move_vertical = true;
ystop = this._y + this._height;
dissapears = true;
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
} else {
this.gotoAndStop(2);
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 147 MovieClip "platform12" in Frame 8
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 164 MovieClip "delete1" in Frame 8
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 166 MovieClip "hero" in Frame 8
onClipEvent (load) {
doonceuntil_stopped = false;
if (_root.level_playing == 8) {
xholder = 20;
} else if (_root.level_playing == 9) {
xholder = 23;
} else if (_root.level_playing == 7) {
xholder = 14;
} else if (_root.level_playing == 2) {
xholder = 15;
} else {
xholder = 31;
}
_root.platform0._alpha = 0;
this._alpha = 0;
_root.hero_follow._x = this._x;
_root.hero_follow._y = this._y;
_root.platform0._x = this._x;
_root.platform0._y = this._y - (this._height / 2);
_root.menu._x = _root.btn_mc._x + 253.95;
_root.menu._y = _root.btn_mc._y;
_root.controlss._x = _root.btn_mc._x + 522.05;
_root.backgroundmc.gotoAndStop(_root.level_playing + 1);
_root.backgroundmc._x = _root.menu._x;
_root.hero_follow.swapDepths(1000);
_root.btn_mc.swapDepths(1001);
_root.menu.swapDepths(3000);
btn_mc_first = _root.btn_mc._x;
gravity = 0;
accel = 0;
speed = 6;
on_platform = false;
_root._x = 0;
startx = this._x;
run_fat_level = 1;
nextDepth = 10;
lastx = this._x;
finish = false;
}
onClipEvent (enterFrame) {
if (dead || (finish)) {
_root.fart_sound_mc.gotoAndStop(1);
}
if (this._y >= 430) {
dead = true;
}
if (this.hitTest(_root.finish)) {
if (!finish) {
_root.levels_array[_root.level_playing] = 3;
_root.levels_array[_root.level_playing + 1] = 2;
finish = true;
}
}
if (finish) {
if (_root.hero_follow._alpha >= 0) {
_root.hero_follow._alpha = _root.hero_follow._alpha - 3;
_root.hero_follow._x = _root.hero_follow._x + ((_root.finish._x - _root.hero_follow._x) / 10);
_root.hero_follow._y = _root.hero_follow._y + ((_root.finish._y - _root.hero_follow._y) / 10);
} else if (abcdefg != true) {
abcdefg = true;
_root.menu.gotoAndStop(2);
if (_root.level_playing == 11) {
_root.menu.gotoAndStop(15);
}
}
} else {
nopressingup = false;
if (((gravity < 15) && (!on_platform)) || (dead)) {
gravity++;
} else {
if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
if (((run_fat_level >= 5) || (_root["platform" + j].moving)) || (_root["platform" + u].moveable)) {
if (lasty <= (_root["platform" + j]._y - (_root["platform" + j]._height / 2))) {
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
}
}
if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
}
u = 0;
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else if (noright && (accel >= 0)) {
} else {
if ((this._x + accel) > startx) {
_root.btn_mc._x = _root.btn_mc._x + accel;
_root._x = _root._x - accel;
} else {
_root.btn_mc._x = btn_mc_first;
_root._x = 0;
}
this._x = this._x + accel;
}
if (dead) {
if (poopoo != true) {
poopoo = true;
_root.die_sound.play();
_root.menu.gotoAndPlay(3);
}
_root.hero_follow._alpha = _root.hero_follow._alpha - 5;
accel = 0;
} else {
in_the_platform = false;
on_a_platform = false;
x = 1;
while (x <= xholder) {
if (_root["platform" + x].hitTest(this)) {
on_a_platform = true;
}
if (this.hitTest(_root["food" + x])) {
nextDepth++;
duplicateMovieClip (_root.food_explode, "food_explode" + nextDepth, nextDepth);
_root["food_explode" + nextDepth]._x = _root["food" + x]._x;
_root["food_explode" + nextDepth]._y = _root["food" + x]._y;
_root["food_explode" + nextDepth].go = true;
nextDepth++;
duplicateMovieClip (_root.food_explode, "food_explode" + nextDepth, nextDepth);
_root["food_explode" + nextDepth]._x = _root["food" + x]._x;
_root["food_explode" + nextDepth]._y = _root["food" + x]._y;
_root["food_explode" + nextDepth].go = true;
nextDepth++;
duplicateMovieClip (_root.food_explode, "food_explode" + nextDepth, nextDepth);
_root["food_explode" + nextDepth]._x = _root["food" + x]._x;
_root["food_explode" + nextDepth]._y = _root["food" + x]._y;
_root["food_explode" + nextDepth].go = true;
_root["food" + x].gotoAndStop(2);
if (run_fat_level < 8) {
run_fat_level++;
}
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if (((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2)))) {
if (gravity >= 0) {
this._y = _root["platform" + x]._y - (_root["platform" + x]._height / 2);
gravity = 0;
on_platform = true;
noupallowed = false;
if (_root["platform" + x].spring) {
_root["spring" + x].gotoAndPlay(2);
if (run_fat_level >= 7) {
gravity = _root["platform" + x].spring_height;
} else if (run_fat_level >= 5) {
gravity = _root["platform" + x].spring_height - 1;
} else if (run_fat_level >= 3) {
gravity = _root["platform" + x].spring_height - 2;
} else if (run_fat_level >= 1) {
gravity = _root["platform" + x].spring_height - 3;
}
on_platform = false;
noupallowed = true;
in_the_platform = true;
}
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && _root["platform" + j].dissapears) {
if (this._y <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if (((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) && (!_root["platform" + x].moveable)) {
hitting_bottom = true;
} else {
hitting_bottom = false;
}
if (_root["platform" + x].moveable) {
if (lasty > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if ((lastx + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((lastx - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
in_the_platform = true;
if (gravity < 0) {
on_platform = false;
hitting_bottom = false;
gravity = 0;
this._y = (_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height;
}
if (_root["platform" + x].springbottom) {
gravity = _root["platform" + x].spring_height;
_root["spring" + x].gotoAndPlay(2);
}
if (_root["platform" + x].moveable) {
u = x;
nopressingup = true;
_root["platform" + x].gravity = 0;
_root["platform" + x].on_platform = true;
}
if (_root["platform" + x].explodable) {
_root["platform" + x].gotoAndStop(2);
_root["platform" + x].dead = true;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && (this._y > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - this._height) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
explode_accel = accel;
if (_root["platform" + x].explodable && ((_root.hero.explode_accel >= 10) || (_root.hero.explode_accel <= -10))) {
_root["platform" + x].gotoAndStop(2);
_root["platform" + x].dead = true;
} else {
noleft = true;
if (this._y > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable && (!_root["platform" + x].noleft)) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
} else {
accel = 0;
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
if ((this._x + accel) > startx) {
_root._x = _root._x - ((((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) - this._x) + 2);
_root.btn_mc._x = _root.btn_mc._x + ((((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) - this._x) + 2);
}
in_the_platform = true;
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else if (!this.hitTest(_root["platform" + b])) {
if ((this._y < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - this._height) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && (this._y > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - this._height) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
explode_accel = accel;
if (_root["platform" + x].explodable && ((_root.hero.explode_accel >= 10) || (_root.hero.explode_accel <= -10))) {
_root["platform" + x].gotoAndStop(2);
_root["platform" + x].dead = true;
} else {
noright = true;
if (this._y > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable && (!_root["platform" + x].noright)) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
} else {
accel = 0;
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
if ((this._x + accel) > startx) {
_root._x = _root._x - ((((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - this._x) - 2);
_root.btn_mc._x = _root.btn_mc._x + ((((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - this._x) - 2);
}
in_the_platform = true;
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if ((this._y < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - this._height) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
if (_root["baddie" + x].hitTest(this)) {
if (lasty <= (_root["baddie" + x]._y - (_root["baddie" + x]._height / 2))) {
if (((this._x + (this._width / 2)) >= (_root["baddie" + x]._x - (_root["baddie" + x]._width / 2))) && ((this._x - (this._width / 2)) <= (_root["baddie" + x]._x + (_root["baddie" + x]._width / 2)))) {
if (!_root["baddie" + x].dead) {
if (gravity >= 0) {
_root.kill_sound.play();
_root["baddie" + x].dead = true;
this._y = _root["baddie" + x]._y - (_root["baddie" + x]._height / 2);
gravity = -9;
if (Key.isDown(38)) {
if (!noupallowed) {
gravity = -10;
}
}
}
}
}
} else if (_root["baddie" + x].hitTest(this)) {
if (!_root["baddie" + x].dead) {
dead = true;
accel = 0;
gravity = -9;
}
}
}
if (this.hitTest(_root["platform" + x]) && (!in_the_platform)) {
this._y = _root["platform" + x]._y - (_root["platform" + x]._height / 2);
gravity = 0;
on_platform = true;
noupallowed = false;
j = x;
}
_root["sinker_" + x]._x = _root["platform" + x]._x;
_root["sinker_" + x]._y = _root["platform" + x]._y;
x++;
}
if (!on_a_platform) {
on_platform = false;
}
if (Key.isDown(37)) {
if (!noleft) {
if (accel <= 0) {
_root.hero_follow._xscale = -100;
}
noright = false;
accelling = true;
if (Key.isDown(32) && (run_fat_level > 1)) {
if (accel > -15) {
accel--;
}
} else if (run_fat_level >= 4) {
if (accel < -5) {
accel++;
} else {
accel--;
}
} else if (accel < -6) {
accel++;
} else {
accel--;
}
}
} else if (Key.isDown(39)) {
if (!noright) {
if (accel >= 0) {
_root.hero_follow._xscale = 100;
}
noleft = false;
accelling = true;
if (Key.isDown(32) && (run_fat_level > 1)) {
if (accel < 15) {
accel++;
}
} else if (run_fat_level >= 4) {
if (accel > 5) {
accel--;
} else {
accel++;
}
} else if (accel > 6) {
accel--;
} else {
accel++;
}
}
} else {
accelling = false;
_root.hero_follow.legs.gotoAndStop(1);
_root.hero_follow.arms.gotoAndStop(1);
}
if (((this._x + (this._width / 2)) >= (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) && ((this._x - (this._width / 2)) <= (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
if (!noupallowed) {
if (Key.isDown(38)) {
if ((on_platform && (!nopressingup)) || (_root["platform" + j].moveable && (this.hitTest(_root["platform" + j])))) {
on_platform = false;
if (run_fat_level >= 7) {
gravity = -12;
} else if (run_fat_level >= 5) {
gravity = -13;
} else if (run_fat_level >= 3) {
gravity = -14;
} else if (run_fat_level >= 1) {
gravity = -15;
}
_root.jump_sound.play();
}
} else if (!on_platform) {
if (gravity < 0) {
gravity++;
}
}
}
}
}
if (Key.isDown(37)) {
if (Key.isDown(32) && (run_fat_level > 1)) {
_root.hero_follow.legs.gotoAndStop(3);
_root.hero_follow.arms.gotoAndStop(3);
} else {
_root.hero_follow.legs.gotoAndStop(2);
_root.hero_follow.arms.gotoAndStop(2);
}
if (accel > 0) {
_root.hero_follow.legs.gotoAndStop(4);
_root.hero_follow.arms.gotoAndStop(4);
}
} else if (Key.isDown(39)) {
if (Key.isDown(32) && (run_fat_level > 1)) {
_root.hero_follow.legs.gotoAndStop(3);
_root.hero_follow.arms.gotoAndStop(3);
} else {
_root.hero_follow.legs.gotoAndStop(2);
_root.hero_follow.arms.gotoAndStop(2);
}
if (accel < 0) {
_root.hero_follow.legs.gotoAndStop(4);
_root.hero_follow.arms.gotoAndStop(4);
}
}
if (Key.isDown(32) && (run_fat_level > 1)) {
run_fat_level = run_fat_level - 0.2;
duplicateMovieClip (_root.fart, "fart" + nextDepth, nextDepth);
_root["fart" + nextDepth]._x = this._x - accel;
_root["fart" + nextDepth]._y = this._y - 15;
_root["fart" + nextDepth].go = true;
nextDepth++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y;
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
_root.hero_follow.gotoAndStop(Math.round(abc));
if (nextDepth >= 100) {
nextDepth = 0;
}
_root.hero_follow._x = this._x;
_root.hero_follow._y = this._y;
_root.platform0._x = this._x;
_root.platform0._y = this._y - (this._height / 2);
_root.menu._x = _root.btn_mc._x + 253.95;
_root.menu._y = _root.btn_mc._y;
_root.backgroundmc._x = _root.menu._x;
_root.controlss._x = _root.btn_mc._x + 522.05;
if (Key.isDown(32) && (run_fat_level > 1)) {
if (doonceuntil_stopped != true) {
soundxxx = random(6) + 1;
if (soundxxx == 1) {
_root.fart_sound_mc.gotoAndPlay(2);
} else if (soundxxx == 2) {
_root.fart_sound_mc.gotoAndPlay(18);
} else if (soundxxx == 3) {
_root.fart_sound_mc.gotoAndPlay(38);
} else if (soundxxx == 4) {
_root.fart_sound_mc.gotoAndPlay(55);
} else if (soundxxx == 5) {
_root.fart_sound_mc.gotoAndPlay(96);
} else if (soundxxx == 6) {
_root.fart_sound_mc.gotoAndPlay(129);
}
doonceuntil_stopped = true;
}
} else {
doonceuntil_stopped = false;
_root.fart_sound_mc.stop();
}
}
}
Instance of Symbol 168 MovieClip "fart" in Frame 8
onClipEvent (enterFrame) {
if (go) {
this._alpha = this._alpha - 20;
this._y = this._y - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 213 MovieClip "platform_explode" in Frame 8
onClipEvent (load) {
gravity = random(14) - 7;
x = random(10) - 5;
}
onClipEvent (enterFrame) {
if (go) {
this._rotation = this._rotation + x;
this._alpha = this._alpha - 8;
this._y = this._y + ((gravity = gravity + 0.5));
this._x = this._x + x;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 215 MovieClip "food_explode" in Frame 8
onClipEvent (load) {
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(this);
myColoredObject.setRGB(myColor);
gravity = random(10) - 5;
x = random(6) - 3;
}
onClipEvent (enterFrame) {
if (go) {
this._alpha = this._alpha - 10;
if (go) {
this._y = this._y + ((gravity = gravity + 0.5));
this._x = this._x + x;
}
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 218 MovieClip "fart_sound_mc" in Frame 8
onClipEvent (load) {
this.stop();
}
Instance of Symbol 251 MovieClip "delete2" in Frame 8
onClipEvent (load) {
this.swapDepths(2001);
}
Instance of Symbol 144 MovieClip "platform24" in Frame 9
onClipEvent (load) {
springbottom = true;
spring_height = 15;
}
Instance of Symbol 144 MovieClip "platform23" in Frame 9
onClipEvent (load) {
springbottom = true;
spring_height = 15;
}
Instance of Symbol 147 MovieClip "platform11" in Frame 9
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 144 MovieClip "platform3" in Frame 9
onClipEvent (load) {
spring = true;
spring_height = -18;
}
Instance of Symbol 144 MovieClip "platform4" in Frame 9
onClipEvent (load) {
spring = true;
spring_height = -18;
}
Instance of Symbol 144 MovieClip "platform5" in Frame 9
onClipEvent (load) {
spring = true;
spring_height = -18;
}
Instance of Symbol 127 MovieClip "platform25" in Frame 9
onClipEvent (load) {
raises = true;
speed = 3.8;
}
Instance of Symbol 147 MovieClip "platform20" in Frame 9
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform21" in Frame 9
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 149 MovieClip "platform14" in Frame 9
onClipEvent (load) {
move_vertical = true;
ystop = this._y + this._height;
dissapears = true;
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
} else {
this.gotoAndStop(2);
}
if (x != this._y) {
moving = true;
} else {
moving = false;
}
speed = 0;
}
Instance of Symbol 147 MovieClip "platform13" in Frame 9
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 149 MovieClip "platform26" in Frame 9
onClipEvent (load) {
move_vertical = true;
ystop = this._y + (this._height - 2);
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 259 MovieClip "platform19" in Frame 9
onClipEvent (load) {
skipper = 19;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
go_on_top = false;
x = 0;
while (x <= 18) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 147 MovieClip "platform5" in Frame 10
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform6" in Frame 10
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform7" in Frame 10
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 259 MovieClip "platform13" in Frame 10
onClipEvent (load) {
skipper = 13;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 14) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 144 MovieClip "platform15" in Frame 10
onClipEvent (load) {
spring = true;
spring_height = -18;
}
Instance of Symbol 149 MovieClip "platform11" in Frame 10
onClipEvent (load) {
move_vertical = true;
ystop = this._y + (this._height - 2);
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 138 MovieClip "baddie1" in Frame 10
onClipEvent (enterFrame) {
enemy = true;
dontdie = true;
if (dead) {
dead = false;
_root.hero.dead = true;
}
}
Instance of Symbol 147 MovieClip "platform15" in Frame 11
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform13" in Frame 11
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform11" in Frame 11
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform14" in Frame 11
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform19" in Frame 11
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform18" in Frame 11
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform12" in Frame 11
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 259 MovieClip "platform16" in Frame 11
onClipEvent (load) {
skipper = 16;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 17) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 149 MovieClip "platform4" in Frame 11
onClipEvent (load) {
move_vertical = true;
ystop = this._y + this._height;
dissapears = true;
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
} else {
this.gotoAndStop(2);
}
if (x != this._y) {
moving = true;
} else {
moving = false;
}
speed = 0;
}
Instance of Symbol 264 MovieClip "baddie2" in Frame 11
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
if (this._alpha >= 0) {
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this.inside.stop();
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 147 MovieClip "platform31" in Frame 11
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 149 MovieClip "platform17" in Frame 11
onClipEvent (load) {
move_vertical = true;
ystop = this._y + this._height;
dissapears = true;
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
} else {
this.gotoAndStop(2);
}
if (x != this._y) {
moving = true;
} else {
moving = false;
}
speed = 0;
}
Instance of Symbol 267 MovieClip "delete1" in Frame 11
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 259 MovieClip "platform14" in Frame 12
onClipEvent (load) {
skipper = 14;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 15) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 147 MovieClip "platform8" in Frame 12
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform5" in Frame 12
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform6" in Frame 12
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 149 MovieClip "platform15" in Frame 12
onClipEvent (load) {
move_vertical = true;
ystop = this._y + (this._height - 2);
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 269 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 269 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 269 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 138 MovieClip "baddie1" in Frame 12
onClipEvent (enterFrame) {
enemy = true;
dontdie = true;
if (dead) {
dead = false;
_root.hero.dead = true;
}
}
Instance of Symbol 273 MovieClip "delete1" in Frame 12
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 269 MovieClip in Frame 13
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 269 MovieClip in Frame 13
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 147 MovieClip "platform17" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform16" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform13" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform12" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 144 MovieClip "platform6" in Frame 13
onClipEvent (load) {
spring = true;
spring_height = -18;
}
Instance of Symbol 147 MovieClip "platform18" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform14" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform15" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform11" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform10" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform9" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform20" in Frame 13
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 276 MovieClip "delete1" in Frame 13
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 264 MovieClip "baddie2" in Frame 14
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
if (this._alpha >= 0) {
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this.inside.stop();
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 264 MovieClip "baddie3" in Frame 14
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
if (this._alpha >= 0) {
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this.inside.stop();
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 147 MovieClip "platform6" in Frame 14
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform3" in Frame 14
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform7" in Frame 14
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 144 MovieClip "platform22" in Frame 14
onClipEvent (load) {
spring = true;
spring_height = -18;
}
Instance of Symbol 259 MovieClip "platform29" in Frame 14
onClipEvent (load) {
skipper = 29;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 14) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 147 MovieClip "platform2" in Frame 14
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform9" in Frame 14
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 149 MovieClip "platform12" in Frame 14
onClipEvent (load) {
move_vertical = true;
ystop = this._y + this._height;
dissapears = true;
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
} else {
this.gotoAndStop(2);
}
if (x != this._y) {
moving = true;
} else {
moving = false;
}
speed = 0;
}
Instance of Symbol 138 MovieClip "baddie1" in Frame 14
onClipEvent (enterFrame) {
enemy = true;
dontdie = true;
if (dead) {
dead = false;
_root.hero.dead = true;
}
}
Instance of Symbol 147 MovieClip "platform8" in Frame 14
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 278 MovieClip "delete1" in Frame 14
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 127 MovieClip "platform6" in Frame 15
onClipEvent (load) {
raises = true;
speed = -3;
}
Instance of Symbol 259 MovieClip "platform12" in Frame 15
onClipEvent (load) {
skipper = 12;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 13) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 149 MovieClip "platform7" in Frame 15
onClipEvent (load) {
move_vertical = true;
ystop = this._y + (this._height - 2);
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 259 MovieClip "platform13" in Frame 15
onClipEvent (load) {
skipper = 13;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 12) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 147 MovieClip "platform4" in Frame 16
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform18" in Frame 16
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 149 MovieClip "platform5" in Frame 16
onClipEvent (load) {
move_vertical = true;
ystop = this._y + this._height;
dissapears = true;
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
} else {
this.gotoAndStop(2);
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 147 MovieClip "platform2" in Frame 16
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform3" in Frame 16
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 259 MovieClip "platform12" in Frame 16
onClipEvent (load) {
skipper = 12;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 11) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 127 MovieClip "platform10" in Frame 16
onClipEvent (load) {
raises = true;
speed = -2;
}
Instance of Symbol 147 MovieClip "platform17" in Frame 16
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 259 MovieClip "platform11" in Frame 16
onClipEvent (load) {
skipper = 11;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 19) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 147 MovieClip "platform6" in Frame 16
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (_root.platform14.dead) {
dead = true;
}
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform14" in Frame 16
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 127 MovieClip "platform20" in Frame 16
onClipEvent (load) {
raises = true;
speed = -2;
}
Instance of Symbol 264 MovieClip "baddie2" in Frame 16
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
if (this._alpha >= 0) {
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this.inside.stop();
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 264 MovieClip "baddie3" in Frame 16
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
if (this._alpha >= 0) {
this._alpha = this._alpha - 10;
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this.inside.stop();
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 138 MovieClip "baddie1" in Frame 16
onClipEvent (enterFrame) {
enemy = true;
dontdie = true;
if (dead) {
dead = false;
_root.hero.dead = true;
}
}
Instance of Symbol 281 MovieClip "delete1" in Frame 16
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 138 MovieClip "baddie1" in Frame 17
onClipEvent (enterFrame) {
enemy = true;
dontdie = true;
if (dead) {
dead = false;
_root.hero.dead = true;
}
}
Instance of Symbol 149 MovieClip "platform18" in Frame 17
onClipEvent (load) {
move_vertical = true;
ystop = this._y + (this._height - 2);
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 259 MovieClip "platform14" in Frame 17
onClipEvent (load) {
skipper = 14;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 15) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 259 MovieClip "platform15" in Frame 17
onClipEvent (load) {
skipper = 15;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 14) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 147 MovieClip "platform23" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform3" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform5" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform6" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform7" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform8" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform19" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform9" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform10" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform20" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform13" in Frame 17
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 284 MovieClip "delete1" in Frame 17
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 147 MovieClip "platform10" in Frame 18
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform9" in Frame 18
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform8" in Frame 18
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 149 MovieClip "platform13" in Frame 18
onClipEvent (load) {
move_vertical = true;
ystop = this._y + (this._height - 2);
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 127 MovieClip "platform12" in Frame 18
onClipEvent (load) {
raises = true;
speed = -10;
}
Instance of Symbol 147 MovieClip "platform24" in Frame 18
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform25" in Frame 18
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform29" in Frame 18
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform28" in Frame 18
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform26" in Frame 18
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform27" in Frame 18
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 269 MovieClip in Frame 18
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 269 MovieClip in Frame 18
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 269 MovieClip in Frame 18
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 269 MovieClip in Frame 18
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 269 MovieClip in Frame 18
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 288 MovieClip "delete1" in Frame 18
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 259 MovieClip "platform14" in Frame 19
onClipEvent (load) {
skipper = 14;
moveable = true;
gravity = 0;
accel = 0;
speed = 0;
on_platform = false;
lastx = this._x;
}
onClipEvent (enterFrame) {
if ((gravity < 15) && (!on_platform)) {
gravity++;
moving = false;
speed = 0;
} else if (_root["platform" + j].move_vertical) {
if (_root["platform" + j]._y <= _root["platform" + j].ystop) {
speed = 2;
moving = true;
_root["platform" + j].speed = 2;
this._y = this._y + _root["platform" + j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
} else if (_root["platform" + j].moveable) {
if (_root["platform" + j].moving) {
moving = true;
speed = _root["platform" + _root["platform" + j].j].speed;
this._y = this._y + _root["platform" + _root["platform" + j].j].speed;
if (_root["platform" + (j - 1)].raises) {
_root["platform" + (j - 1)]._y = _root["platform" + (j - 1)]._y - _root["platform" + (j - 1)].speed;
}
}
}
this._y = this._y + gravity;
if (!accelling) {
if (accel < 0) {
accel++;
}
if (accel > 0) {
accel--;
}
}
if ((this._x + accel) < 10) {
this._x = 10;
accel = 0;
} else {
this._x = this._x + accel;
}
if (!this.hitTest(_root["platform" + j])) {
on_platform = false;
}
x = 0;
while (x <= 15) {
if (this.hitTest(_root["baddie" + x])) {
if (_root["baddie" + x].dontdie != true) {
_root["baddie" + x].dead = true;
}
}
if (x == skipper) {
x++;
}
if (_root["platform" + x].hitTest(this)) {
if (lasty <= (_root["platform" + x]._y - (_root["platform" + x]._height / 2))) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
allowed_platform = true;
}
}
} else {
allowed_platform = false;
}
if (allowed_platform) {
if ((this._x + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if ((this._x - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
this._y = (_root["platform" + x]._y - (_root["platform" + x]._height / 2)) - (this._height / 2);
gravity = 0;
on_platform = true;
if (!_root["platform" + x].move_vertical) {
if (((this.hitTest(_root["platform" + x]) && (_root["platform" + j].move_vertical)) && (_root["platform" + j].hitTest(_root["platform" + x]))) && (((this._x - (this._width / 2)) < (_root["platform" + j]._x + (_root["platform" + j]._width / 2))) && ((this._x + (this._width / 2)) > (_root["platform" + j]._x - (_root["platform" + j]._width / 2))))) {
if (this.hitTest(_root["platform" + j]) && (_root["platform" + j].dissapears)) {
if ((this._y + (this._height / 2)) <= ((_root["platform" + j]._y - (_root["platform" + j]._height / 2)) + 5)) {
if (_root["platform" + j]._y >= _root["platform" + j].ystop) {
_root["platform" + j].gotoAndStop(2);
}
}
}
}
}
j = x;
}
}
}
}
if ((lasty - this._height) > (_root["platform" + x]._y + (_root["platform" + x]._height / 2))) {
if (((lastx - 1) + (this._width / 2)) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) {
if (((lastx + 1) - (this._width / 2)) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) {
hitting_bottom = true;
}
}
} else {
hitting_bottom = false;
}
if (_root["platform" + x].hitTest(this)) {
if (hitting_bottom) {
if (gravity < 0) {
hitting_bottom = false;
this._y = ((_root["platform" + x]._y + (_root["platform" + x]._height / 2)) + this._height) - (this._height / 2);
gravity = 0;
}
}
}
if ((lastx - (this._width / 2)) >= ((-5 + _root["platform" + x]._x) + (_root["platform" + x]._width / 2))) {
hit_left = true;
if (((((this._x - (this._width / 2)) - 1) <= (_root["platform" + x]._x + (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_left) {
noleft = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noleft = false;
_root["platform" + x].accel = -5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = -10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x + (_root["platform" + x]._width / 2)) + (this._width / 2)) + 2;
b = x;
}
}
} else {
hit_left = false;
if (!this.hitTest(_root["platform" + b])) {
if (((this._y + (this._height / 2)) < (_root["platform" + b]._y - (_root["platform" + b]._height / 2))) || ((this._y - (this._height / 2)) > (_root["platform" + b]._y + (_root["platform" + b]._height / 2)))) {
noleft = false;
}
}
}
if ((lastx + (this._width / 2)) <= ((5 + _root["platform" + x]._x) - (_root["platform" + x]._width / 2))) {
hit_right = true;
if (((((this._x + (this._width / 2)) + 1) >= (_root["platform" + x]._x - (_root["platform" + x]._width / 2))) && ((this._y + (this._height / 2)) > (_root["platform" + x]._y - (_root["platform" + x]._height / 2)))) && ((this._y - (this._height / 2)) < (_root["platform" + x]._y + (_root["platform" + x]._height / 2)))) {
if (hit_right) {
noright = true;
if ((this._y + (this._height / 2)) > ((_root["platform" + x]._y - (_root["platform" + x]._height / 2)) + 1)) {
if (_root["platform" + x].moveable) {
noright = false;
_root["platform" + x].accel = 5;
if (Key.isDown(32) && (run_fat_level > 1)) {
_root["platform" + x].accel = 10;
}
}
} else {
accel = 0;
}
if (!_root["platform" + x].moveable) {
accel = 0;
}
this._x = ((_root["platform" + x]._x - (_root["platform" + x]._width / 2)) - (this._width / 2)) - 2;
z = x;
}
}
} else {
hit_right = false;
if (!this.hitTest(_root["platform" + z])) {
if (((this._y + (this._height / 2)) < ((gravity + _root["platform" + z]._y) - (_root["platform" + z]._height / 2))) || ((this._y - (this._height / 2)) > ((gravity + _root["platform" + z]._y) + (_root["platform" + z]._height / 2)))) {
noright = false;
}
}
}
x++;
}
if (!this.hitTest(_root["platform" + j])) {
doonce = false;
}
if (((this._x + (this._width / 2)) < (_root["platform" + j]._x - (_root["platform" + j]._width / 2))) || ((this._x - (this._width / 2)) > (_root["platform" + j]._x + (_root["platform" + j]._width / 2)))) {
on_platform = false;
}
if (lastx != this._x) {
lastx = this._x;
}
lasty = this._y + (this._height / 2);
if (run_fat_level <= 1) {
run_fat_level = 1;
}
abc = run_fat_level;
Math.round(abc);
this.gotoAndStop(abc);
}
Instance of Symbol 147 MovieClip "platform8" in Frame 19
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 138 MovieClip "baddie1" in Frame 19
onClipEvent (enterFrame) {
enemy = true;
dontdie = true;
if (dead) {
dead = false;
_root.hero.dead = true;
}
}
Instance of Symbol 144 MovieClip "platform18" in Frame 19
onClipEvent (load) {
spring = true;
spring_height = -18;
}
Instance of Symbol 147 MovieClip "platform15" in Frame 19
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform16" in Frame 19
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform3" in Frame 19
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform4" in Frame 19
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 147 MovieClip "platform5" in Frame 19
onClipEvent (load) {
explodable = true;
}
onClipEvent (enterFrame) {
if (dead) {
if (explodable) {
explodable = false;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
_root.hero.nextDepth++;
duplicateMovieClip (_root.platform_explode, "platform_explode" + _root.hero.nextDepth, _root.hero.nextDepth);
_root["platform_explode" + _root.hero.nextDepth]._x = this._x;
_root["platform_explode" + _root.hero.nextDepth]._y = this._y;
_root["platform_explode" + _root.hero.nextDepth].go = true;
}
this._y = this._y + 1000;
}
}
Instance of Symbol 149 MovieClip "platform9" in Frame 19
onClipEvent (load) {
move_vertical = true;
ystop = this._y + (this._height - 2);
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 149 MovieClip "platform19" in Frame 19
onClipEvent (load) {
move_vertical = true;
ystop = this._y + (this._height - 2);
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 149 MovieClip "platform10" in Frame 19
onClipEvent (load) {
move_vertical = true;
ystop = this._y + (this._height - 2);
speed = 0;
}
onClipEvent (enterFrame) {
x = this._y;
if (this._y <= ystop) {
this._y = this._y + speed;
}
speed = 0;
if (x != this._y) {
moving = true;
} else {
moving = false;
}
}
Instance of Symbol 269 MovieClip in Frame 19
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 269 MovieClip in Frame 19
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 269 MovieClip in Frame 19
onClipEvent (load) {
this.gotoAndPlay(random(70) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (doonce != true) {
doonce = true;
_root.hero.dead = true;
_root.hero.gravity = -10;
}
}
}
Instance of Symbol 291 MovieClip "delete1" in Frame 19
onClipEvent (load) {
this.swapDepths(2000);
}
Frame 20
_root.hero_follow.removeMovieClip();
_root.menu.removeMovieClip();
_root.hero.removeMovieClip();
_root.btn_mc.removeMovieClip();
x = 1;
while (x <= 10) {
_root["delete" + x].removeMovieClip();
x++;
}
_root._x = 0;
gotoAndStop(_root.level_playing + 8);
savefile.data.levels_array0 = _root.levels_array[0];
savefile.data.levels_array1 = _root.levels_array[1];
savefile.data.levels_array2 = _root.levels_array[2];
savefile.data.levels_array3 = _root.levels_array[3];
savefile.data.levels_array4 = _root.levels_array[4];
savefile.data.levels_array5 = _root.levels_array[5];
savefile.data.levels_array6 = _root.levels_array[6];
savefile.data.levels_array7 = _root.levels_array[7];
savefile.data.levels_array8 = _root.levels_array[8];
savefile.data.levels_array9 = _root.levels_array[9];
savefile.data.levels_array10 = _root.levels_array[10];
savefile.data.levels_array11 = _root.levels_array[11];
savefile.data.savefile_available = true;
savefile.flush();
Symbol 13 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay (5);
}
Symbol 13 MovieClip Frame 2
gotoAndPlay (1);
Symbol 13 MovieClip Frame 40
_root.play();
Symbol 17 Button
on (release) {
getURL ("http://playhitgames.com/", "_blank");
}
Symbol 22 Button
on (press) {
gotoAndStop (2);
}
Symbol 27 Button
on (press) {
gotoAndStop (1);
}
Symbol 28 MovieClip Frame 1
stop();
myLoop = new Sound(myLoopMc);
myLoop.attachSound("myLoop01");
myLoopVolume = 100;
myLoop.setVolume(myLoopVolume);
Symbol 28 MovieClip Frame 2
myLoop = new Sound(myLoopMc);
myLoop.attachSound("myLoop01");
myLoopVolume = 0;
myLoop.setVolume(myLoopVolume);
Symbol 32 Button
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 37 Button
on (release) {
getURL ("http://playhitgames.com/", "_blank");
}
Symbol 41 Button
on (release) {
getURL ("http://playhitgames.com/", "_blank");
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 57 Button
on (press) {
_root.menutwo.gotoAndStop(2);
}
Symbol 61 Button
on (press) {
_root.gotoAndStop(6);
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 74 Button
on (press) {
_root.levels_array[0] = 2;
_root.levels_array[1] = 1;
_root.levels_array[2] = 1;
_root.levels_array[3] = 1;
_root.levels_array[4] = 1;
_root.levels_array[5] = 1;
_root.levels_array[6] = 1;
_root.levels_array[7] = 1;
_root.levels_array[8] = 1;
_root.levels_array[9] = 1;
_root.levels_array[10] = 1;
_root.levels_array[11] = 1;
savefile.data.levels_array0 = _root.levels_array[0];
savefile.data.levels_array1 = _root.levels_array[1];
savefile.data.levels_array2 = _root.levels_array[2];
savefile.data.levels_array3 = _root.levels_array[3];
savefile.data.levels_array4 = _root.levels_array[4];
savefile.data.levels_array5 = _root.levels_array[5];
savefile.data.levels_array6 = _root.levels_array[6];
savefile.data.levels_array7 = _root.levels_array[7];
savefile.data.levels_array8 = _root.levels_array[8];
savefile.data.levels_array9 = _root.levels_array[9];
savefile.data.levels_array10 = _root.levels_array[10];
savefile.data.levels_array11 = _root.levels_array[11];
savefile.flush();
_root.gotoAndStop(6);
}
Symbol 76 Button
on (press) {
gotoAndStop (1);
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 85 Button
on (press) {
level = 0;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 86 Button
on (press) {
level = 1;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 87 Button
on (press) {
level = 2;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 88 Button
on (press) {
level = 3;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 89 Button
on (press) {
level = 4;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 90 Button
on (press) {
level = 5;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 91 Button
on (press) {
level = 6;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 92 Button
on (press) {
level = 7;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 93 Button
on (press) {
level = 8;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 94 Button
on (press) {
level = 9;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 95 Button
on (press) {
level = 10;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 96 Button
on (press) {
level = 11;
_root.level_playing = level;
_root.gotoAndStop(level + 8);
}
Symbol 110 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 117 Button
on (press) {
play();
}
Symbol 118 MovieClip Frame 9
stop();
Symbol 118 MovieClip Frame 15
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(6) + 1);
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 17
x = random(6) + 1;
if (x == 1) {
gotoAndPlay (2);
} else if (x == 2) {
gotoAndPlay (18);
} else if (x == 3) {
gotoAndPlay (38);
} else if (x == 4) {
gotoAndPlay (55);
} else if (x == 5) {
gotoAndPlay (96);
} else if (x == 6) {
gotoAndPlay (129);
}
Symbol 218 MovieClip Frame 37
x = random(6) + 1;
if (x == 1) {
gotoAndPlay (2);
} else if (x == 2) {
gotoAndPlay (18);
} else if (x == 3) {
gotoAndPlay (38);
} else if (x == 4) {
gotoAndPlay (55);
} else if (x == 5) {
gotoAndPlay (96);
} else if (x == 6) {
gotoAndPlay (129);
}
Symbol 218 MovieClip Frame 54
x = random(6) + 1;
if (x == 1) {
gotoAndPlay (2);
} else if (x == 2) {
gotoAndPlay (18);
} else if (x == 3) {
gotoAndPlay (38);
} else if (x == 4) {
gotoAndPlay (55);
} else if (x == 5) {
gotoAndPlay (96);
} else if (x == 6) {
gotoAndPlay (129);
}
Symbol 218 MovieClip Frame 95
x = random(6) + 1;
if (x == 1) {
gotoAndPlay (2);
} else if (x == 2) {
gotoAndPlay (18);
} else if (x == 3) {
gotoAndPlay (38);
} else if (x == 4) {
gotoAndPlay (55);
} else if (x == 5) {
gotoAndPlay (96);
} else if (x == 6) {
gotoAndPlay (129);
}
Symbol 218 MovieClip Frame 128
x = random(6) + 1;
if (x == 1) {
gotoAndPlay (2);
} else if (x == 2) {
gotoAndPlay (18);
} else if (x == 3) {
gotoAndPlay (38);
} else if (x == 4) {
gotoAndPlay (55);
} else if (x == 5) {
gotoAndPlay (96);
} else if (x == 6) {
gotoAndPlay (129);
}
Symbol 218 MovieClip Frame 144
x = random(6) + 1;
if (x == 1) {
gotoAndPlay (2);
} else if (x == 2) {
gotoAndPlay (18);
} else if (x == 3) {
gotoAndPlay (38);
} else if (x == 4) {
gotoAndPlay (55);
} else if (x == 5) {
gotoAndPlay (96);
} else if (x == 6) {
gotoAndPlay (129);
}
Symbol 221 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 230 Button
on (press) {
_root.gotoAndStop(_root.gotoAndStop(6));
}
Symbol 231 Button
on (press) {
_root.level_playing++;
_root.gotoAndStop(20);
}
Symbol 237 Button
on (press) {
_root.gotoAndStop(20);
}
Symbol 242 Button
on (press) {
gotoAndStop (16);
}
Symbol 251 MovieClip Frame 7
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 14
stop();
Symbol 252 MovieClip Frame 15
stop();
Instance of Symbol 251 MovieClip "delete2" in Symbol 252 MovieClip Frame 16
onClipEvent (load) {
this.swapDepths(2001);
}
Symbol 264 MovieClip Frame 1
stop();