Combined Code
movieClip 2 whatIsThis {
frame 15 {
gotoAndPlay(13);
}
frame 30 {
gotoAndPlay(2);
}
frame 36 {
}
}
movieClip 4 PermaGrid {
frame 1 {
stop();
}
}
movieClip 6 Grid {
frame 1 {
stop();
}
}
movieClip 8 testDot {
frame 1 {
swapDepths(10000000);
}
}
movieClip 11 {
}
movieClip 12 {
frame 1 {
ID = _root.CoinCount;
_name = 'Coin' + ID;
if (_root[_root.LevelLoaded + 'CoinGot'][ID] == true) {
gotoAndStop('DontCheat');
} else {
_root[_root.LevelLoaded + 'CoinGot'][ID] = false;
}
++_root.CoinCount;
CoinCache.cacheAsBitmap = true;
stop();
}
frame 2 {
_root[_root.LevelLoaded + 'CoinGot'][ID] = true;
_root.PayPants();
_root.HurtPants(-5);
onEnterFrame = function () {
_rotation = _rotation + rot;
};
}
frame 12 {
delete onEnterFrame;
_visible = false;
stop();
}
}
movieClip 14 {
frame 2 {
stop();
}
}
movieClip 124 {
frame 1 {
if (vanish == undefined) {
vanish = false;
}
if (quickDrop == undefined) {
quickDrop = false;
}
if (doorPowerLevel > _root.LevelSelect || _root.CameoSelect[doorPowerSlot] == false) {
gotoAndStop('ghostDoor');
}
}
frame 2 {
if (vanish) {
gotoAndStop(150);
}
stop();
}
frame 11 {
_root.DoorCreak.start();
}
frame 13 {
if (worm == undefined) {
worm = _root.SnapLevel;
}
if (typeof worm != 'number') {
if (wormDoor == undefined) {
if (substring(_root.LevelLoaded, 1, 5) == 'Bonus') {
wormDoor = _root[worm + _root.LevelLoaded + 'Door0'];
_root[_root.LevelLoaded + worm + wormDoor] = 'Door0';
} else {
if (_root[worm + _root.LevelLoaded + _name] == undefined) {
wormDoor = 'Door0';
_root[_root.LevelLoaded + worm + wormDoor] = _name;
} else {
wormDoor = _root[worm + _root.LevelLoaded + _name];
_root[_root.LevelLoaded + worm + wormDoor] = _name;
}
}
}
_root.SnapLevel = _root.LevelLoaded;
_root.ChangeLevel(worm, wormDoor);
}
}
frame 43 {
_root.DoorClose.start();
if (launchSite != undefined) {
getURL(launchSite, '_blank');
}
if (typeof worm == 'number') {
_root.Char.gotoAndStop('DoorOut');
_root.Char._x = Math.round(_parent['Door' + worm]._x) + _parent['Door' + worm]._xscale / 2;
_root.Char._y = Math.round(_parent['Door' + worm]._y);
_root.Char.Still = true;
_root.Char._xscale = _parent['Door' + worm]._xscale;
_parent['Door' + worm].gotoAndPlay('doorOut');
}
delete onEnterFrame;
gotoAndStop(2);
}
frame 52 {
if (quickDrop) {
_root.Char._x = _x;
_root.Char.JumpFunc(0);
_root.Char.Still = true;
gotoAndStop(2);
}
}
frame 74 {
_root.Char.char.play();
}
frame 79 {
_root.DoorCreak.start();
}
frame 104 {
_root.DoorClose.start();
delete onEnterFrame;
if (!vanish) {
gotoAndStop(2);
}
}
frame 150 {
stop();
}
}
movieClip 125 InteractLayerBonus1 {
}
movieClip 127 UberForegroundBonus1 {
}
movieClip 129 {
}
movieClip 130 ForegroundBonus1 {
}
movieClip 132 tehwallzBonus1 {
}
movieClip 134 surfaceLevel1 {
}
movieClip 136 tehgroundLevel1 {
}
movieClip 138 tehplatformzLevel1 {
}
movieClip 140 {
}
movieClip 143 {
}
movieClip 144 JumpPad {
frame 1 {
_name = 'JumpPad' + _root.JumpPadCount;
++_root.JumpPadCount;
}
frame 2 {
_yscale = Thrust * 4;
green._rotation = -_rotation;
stop();
}
}
movieClip 149 {
}
movieClip 200 {
}
movieClip 209 {
frame 15 {
gotoAndPlay(7);
}
}
movieClip 220 {
}
movieClip 225 {
}
movieClip 226 {
}
movieClip 227 {
}
movieClip 228 Spider {
frame 1 {
if (ID == undefined) {
ID = _root.BaddieCount;
_name = 'Baddie' + ID;
swapDepths(ID + 805);
}
++_root.BaddieCount;
++_root.maxBaddies;
if (moveRL == undefined) {
moveRL = 0;
}
if (moveUD == undefined) {
moveUD = 0;
}
if (downTime == undefined) {
downTime = 0;
}
mRL = _root.mRL;
mUD = _root.mUD;
RLFunc = _root.SimpleRLFunc;
RLx = _root.RLx;
RLy = _root.RLy;
UDx = _root.UDx;
UDy = _root.UDy;
WasSix = _root.WasSix;
PwnBaddies = _root.PwnBaddies;
JumpFunc = _root.SimpleJumpFunc;
JumpGuide = _root.BallJumpGuide;
WraptoGround = _root.WraptoGround;
JumpLand = _root.BallJumpLand;
spread = 15;
RAnchx = _root.RAnchx;
RAnchy = _root.RAnchy;
LAnchx = _root.LAnchx;
LAnchy = _root.LAnchy;
rotateInAir = _root.rotateInAir;
recenterPoints = _root.recenterPoints;
InShellrotation = 0;
rotter = 0;
spiderRotate = 0;
bouncy = false;
testPlatz = _root.testPlatz;
crazyLander = _root.crazyLander;
Thrust = 13;
bounceThreshDefault = 14;
bounceDefault = 0.5;
groundLandProtect = -1;
Status = 'Stupid';
recenterPoints();
}
frame 2 {
if (_root.LevelLoaded == 'Level10') {
gotoAndStop('Jump');
} else {
onEnterFrame = function () {
if (Math.abs(_x + _root._x - 360) < 400 && Math.abs(_y + _root._y - 240) < 300) {
if (_root.tehhangz.hitTest(_x + moveRL, _y + moveUD + 6, true)) {
while (!_root.tehhangz.hitTest(_x, _y + 2, true)) {
_y = _y + 1;
}
while (_root.tehhangz.hitTest(_x, _y, true)) {
_y = _y - 1;
}
nextFrame();
} else {
if (WraptoGround(true, false) == 'Fall') {
JumpFunc(0);
} else {
nextFrame();
}
}
}
};
stop();
}
}
frame 3 {
moveRL = Math.round(_xscale / 30);
moveUD = 0;
InShell._rotation = 0;
onEnterFrame = function () {
if (_root.Paused) {
Spider.stop();
} else {
Spider.play();
if (Math.abs(_x + _root._x - 360) > 400) {
prevFrame();
}
temp = RLFunc();
if (temp == 'rEdge' || temp == 'rBackEdge') {
_xscale = 100;
moveRL = 3.333333333333334;
} else {
if (temp == 'lEdge' || temp == 'lBackEdge') {
_xscale = -100;
moveRL = -3.333333333333334;
} else {
if (temp == 'Wall' || _xscale * _rotation < -6000) {
_xscale = -_xscale;
moveRL = Math.round(_xscale / 30);
}
}
}
}
};
stop();
}
frame 4 {
onEnterFrame = function () {
if (!_root.Paused) {
if (moveUD < 20) {
++moveUD;
}
JumpGuide('RIdle');
}
};
play();
}
frame 7 {
stop();
}
frame 12 {
recenterPoints();
rotateInAir();
onEnterFrame = function () {
if (!_root.Paused) {
rotateInAir();
++moveUD;
JumpGuide('land');
if (_y > -_root.theY + 600) {
removeMovieClip(this);
}
}
};
stop();
}
frame 13 {
InShell.stop();
coma = 160;
InShell._rotation = 0;
onEnterFrame = function () {
if (!_root.Paused) {
if (coma > 0) {
--coma;
comaStars._yscale = coma / 2 + 20;
comaStars._xscale = comaStars._yscale;
if (downTime > 0) {
--downTime;
} else {
if (_root.Char.hitTest(centerX - _root.Char.moveRL, centerY - _root.Char.moveUD, true)) {
combo = 1;
ex = _root.Char.moveRL - moveRL;
ey = _root.Char.moveUD - moveUD;
_root.Thud.setVolume(Math.sqrt(ex * ex + ey * ey) * 10);
_root.Thud.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.Thud.start();
downTime = 7;
if (_root.Char._currentframe == 7) {
moveRL = (_x - _root.Char._x) / 10 + _root.Char.moveRL;
moveUD = -Math.abs(_root.Char.moveUD) * 2;
} else {
if (_root.Char._x > _x) {
if (_root.Char._currentframe == 31) {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 100) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 100) * 0.0174532925199433);
} else {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 120) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 120) * 0.0174532925199433);
if (_root.Char._currentframe < 7 && _root.Char._xscale * (centerX - _root.Char._x) > 0) {
_root.Char.JumpFunc(4);
_root.Char.gotoAndStop('Kick');
spiderRotate = moveRL * _xscale / 10;
}
}
} else {
if (_root.Char._currentframe == 31) {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 80) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 80) * 0.0174532925199433);
} else {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 60) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 60) * 0.0174532925199433);
if (_root.Char._currentframe < 7 && _root.Char._xscale * (centerX - _root.Char._x) > 0) {
_root.Char.JumpFunc(4);
_root.Char.gotoAndStop('Kick');
spiderRotate = moveRL * _xscale / 10;
}
}
}
}
InShell.stop();
gotoAndStop('deadjump');
} else {
if (WraptoGround(true, false) == 'Fall') {
trace('floatin!');
gotoAndStop('die');
}
}
}
} else {
gotoAndStop('RIdle');
}
}
};
}
frame 14 {
recenterPoints();
_rotation = 0;
InShell._rotation = 0;
onEnterFrame = function () {
if (!_root.Paused) {
if (downTime > 0) {
--downTime;
} else {
if (_root.Char.hitTest(_x - 15, _y - 15, true)) {
++combo;
if (combo > 1) {
gNHD = _root.ELayer.getNextHighestDepth();
_root.ELayer.attachMovie('combo!', 'combo!' + gNHD, gNHD, {'_x': _x + 40, '_y': _y - 30, 'smoke': combo + '!'});
}
ex = _root.Char.moveRL - moveRL;
ey = _root.Char.moveUD - moveUD;
_root.Thud.setVolume(Math.sqrt(ex * ex + ey * ey) * 10);
_root.Thud.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.Thud.start();
downTime = 5;
if (_root.Char._currentframe == 7) {
moveRL = (_x - _root.Char._x) / 10 + _root.Char.moveRL;
moveUD = _root.Char.moveUD * 2;
} else {
if (_root.Char.moveRL < 0 || _root.Char.moveRL == 0 && _x < _root.Char._x) {
if (_root.Char._currentframe == 31) {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 100) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 100) * 0.0174532925199433);
} else {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 120) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 120) * 0.0174532925199433);
}
} else {
if (_root.Char._currentframe == 31) {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 80) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 80) * 0.0174532925199433);
} else {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 60) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 60) * 0.0174532925199433);
}
}
}
if (Key.isDown(39) && !Key.isDown(37)) {
moveRL += 7;
} else {
if (!Key.isDown(39) && Key.isDown(37)) {
moveRL -= 7;
}
}
}
}
_x = _x + moveRL;
++moveUD;
_y = _y + moveUD;
spiderRotate += ((moveRL * _xscale / 100) * 1.5 - spiderRotate) / 10;
InShell._rotation += spiderRotate;
if (_y > -_root._y + 600) {
if (_root.spidersOut > 0) {
--_root.spidersOut;
}
++_root.SpidersPwned;
removeMovieClip(this);
}
}
};
}
frame 15 {
onEnterFrame = function () {
play();
};
}
frame 33 {
gotoAndStop('RIdle');
}
}
movieClip 230 {
}
movieClip 243 {
}
movieClip 254 {
}
movieClip 255 Snail {
frame 1 {
if (ID == undefined) {
ID = _root.BaddieCount;
_name = 'Baddie' + ID;
swapDepths(ID + 805);
}
++_root.BaddieCount;
++_root.maxBaddies;
if (moveRL == undefined) {
moveRL = 0;
}
if (moveUD == undefined) {
moveUD = 0;
}
if (downTime == undefined) {
downTime = 0;
}
mRL = _root.mRL;
mUD = _root.mUD;
RLFunc = _root.SimpleRLFunc;
RLx = _root.RLx;
RLy = _root.RLy;
UDx = _root.UDx;
UDy = _root.UDy;
WasSix = _root.WasSix;
PwnBaddies = _root.PwnBaddies;
JumpFunc = _root.SimpleJumpFunc;
JumpGuide = _root.BallJumpGuide;
WraptoGround = _root.WraptoGround;
JumpLand = _root.BallJumpLand;
spread = 15;
RAnchx = _root.RAnchx;
RAnchy = _root.RAnchy;
LAnchx = _root.LAnchx;
LAnchy = _root.LAnchy;
rotateInAir = _root.rotateInAir;
recenterPoints = _root.recenterPoints;
InShellrotation = 0;
rotter = 0;
spiderRotate = 0;
bouncy = false;
testPlatz = _root.testPlatz;
crazyLander = _root.crazyLander;
Thrust = 13;
bounceThreshDefault = 14;
bounceDefault = 0.5;
groundLandProtect = -1;
Status = 'Stupid';
originalX = _x;
originalY = _y;
recenterPoints();
}
frame 2 {
if (_root.LevelLoaded == 'Level10') {
nextFrame();
} else {
onEnterFrame = function () {
if (Math.abs(_x + _root._x - 360) < 400 && Math.abs(_y + _root._y - 240) < 300) {
if (_root.tehhangz.hitTest(_x + moveRL, _y + moveUD + 6, true)) {
while (!_root.tehhangz.hitTest(_x, _y + 2, true)) {
_y = _y + 1;
}
while (_root.tehhangz.hitTest(_x, _y, true)) {
_y = _y - 1;
}
nextFrame();
} else {
if (WraptoGround(true, false) == 'Fall') {
JumpFunc(0);
} else {
nextFrame();
}
}
}
};
stop();
}
}
frame 3 {
moveRL = Math.round(_xscale / 50);
moveUD = 0;
Spider._rotation = 0;
onEnterFrame = function () {
if (_root.Paused) {
Spider.stop();
} else {
Spider.play();
if (Math.abs(_x + _root._x - 360) > 400) {
prevFrame();
}
temp = RLFunc();
if (temp == 'rEdge' || temp == 'rBackEdge') {
_xscale = 100;
moveRL = 2;
} else {
if (temp == 'lEdge' || temp == 'lBackEdge') {
_xscale = -100;
moveRL = -2;
} else {
if (temp == 'Wall' || _xscale * _rotation < -6000) {
_xscale = -_xscale;
moveRL = Math.round(_xscale / 50);
}
}
}
}
};
stop();
}
frame 4 {
onEnterFrame = function () {
if (!Paused) {
if (moveUD < 20) {
++moveUD;
}
JumpGuide('RIdle');
}
};
stop();
}
frame 14 {
play();
}
frame 17 {
play();
}
frame 19 {
_root.SpawnBaddies(_x, _y - 5, 'SnailShell');
_root.SnailShell.moveRL = 0;
_root.SnailShell.moveUD = 0;
_root.SnailShell.mRL = _root.mRL;
_root.SnailShell.mUD = _root.mUD;
_root.SnailShell.RLFunc = _root.SimpleRLFunc;
_root.SnailShell.RLx = _root.RLx;
_root.SnailShell.RLy = _root.RLy;
_root.SnailShell.UDx = _root.UDx;
_root.SnailShell.UDy = _root.UDy;
_root.SnailShell.WasSix = _root.WasSix;
_root.SnailShell.PwnBaddies = _root.PwnBaddies;
_root.SnailShell.JumpFunc = _root.SimpleJumpFunc;
_root.SnailShell.JumpGuide = _root.BallJumpGuide;
_root.SnailShell.WraptoGround = _root.WraptoGround;
_root.SnailShell.JumpLand = _root.BallJumpLand;
_root.SnailShell.spread = 15;
_root.SnailShell.RAnchx = _root.RAnchx;
_root.SnailShell.RAnchy = _root.RAnchy;
_root.SnailShell.LAnchx = _root.LAnchx;
_root.SnailShell.LAnchy = _root.LAnchy;
_root.SnailShell.rotateInAir = _root.rotateInAir;
_root.SnailShell.recenterPoints = _root.recenterPoints;
_root.SnailShell.InShellrotation = 0;
_root.SnailShell.rotter = 0;
_root.SnailShell.bouncy = false;
_root.SnailShell.bounceThreshDefault = 8;
_root.SnailShell.bounceDefault = 0.8;
_root.SnailShell.testPlatz = _root.testPlatz;
_root.SnailShell.platToGround = _root.platToGround;
_root.SnailShell.wallToGround = _root.wallToGround;
_root.SnailShell.recenterPoints();
_root.SnailShell.JumpFunc(-moveUD);
_root.SnailShell.moveRL = moveRL;
_root.SnailShell.downTime = 10;
_root.SnailShell.originalX = originalX;
_root.SnailShell.originalY = originalY;
removeMovieClip(this);
}
}
movieClip 256 BLayerLevel1 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 28;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
}
movieClip 257 AllEverythingB1 {
}
movieClip 303 {
frame 1 {
stop();
}
frame 7 {
stop();
}
frame 29 {
_root.Char.hurting = false;
_root.Char.JumpFunc(50);
_root.Char.gotoAndStop('Flying');
}
frame 33 {
_root.attachMovie('boom!shell', 'boom!shell', _root.getNextHighestDepth(), {'_x': _parent._x, '_y': _parent._y, '_rotation': _rotation});
}
frame 45 {
_parent.onEnterFrame = function () {
this.Barrel._rotation -= this.Barrel._rotation / 6;
if (Math.abs(this.Barrel._rotation) < 1) {
this.Barrel._rotation = 0;
delete this.onEnterFrame;
}
};
}
}
movieClip 305 {
}
movieClip 307 {
}
movieClip 308 {
frame 1 {
ID = _root.CoinCount;
_name = 'Coin' + ID;
if (_root[_root.LevelLoaded + 'CoinGot'][ID] == true) {
gotoAndStop('DontCheat');
} else {
_root[_root.LevelLoaded + 'CoinGot'][ID] = false;
}
++_root.CoinCount;
CoinCache.cacheAsBitmap = true;
stop();
}
frame 2 {
_root[_root.LevelLoaded + 'CoinGot'][ID] = true;
onEnterFrame = function () {
_rotation = _rotation + rot;
_root.PayPants();
_root.HurtPants(-5);
};
}
frame 7 {
onEnterFrame = function () {
_rotation = _rotation + rot;
};
}
frame 12 {
delete onEnterFrame;
_visible = false;
removeMovieClip(this);
stop();
}
}
movieClip 309 {
}
movieClip 310 InteractLayerLevel2 {
instance Door3 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus1';
}
}
instance Door2 of movieClip 124 {
onClipEvent (load) {
worm = 'Trans4';
}
}
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus5';
}
}
instance golfHole of movieClip 309 {
onClipEvent (load) {
ID = 6;
}
}
}
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;
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);
}
u = 'http://' + mbc + '/my/core.swf?mv=7&fv=' + fv + '&v=' + escape(/:$version) + '&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);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
stop();
Stage.showMenu = false;
__com_mochibot__('4833adf2', this, 10301, true);
MochiAd.showPreGameAd({'id': '6c76d841a7bf7e61', 'res': '720x480'});
_root.kongregateServices.connect();
}
button 313 {
on (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
movieClip 4752 __Packages.MochiAd {
#initclip
if (!_global.MochiAd) {
var v1 = function () {};
_global.MochiAd = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return '2.1';
};
v1.showPreGameAd = function (options) {
var v27 = {'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();
}};
options = MochiAd._parseOptions(options, v27);
var clip = options.clip;
var v23 = 11000;
var v26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var v14 = MochiAd._getRes(options);
var v4 = v14[0];
var v13 = v14[1];
mc._x = v4 * 0.5;
mc._y = v13 * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk._x = v4 * -0.5;
chk._y = v13 * -0.5;
var v7 = chk.createEmptyMovieClip('_mochiad_bar', 4);
v7._x = 10;
v7._y = v13 - 20;
var v22 = options.color;
delete options.color;
var v19 = options.background;
delete options.background;
var v24 = options.outline;
delete options.outline;
var v5 = v7.createEmptyMovieClip('_outline', 1);
v5.beginFill(v19);
v5.moveTo(0, 0);
v5.lineTo(v4 - 20, 0);
v5.lineTo(v4 - 20, 10);
v5.lineTo(0, 10);
v5.lineTo(0, 0);
v5.endFill();
var v3 = v7.createEmptyMovieClip('_inside', 2);
v3.beginFill(v22);
v3.moveTo(0, 0);
v3.lineTo(v4 - 20, 0);
v3.lineTo(v4 - 20, 10);
v3.lineTo(0, 10);
v3.lineTo(0, 0);
v3.endFill();
v3._xscale = 0;
var v6 = v7.createEmptyMovieClip('_outline', 3);
v6.lineStyle(0, v24, 100);
v6.moveTo(0, 0);
v6.lineTo(v4 - 20, 0);
v6.lineTo(v4 - 20, 10);
v6.lineTo(0, 10);
v6.lineTo(0, 0);
chk.ad_msec = v23;
chk.ad_timeout = v26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time);
if (v2 > 0) {
this._parent._alpha = v2;
} else {
var v3 = this._parent._parent;
MochiAd.unload(v3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {};
mc.lc.adjustProgress = function (msec) {
var v2 = this.mc._mochiad_wait;
v2.server_control = true;
v2.started = getTimer();
v2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var v6 = this._parent._parent;
var v12 = this._parent._mochiad_ctr;
var v5 = getTimer() - this.started;
var v3 = false;
var v4 = v6.getBytesTotal();
var v8 = v6.getBytesLoaded();
var v10 = 100 * v8 / v4;
var v11 = 100 * v5 / chk.ad_msec;
var v9 = this._mochiad_bar._inside;
var v2 = Math.min(100, Math.min(v10 || 0, v11));
v2 = Math.max(this.last_pcnt, v2);
this.last_pcnt = v2;
v9._xscale = v2;
if (!chk.showing) {
var v7 = v12.getBytesTotal();
if (v7 > 0 || typeof v7 == 'undefined') {
chk.showing = true;
chk.started = getTimer();
} else {
if (v5 > chk.ad_timeout) {
v3 = true;
}
}
}
if (v5 > chk.ad_msec) {
v3 = true;
}
if (v4 > 0 && v8 >= v4 && v3) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
};
v1.showInterLevelAd = function (options) {
var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () {
this.clip.stop();
}, 'ad_finished': function () {
this.clip.play();
}};
options = MochiAd._parseOptions(options, v13);
var clip = options.clip;
var v10 = 11000;
var v12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var v5 = MochiAd._getRes(options);
var v14 = v5[0];
var v11 = v5[1];
mc._x = v14 * 0.5;
mc._y = v11 * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk.ad_msec = v10;
chk.ad_timeout = v12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time);
if (v2 > 0) {
this._parent._alpha = v2;
} else {
var v3 = this._parent._parent;
MochiAd.unload(v3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {};
mc.lc.adjustProgress = function (msec) {
var v2 = this.mc._mochiad_wait;
v2.server_control = true;
v2.started = getTimer();
v2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var v5 = this._parent._mochiad_ctr;
var v4 = getTimer() - this.started;
var v2 = false;
if (!chk.showing) {
var v3 = v5.getBytesTotal();
if (v3 > 0 || typeof v3 == 'undefined') {
chk.showing = true;
chk.started = getTimer();
} else {
if (v4 > chk.ad_timeout) {
v2 = true;
}
}
}
if (v4 > chk.ad_msec) {
v2 = true;
}
if (v2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
};
v1.showTimedAd = function (options) {
MochiAd.showInterLevelAd(options);
};
v1.showPreloaderAd = function (options) {
MochiAd.showPreGameAd(options);
};
v1._allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1._loadCommunicator = function (options) {
var v26 = {'clip': _root, 'com_server': 'http://x.mochiads.com/com/1/', 'method': 'loadCommunicator', 'depth': 10337, 'id': '_UNKNOWN_'};
options = MochiAd._parseOptions(options, v26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = MochiAd.getVersion();
var v18 = options.clip;
var v20 = '_mochiad_com_' + options.id;
if (!MochiAd._isNetworkAvailable()) {
return null;
}
if (v18[v20]) {
return v18[v20].lc;
}
var v21 = options.com_server + options.id;
MochiAd._allowDomains(v21);
delete options.id;
delete options.com_server;
var v25 = options.depth;
delete options.depth;
var v17 = v18.createEmptyMovieClip(v20, v25);
var v11 = v17.createEmptyMovieClip('_mochiad_com', 1);
for (var v15 in options) {
v11[v15] = options[v15];
}
var v6 = new LocalConnection();
var v16 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_');
v6.mc = v17;
v6.name = v16;
v6.allowDomain = function (d) {
return true;
};
v6.allowInsecureDomain = v6.allowDomain;
v6.connect(v16);
v17.lc = v6;
v11.lc = v16;
v6._id = 0;
v6._queue = [];
v6.rpcResult = function (cb_arg) {
var v8 = parseInt(cb_arg);
var v4 = this._callbacks[v8];
if (!v4) {
return undefined;
}
delete this._callbacks[v8];
var v5 = [];
var v3 = 2;
while (v3 < v4.length) {
v5.push(v4[v3]);
++v3;
}
v3 = 1;
while (v3 < arguments.length) {
v5.push(arguments[v3]);
++v3;
}
var v6 = v4[1];
var v7 = v4[0];
if (v7 && typeof v6 == 'string') {
v6 = v7[v6];
}
if (v6) {
v6.apply(v7, v5);
}
};
v6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var v4 = this._queue;
delete this._queue;
var v5 = this.doSend;
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2];
v5.apply(this, v3);
++v2;
}
};
v6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var v4 = [];
var v3 = 0;
while (v3 < arguments.length) {
v4.push(arguments[v3]);
++v3;
}
this._queue.push(v4);
return undefined;
}
this._id += 1;
var v5 = this._id;
if (cbfn === undefined || cbfn === null) {
cbfn = cbobj;
}
this._callbacks[v5] = [cbobj, cbfn];
var v7 = new LocalConnection();
var v9 = v7.send(this._endpoint, 'rpc', v5, args);
};
v6._callbacks = {};
v6._callbacks[0] = [v6, '_didConnect'];
v11.st = getTimer();
v11.loadMovie(v21 + '.swf', 'POST');
return v6;
};
v1.fetchHighScores = function (options, callbackObj, callbackMethod) {
var v1 = MochiAd._loadCommunicator({'id': options.id});
if (!v1) {
return false;
}
var v4 = ['fetchHighScores', options];
v1.doSend(['fetchHighScores', options], callbackObj, callbackMethod);
return true;
};
v1.sendHighScore = function (options, callbackObj, callbackMethod) {
var v1 = MochiAd._loadCommunicator({'id': options.id});
if (!v1) {
return false;
}
var v4 = ['sendHighScore', options];
v1.doSend(['sendHighScore', options], callbackObj, callbackMethod);
return true;
};
v1.load = function (options) {
var v13 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'};
options = MochiAd._parseOptions(options, v13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = MochiAd.getVersion();
var v9 = options.clip;
if (!MochiAd._isNetworkAvailable()) {
return null;
}
if (v9._mochiad_loaded) {
return null;
}
var v12 = options.depth;
delete options.depth;
var v6 = v9.createEmptyMovieClip('_mochiad', v12);
var v11 = MochiAd._getRes(options);
options.res = v11[0] + 'x' + v11[1];
options.server += options.id;
delete options.id;
v9._mochiad_loaded = true;
var v4 = v6.createEmptyMovieClip('_mochiad_ctr', 1);
for (var v7 in options) {
v4[v7] = options[v7];
}
var v10 = v4.server;
delete v4.server;
var v14 = MochiAd._allowDomains(v10);
v6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var v5 = new LocalConnection();
var v8 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_');
v5.mc = v6;
v5.name = v8;
v5.hostname = v14;
v5.allowDomain = function (d) {
return true;
};
v5.allowInsecureDomain = v5.allowDomain;
v5.connect(v8);
v6.lc = v5;
v4.lc = v8;
v4.st = getTimer();
v4.loadMovie(v10 + '.swf', 'POST');
return v6;
};
v1.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;
};
v1._isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1._getRes = function (options) {
var v3 = options.clip.getBounds();
var v2 = 0;
var v1 = 0;
if (typeof options.res != 'undefined') {
var v4 = options.res.split('x');
v2 = parseFloat(v4[0]);
v1 = parseFloat(v4[1]);
} else {
v2 = v3.xMax - v3.xMin;
v1 = v3.yMax - v3.yMin;
}
if (v2 == 0 || v1 == 0) {
v2 = Stage.width;
v1 = Stage.height;
}
return [v2, v1];
};
v1._parseOptions = function (options, defaults) {
var v4 = {};
for (var v8 in defaults) {
v4[v8] = defaults[v8];
}
if (options) {
for (v8 in options) {
v4[v8] = options[v8];
}
}
if (_root.mochiad_options) {
var v5 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v5.length) {
var v3 = v5[v2].split('=');
v4[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
return v4;
};
ASSetPropFlags(_global.MochiAd.prototype, null, 1);
}
#endinitclip
}
movieClip 317 UberbackgroundMenus1 {
}
movieClip 319 BackgroundMenus1 {
}
movieClip 321 tehwallzMenus1 {
}
movieClip 323 tehplatformzMenus1 {
}
movieClip 325 ForegroundMenus1 {
}
button 328 {
on (press) {
getURL('http://www.bornegames.com/?page_id=84', '_blank');
}
}
button 331 {
on (press) {
getURL('http://armorgames.com/', '_blank');
}
}
movieClip 340 {
}
movieClip 342 InteractLayerMenus1 {
instance Door0 of movieClip 124 {
onClipEvent (load) {
worm = 'Trans4';
vanish = true;
}
}
instance Door2 of movieClip 124 {
onClipEvent (load) {
worm = 'Menus1';
wormDoor = 'Door2';
launchSite = 'http://armorgames.com/play/301/fancy-pants-adventures';
}
}
instance Door3 of movieClip 124 {
onClipEvent (load) {
worm = 'Menus4';
}
}
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Level9';
}
}
instance Door4 of movieClip 124 {
onClipEvent (load) {
worm = 'Menus2';
}
}
instance Door5 of movieClip 124 {
onClipEvent (load) {
worm = 'Menus3';
}
}
instance Door6 of movieClip 124 {
onClipEvent (load) {
worm = 'Menus5';
}
}
instance of movieClip 340 {
onClipEvent (load) {
_root.unlockedColorCount = -4;
var i = 0;
while (i < 10) {
if (_root.unlockedPantsColors[i]) {
++_root.unlockedColorCount;
}
++i;
}
gotoAndStop(_root.unlockedColorCount + 1);
}
}
instance of movieClip 340 {
onClipEvent (load) {
_root.foundTrophiesCount = 0;
var i = 0;
while (i < 6) {
if (_root.TrophyGet[i]) {
++_root.foundTrophiesCount;
}
++i;
}
gotoAndStop(_root.foundTrophiesCount + 1);
}
}
}
movieClip 344 UberForegroundMenus1 {
}
movieClip 345 {
}
movieClip 347 BackgroundMenus2 {
}
movieClip 349 tehwallzMenus2 {
}
movieClip 350 surfaceMenus2 {
}
movieClip 352 tehgroundMenus2 {
}
movieClip 354 tehplatformzMenus2 {
}
movieClip 356 tehhangzLevel1 {
}
movieClip 358 ForegroundMenus2 {
}
movieClip 359 BLayerMenus2 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 10;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 10;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 10;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 10;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 10;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 28;
}
}
}
movieClip 360 InteractLayerMenus2 {
instance Door0 of movieClip 124 {
onClipEvent (load) {
worm = 'Menus1';
}
}
instance Door2 of movieClip 124 {
onClipEvent (load) {
worm = 'Level5';
doorPowerLevel = 2;
}
}
instance Door3 of movieClip 124 {
onClipEvent (load) {
worm = 'Level2';
doorPowerLevel = 3;
}
}
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Level4';
doorPowerLevel = 1;
}
}
instance Door4 of movieClip 124 {
onClipEvent (load) {
worm = 'Level8';
doorPowerLevel = 4;
}
}
instance Door5 of movieClip 124 {
onClipEvent (load) {
worm = 'Level7';
doorPowerLevel = 5;
}
}
instance Door6 of movieClip 124 {
onClipEvent (load) {
worm = 'Level1';
doorPowerLevel = 6;
}
}
instance Door7 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus7';
doorPowerSlot = 3;
}
}
instance Door8 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus8';
doorPowerSlot = 1;
}
}
instance Door9 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus11';
doorPowerSlot = 2;
}
}
instance Door10 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus5';
doorPowerSlot = 0;
}
}
instance Door11 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus6';
doorPowerSlot = 4;
}
}
instance Door12 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus10';
doorPowerSlot = 5;
}
}
}
movieClip 362 UberForegroundMenus2 {
}
movieClip 363 {
}
movieClip 365 BackgroundMenus3 {
}
movieClip 367 tehwallzMenus3 {
}
movieClip 369 ForegroundMenus3 {
}
movieClip 370 BLayerMenus3 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 36;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 36;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 36;
}
}
}
movieClip 372 {
frame 1 {
_name = 'object' + _root.objectCount;
thisID = _root.objectCount;
++_root.objectCount;
}
}
movieClip 373 InteractLayerMenus3 {
instance Door0 of movieClip 124 {
onClipEvent (load) {
}
}
instance object0 of movieClip 372 {
onClipEvent (load) {
objectFunc = function () {
_root.Char.gotoAndStop('Null');
_root.Char._x = -60;
_root.Char.moveRL = 0;
_root.Char.moveUD = 0;
getURL('http://armorgames.com/play/301/fancy-pants-adventures', '_blank');
_root.attachMovie('clickToPlay', 'clickToPlay', _root.getNextHighestDepth(), {'_x': -_root._x, '_y': -_root._y});
};
}
}
instance object1 of movieClip 372 {
onClipEvent (load) {
objectFunc = function () {
_root.Char.gotoAndStop('Null');
_root.Char._x = -60;
_root.Char.moveRL = 0;
_root.Char.moveUD = 0;
getURL('http://www.bornegames.com', '_blank');
_root.attachMovie('clickToPlay', 'clickToPlay', _root.getNextHighestDepth(), {'_x': -_root._x, '_y': -_root._y});
};
}
}
instance object2 of movieClip 372 {
onClipEvent (load) {
objectFunc = function () {
_root.Char.gotoAndStop('Null');
_root.Char._x = -60;
_root.Char.moveRL = 0;
_root.Char.moveUD = 0;
getURL('http://www.armorgames.com/', '_blank');
_root.attachMovie('clickToPlay', 'clickToPlay', _root.getNextHighestDepth(), {'_x': -_root._x, '_y': -_root._y});
};
}
}
}
movieClip 374 {
}
movieClip 376 BackgroundMenus4 {
}
movieClip 378 tehwallzMenus4 {
}
movieClip 380 ForegroundMenus4 {
}
movieClip 381 InteractLayerMenus4 {
instance Door0 of movieClip 124 {
onClipEvent (load) {
}
}
}
movieClip 382 {
}
movieClip 384 BackgroundMenus5 {
}
movieClip 386 tehwallzMenus5 {
}
movieClip 388 tehplatformzMenus5 {
}
movieClip 390 ForegroundMenus5 {
}
button 393 {
on (press) {
getURL('http://www.bornegames.com/?page_id=71', '_blank');
}
}
movieClip 404 {
}
movieClip 412 {
}
movieClip 413 {
frame 1 {
_name = 'object' + _root.objectCount;
thisID = _root.objectCount;
++_root.objectCount;
if (_root.unlockedPantsColors[ID]) {
stop();
} else {
gotoAndStop(2);
}
block.gotoAndStop(ID + 1);
mainObjectFunc = function () {
moveUD = -5;
block._y += moveUD;
if (_root.unlockedPantsColors[ID]) {
payOut = false;
} else {
payOut = true;
}
onEnterFrame = function () {
if (block._y + moveUD < 0) {
++moveUD;
block._y += moveUD;
if (!payOut && moveUD <= -1) {
_root.ColorEmPants(ID);
payOut = true;
}
} else {
block._y = 0;
objectFunc = mainObjectFunc;
delete onEnterFrame;
}
};
};
objectFunc = mainObjectFunc;
}
}
movieClip 415 {
}
movieClip 423 {
}
movieClip 425 {
}
movieClip 427 {
}
movieClip 428 {
frame 1 {
_name = 'object' + _root.objectCount;
thisID = _root.objectCount;
++_root.objectCount;
mainFunc = function () {
if (_parent.trophyWordBubble._currentframe == ID && _parent.trophyWordBubble._alpha == 100) {
getURL(artistSite, '_blank');
} else {
_parent.trophyWordBubble._alpha = 100;
_parent.trophyWordBubble.gotoAndStop(ID);
_parent.trophyWordBubble.bigTrophy.gotoAndStop(ID + 1);
}
button._yscale = 30;
onEnterFrame = function () {
if (button._yscale < 100) {
button._yscale += 10;
} else {
objectFunc = mainFunc;
}
};
delete objectFunc;
};
dummyFunc = function () {
button._yscale = 30;
onEnterFrame = function () {
if (button._yscale < 100) {
button._yscale += 10;
} else {
objectFunc = dummyFunc;
}
};
delete objectFunc;
};
if (_root.TrophyGet[ID - 1]) {
trophies.gotoAndStop(ID + 1);
objectFunc = mainFunc;
} else {
trophies.gotoAndStop(1);
objectFunc = dummyFunc;
}
}
}
movieClip 429 {
frame 1 {
_name = 'object' + _root.objectCount;
thisID = _root.objectCount;
++_root.objectCount;
objectFunc = function () {
_parent.trophyWordBubble._alpha = 0;
};
}
}
movieClip 437 trophyWordBubble {
}
movieClip 438 InteractLayerMenus5 {
frame 1 {
stop();
}
instance Door0 of movieClip 124 {
onClipEvent (load) {
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 1;
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 5;
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 6;
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 7;
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 8;
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 9;
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 0;
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 2;
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 3;
}
}
instance of movieClip 413 {
onClipEvent (load) {
ID = 4;
}
}
instance of movieClip 428 {
onClipEvent (load) {
ID = 1;
artistSite = 'http://www.five-twelve.com/';
}
}
instance of movieClip 428 {
onClipEvent (load) {
ID = 3;
artistSite = 'http://www.theswain.com/';
}
}
instance of movieClip 428 {
onClipEvent (load) {
ID = 5;
artistSite = 'http://www.afro-ninja.com/';
}
}
instance of movieClip 428 {
onClipEvent (load) {
ID = 2;
artistSite = 'http://www.biteycastle.com/';
}
}
instance of movieClip 428 {
onClipEvent (load) {
ID = 4;
artistSite = 'http://www.brainwashstudios.com/';
}
}
instance of movieClip 428 {
onClipEvent (load) {
ID = 6;
artistSite = 'http://www.negativeflash.com/';
}
}
instance trophyWordBubble of movieClip 437 trophyWordBubble {
onClipEvent (load) {
_alpha = 0;
stop();
}
}
}
movieClip 439 {
}
movieClip 441 UberbackgroundLevel9 {
}
movieClip 443 BackgroundLevel9 {
}
movieClip 448 tehwallzLevel9 {
frame 1 {
stop();
}
}
movieClip 450 tehgroundLevel9 {
}
movieClip 452 tehplatformzLevel9 {
}
movieClip 454 ForegroundLevel9 {
}
movieClip 457 {
}
movieClip 459 {
}
movieClip 461 {
}
movieClip 462 UberForegroundLevel9 {
}
movieClip 463 {
frame 1 {
_root.UberForeground.attachMovie('FancyGolfTeeSmoke', 'FancyGolfTeeSmoke', _root.UberForeground.getNextHighestDepth(), {'_x': _x, '_y': _y});
}
}
movieClip 465 {
}
movieClip 562 {
}
movieClip 581 {
frame 37 {
_parent.play();
}
}
movieClip 682 {
}
movieClip 764 {
frame 44 {
stop();
if (!_root.isMute) {
_root.BackgroundMusic.stop();
_root.BackgroundMusic.attachSound('sadFPM');
_root.BackgroundMusic.start(0, 1000);
_root.BackgroundVolume = 100;
}
}
}
movieClip 765 {
frame 36 {
stop();
}
frame 94 {
stop();
}
frame 108 {
_parent.play();
if (!_root.isMute) {
_root.BackgroundMusic.stop();
_root.BackgroundMusic.attachSound('scratch');
_root.BackgroundMusic.start(0, 1);
_root.BackgroundVolume = 100;
}
}
frame 114 {
stop();
}
frame 123 {
stop();
}
}
movieClip 820 {
frame 11 {
stop();
}
}
movieClip 993 {
frame 1 {
_name = 'object' + _root.objectCount;
++_root.objectCount;
stop();
}
frame 10 {
jump.moveRL = -10;
jump.moveUD = -15;
onEnterFrame = function () {
if (jump._y + jump.moveUD < 0) {
++jump.moveUD;
jump._x += jump.moveRL;
jump._y += jump.moveUD;
} else {
delete onEnterFrame;
jump._y = 0;
play();
if (!_root.isMute) {
_root.BackgroundMusic.stop();
_root.BackgroundMusic.attachSound('mayorTheme');
_root.BackgroundMusic.start(0, 1000);
}
}
};
stop();
}
frame 22 {
onEnterFrame = function () {
if (_root.Char._x > _x - 170) {
_root.MinY += 50;
_root.MaxY = _root.MinY;
_root.MaxX = _root.MinX;
delete onEnterFrame;
play();
_root.tehwallz.gotoAndStop(2);
}
};
stop();
}
frame 135 {
stop();
}
frame 136 {
delete objectFunc;
}
frame 251 {
objectFunc = function () {
if (_root.Char._currentframe == 1) {
_root.Char.gotoAndStop('acceptCone');
_root.Char.targetX = _x;
delete objectFunc;
}
};
stop();
}
frame 273 {
}
frame 385 {
}
frame 451 {
rabbit._y = 350;
rabbit.moveRL = 2;
rabbit.moveUD = -22;
rabbit.gotoAndPlay('rabbitJump');
_root.CharJump.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.CharJump.start();
onEnterFrame = function () {
if (rabbit._x > -70 && rabbit.moveUD > 0 && rabbit._y + rabbit.moveUD > 0) {
rabbit._y = 0;
rabbit.play();
delete onEnterFrame;
} else {
if (rabbit._y + rabbit.moveUD < 180 || rabbit.moveUD < 0) {
++rabbit.moveUD;
rabbit._x += rabbit.moveRL;
rabbit._y += rabbit.moveUD;
} else {
rabbit._y = 180;
rabbit.moveRL = 3.7;
rabbit.moveUD *= -2.100000000000001;
_root.CharJump.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.CharJump.start();
}
}
};
stop();
}
frame 458 {
_root.Char.vid.play();
rabbit.moveRL = -5;
rabbit.moveUD = -15;
rabbit.gotoAndPlay('rabbitFlip');
_root.CharJump.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.CharJump.start();
onEnterFrame = function () {
if (rabbit._y + rabbit.moveUD < 350 || rabbit.moveUD < 0) {
rabbit._rotation -= 4.5;
++rabbit.moveUD;
rabbit._x += rabbit.moveRL;
rabbit._y += rabbit.moveUD;
} else {
delete onEnterFrame;
play();
}
};
stop();
}
frame 558 {
_root.Char.SisDown = true;
b = 300;
onEnterFrame = function () {
--b;
if (!Key.isDown(_root.Char.Jump)) {
_root.Char.SisDown = false;
}
if (Key.isDown(_root.Char.Jump) && !_root.Char.SisDown || b < 0) {
play();
delete onEnterFrame;
}
};
stop();
}
frame 632 {
_root.Char.SisDown = true;
b = 300;
onEnterFrame = function () {
--b;
if (!Key.isDown(_root.Char.Jump)) {
_root.Char.SisDown = false;
}
if (Key.isDown(_root.Char.Jump) && !_root.Char.SisDown || b < 0) {
play();
delete onEnterFrame;
}
};
stop();
}
frame 769 {
_root.Char.SisDown = true;
_root.Char.vid.gotoAndPlay('motivated');
stop();
b = 300;
onEnterFrame = function () {
--b;
if (b < 0) {
play();
delete onEnterFrame;
}
};
stop();
}
frame 770 {
stop();
}
frame 771 {
gotoAndStop(770);
}
}
movieClip 995 {
frame 1 {
_name = 'object' + _root.objectCount;
thisID = _root.objectCount;
++_root.objectCount;
startFunc = function () {
if (_root.Char.moveRL == 0 && _root.signBubbleShell == undefined) {
_root.attachMovie('signBubbleShell', 'signBubbleShell', 805, {'_x': _x, '_y': _y, 'ID': ID, 'signParent': thisID});
_root.signBubbleShell.mainBubble._x = _root.SmoothScrollx * 0.6;
_root.signBubbleShell.weeBubble1._x = _root.signBubbleShell.mainBubble._x * 0.35;
_root.signBubbleShell.weeBubble2._x = _root.signBubbleShell.mainBubble._x * 0.2;
_root.signBubbleShell.mainBubble._y = -_y + (-_root.theY + 320);
_root.signBubbleShell.weeBubble1._y = -45 + (_root.signBubbleShell.mainBubble._y - 130 + 45) * 0.75 + 8;
_root.signBubbleShell.weeBubble2._y = -45 + (_root.signBubbleShell.mainBubble._y - 130 + 45) * 0.3 + 5;
onEnterFrame = thisEnterFrame;
objectFunc = function () {
return false;
};
}
};
thisEnterFrame = function () {
_root.signBubbleShell.mainBubble._x += (_root.SmoothScrollx * 0.6 - _root.signBubbleShell.mainBubble._x) / 10;
_root.signBubbleShell.weeBubble1._x = _root.signBubbleShell.mainBubble._x * 0.35;
_root.signBubbleShell.weeBubble2._x = _root.signBubbleShell.mainBubble._x * 0.2;
_root.signBubbleShell.mainBubble._y = -_y + (-_root.theY + 320);
_root.signBubbleShell.weeBubble1._y = -45 + (_root.signBubbleShell.mainBubble._y - 130 + 45) * 0.75 + 8;
_root.signBubbleShell.weeBubble2._y = -45 + (_root.signBubbleShell.mainBubble._y - 130 + 45) * 0.3 + 5;
if (Math.abs(_x - _root.Char._x) > 50) {
if (_root.signBubbleShell.mainBubble._currentframe < 17) {
_root.signBubbleShell.mainBubble.play();
}
}
};
objectFunc = startFunc;
}
}
movieClip 996 InteractLayerLevel9 {
frame 1 {
stop();
}
instance object1 of movieClip 995 {
onClipEvent (load) {
ID = 1;
}
}
instance object2 of movieClip 995 {
onClipEvent (load) {
ID = 2;
}
}
instance of movieClip 372 {
onClipEvent (load) {
objectFunc = function () {
delete _root.Char.onEnterFrame;
_root.Char._alpha = 0;
_root.ChangeLevel('Level4', 'Door0');
delete objectFunc;
};
}
}
}
movieClip 997 {
}
movieClip 1000 {
}
movieClip 1001 UberbackgroundLevel4 {
}
movieClip 1004 {
}
movieClip 1007 {
}
movieClip 1011 {
}
movieClip 1012 BackgroundLevel4 {
}
movieClip 1014 tehwallzLevel4 {
}
movieClip 1016 tehhangzLevel4 {
}
movieClip 1018 tehgroundLevel4 {
}
movieClip 1020 tehplatformzLevel4 {
}
movieClip 1022 ForegroundLevel4 {
}
movieClip 1024 UberForegroundLevel4 {
}
movieClip 1025 BLayerLevel4 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 45;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 38;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 36;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
}
movieClip 1026 InteractLayerLevel4 {
instance Door0 of movieClip 124 {
onClipEvent (load) {
worm = 'Level3';
quickDrop = true;
}
}
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Trans1';
}
}
instance golfHole of movieClip 309 {
onClipEvent (load) {
ID = 4;
}
}
instance object0 of movieClip 995 {
onClipEvent (load) {
ID = 3;
}
}
instance object1 of movieClip 995 {
onClipEvent (load) {
ID = 4;
}
}
instance object1 of movieClip 995 {
onClipEvent (load) {
ID = 5;
}
}
instance object1 of movieClip 995 {
onClipEvent (load) {
ID = 9;
}
}
instance Door2 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus7';
}
}
}
movieClip 1027 {
}
movieClip 1029 UberbackgroundLevel5 {
}
movieClip 1031 {
}
movieClip 1032 BackgroundLevel5 {
}
movieClip 1034 surfaceLevel5 {
}
movieClip 1035 tehhangzLevel5 {
}
movieClip 1037 tehwallzLevel5 {
}
movieClip 1039 tehgroundLevel5 {
}
movieClip 1041 tehplatformzLevel5 {
}
movieClip 1043 ForegroundLevel5 {
}
movieClip 1045 UberForegroundLevel5 {
}
movieClip 1046 BLayerLevel5 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 30;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 30;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 30;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
}
movieClip 1047 InteractLayerLevel5 {
instance WormBox of movieClip 372 {
onClipEvent (load) {
worm = 'Level7';
AtIt = 'Down';
thrust = 0;
}
}
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Trans3';
}
}
instance object1 of movieClip 995 {
onClipEvent (load) {
ID = 8;
}
}
instance golfHole of movieClip 309 {
onClipEvent (load) {
ID = 5;
}
}
instance Door2 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus11';
}
}
}
movieClip 1048 AllEverythingL5 {
}
movieClip 1050 UberbackgroundLevel2 {
}
movieClip 1052 BackgroundLevel2 {
}
movieClip 1054 tehwallzLevel2 {
}
movieClip 1056 tehgroundLevel2 {
}
movieClip 1058 tehplatformzLevel2 {
}
movieClip 1060 tehhangzLevel2 {
}
movieClip 1062 surfaceLevel2 {
}
movieClip 1064 ForegroundLevel2 {
}
movieClip 1065 BLayerLevel2 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 35;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 26;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 22;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 24;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 32;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
}
movieClip 1067 {
}
movieClip 1068 UberForegroundLevel2 {
}
movieClip 1069 {
}
movieClip 1071 UberbackgroundLevel8 {
}
movieClip 1074 {
}
movieClip 1076 BackgroundLevel8 {
}
movieClip 1078 surfaceLevel8 {
}
movieClip 1080 tehwallzLevel8 {
}
movieClip 1082 tehgroundLevel8 {
}
movieClip 1084 tehplatformzLevel8 {
}
movieClip 1086 tehhangzLevel8 {
}
movieClip 1087 BLayerLevel8 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 40;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 35;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 255 Snail {
onClipEvent (load) {
_xscale = -100;
}
}
instance of movieClip 228 Spider {
onClipEvent (load) {
_xscale = -100;
}
}
}
movieClip 1090 {
}
movieClip 1093 {
}
movieClip 1095 ForegroundLevel8 {
}
movieClip 1097 {
}
movieClip 1194 {
frame 1 {
if (vanish == undefined) {
vanish = false;
}
if (quickDrop == undefined) {
quickDrop = false;
}
}
frame 2 {
if (vanish) {
gotoAndStop(147);
}
stop();
}
frame 11 {
_root.DoorCreak.start();
}
frame 13 {
if (worm == undefined) {
worm = _root.SnapLevel;
}
if (typeof worm != 'number') {
if (wormDoor == undefined) {
if (_root[worm + _root.LevelLoaded + _name] == undefined) {
wormDoor = 'Door0';
} else {
wormDoor = _root[worm + _root.LevelLoaded + _name];
}
}
_root[_root.LevelLoaded + worm + wormDoor] = _name;
_root.SnapLevel = _root.LevelLoaded;
_root.ChangeLevel(worm, wormDoor);
}
}
frame 43 {
_root.DoorClose.start();
if (typeof worm == 'number') {
_root.Char.gotoAndStop('DoorOut');
_root.Char._x = Math.round(_parent['Door' + worm]._x) + _parent['Door' + worm]._xscale / 2;
_root.Char._y = Math.round(_parent['Door' + worm]._y);
_root.Char.Still = true;
_root.Char._xscale = _parent['Door' + worm]._xscale;
_parent['Door' + worm].gotoAndPlay('doorOut');
}
delete onEnterFrame;
gotoAndStop(2);
}
frame 52 {
if (quickDrop) {
_root.Char._x = _x;
_root.Char.JumpFunc(0);
_root.Char.Still = true;
gotoAndStop(2);
}
}
frame 74 {
_root.Char.char.play();
}
frame 79 {
_root.DoorCreak.start();
}
frame 104 {
_root.DoorClose.start();
delete onEnterFrame;
if (!vanish) {
gotoAndStop(2);
}
}
frame 150 {
stop();
}
}
movieClip 1195 InteractLayerLevel8 {
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Level7';
}
}
instance golfHole of movieClip 309 {
onClipEvent (load) {
ID = 7;
}
}
instance Door2 of movieClip 1194 {
onClipEvent (load) {
worm = 'Bonus8';
}
}
}
movieClip 1197 Uberforground2-1 {
}
movieClip 1198 UberForegroundLevel1 {
}
movieClip 1199 {
}
movieClip 1201 UberbackgroundLevel7 {
}
movieClip 1203 BackgroundLevel7 {
}
movieClip 1205 surfaceLevel7 {
}
movieClip 1207 tehwallzLevel7 {
frame 1 {
stop();
}
}
movieClip 1209 tehgroundLevel7 {
}
movieClip 1211 tehplatformzLevel7 {
frame 1 {
stop();
}
}
movieClip 1213 tehhangzLevel7 {
}
movieClip 1215 ForegroundLevel7 {
}
movieClip 1218 {
}
movieClip 1220 {
}
movieClip 1221 UberForegroundLevel7 {
}
movieClip 1222 BLayerLevel7 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 37;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 40;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 39;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 30;
}
}
instance of movieClip 255 Snail {
onClipEvent (load) {
_xscale = -100;
}
}
}
movieClip 1223 InteractLayerLevel7 {
instance MaxX of movieClip 14 {
}
instance MinX of movieClip 14 {
}
instance MinY of movieClip 14 {
}
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus6';
}
}
instance Door2 of movieClip 124 {
onClipEvent (load) {
worm = 'Level1';
}
}
instance golfHole of movieClip 309 {
onClipEvent (load) {
ID = 8;
}
}
}
movieClip 1224 {
}
movieClip 1226 UberbackgroundLevel1 {
}
movieClip 1228 BackgroundLevel1 {
}
movieClip 1230 tehwallzLevel1 {
}
movieClip 1232 {
frame 1 {
ID = _root.aPlatzCount;
_name = 'aPlatz' + ID;
if (invisible == undefined) {
invisible = false;
}
if (!invisible) {
_root.ELayer.attachMovie('aPlatzSmoke', 'aPlatzSmoke' + ID, _root.ELayer.getNextHighestDepth(), {'_x': _x, '_y': _y, '_xscale': _xscale, '_yscale': _xscale});
}
if (_root.LevelLoaded == 'Bonus5') {
_root.ELayer['aPlatzSmoke' + ID].gotoAndStop(6);
} else {
if (_root.LevelLoaded == 'Level1') {
_root.ELayer['aPlatzSmoke' + ID].gotoAndStop(5);
} else {
if (_root.LevelLoaded == 'Bonus7') {
_root.ELayer['aPlatzSmoke' + ID].gotoAndStop(2);
if (reverseSmoke) {
_root.ELayer['aPlatzSmoke' + ID].platMove._xscale = -_root.ELayer['aPlatzSmoke' + ID].platMove._xscale;
}
} else {
if (_root.LevelLoaded == 'Bonus6') {
_root.ELayer['aPlatzSmoke' + ID].gotoAndStop(3);
} else {
if (_root.LevelLoaded == 'Bonus8') {
_root.ELayer['aPlatzSmoke' + ID].gotoAndStop(3);
} else {
_root.ELayer['aPlatzSmoke' + ID].gotoAndStop(1);
}
}
}
}
}
++_root.aPlatzCount;
_x = Math.round(_x);
_y = Math.round(_y);
if (falling) {
originX = _x;
originY = _y;
moveUD = 0;
BonusPlatMove = _root.BonusPlatFall;
} else {
if (anchorDist != undefined) {
circling = true;
moving = true;
anchorX = _x + anchorDist * Math.sin(rotOffset * 0.0174532925199433);
anchorY = _y + -anchorDist * Math.cos(rotOffset * 0.0174532925199433);
BonusPlatMove = _root.BonusPlatMove;
onEnterFrame = BonusPlatMove;
} else {
if (this.centerOffset == undefined) {
circling = false;
moving = false;
} else {
circling = false;
moving = true;
originX = _x;
originY = _y;
absoluteRL = 0;
moveRL = 0;
if (rotOffset == undefined) {
rotOffset = 0;
}
BonusPlatMove = _root.BonusPlatMove;
onEnterFrame = BonusPlatMove;
}
}
}
if (onlyOnStand == undefined) {
onlyOnStand = false;
}
if (onlyOnStand) {
moving = false;
_root.ELayer['aPlatzSmoke' + ID].platMove.stop();
}
smokeRL = 0;
smokeUD = 0;
stop();
}
}
movieClip 1233 aPlatzLevel1 {
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.4;
maxSpeed = 15;
centerOffset = 400;
rotOffset = 0;
onlyOnStand = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.4;
maxSpeed = 15;
centerOffset = 400;
rotOffset = -20;
onlyOnStand = true;
}
}
}
movieClip 1236 ForegroundLevel1 {
}
movieClip 1237 InteractLayerLevel1 {
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Level10';
}
}
instance of movieClip 995 {
onClipEvent (load) {
ID = 6;
}
}
instance of movieClip 995 {
onClipEvent (load) {
ID = 7;
}
}
instance golfHole of movieClip 309 {
onClipEvent (load) {
ID = 9;
}
}
instance Door2 of movieClip 124 {
onClipEvent (load) {
worm = 'Bonus10';
}
}
}
movieClip 1238 {
}
movieClip 1240 UberbackgroundLevel10 {
}
movieClip 1242 BackgroundLevel10 {
}
movieClip 1244 tehwallzLevel10 {
frame 1 {
stop();
}
}
movieClip 1246 tehplatformzBonus11 {
}
movieClip 1248 ForegroundLevel10 {
}
movieClip 1250 UberForegroundLevel10 {
}
movieClip 1252 {
}
movieClip 1276 {
frame 35 {
gotoAndPlay(31);
}
}
movieClip 1282 {
frame 11 {
_parent.gotoAndStop('RIdle');
}
}
movieClip 1285 {
}
movieClip 1291 {
}
movieClip 1299 {
frame 32 {
stop();
onEnterFrame = function () {
if (_root.Char._y > -5) {
_root.Char.gotoAndStop('getConeBack');
}
};
}
}
movieClip 1300 {
frame 1 {
ID = _root.BaddieCount;
_name = 'Baddie' + ID;
swapDepths(ID);
++_root.BaddieCount;
++_root.maxBaddies;
if (moveRL == undefined) {
moveRL = 0;
}
if (moveUD == undefined) {
moveUD = 0;
}
if (downTime == undefined) {
downTime = 0;
}
mRL = _root.mRL;
mUD = _root.mUD;
RLFunc = false;
RLx = _root.RLx;
RLy = _root.RLy;
UDx = _root.UDx;
UDy = _root.UDy;
WasSix = _root.WasSix;
PwnBaddies = _root.PwnBaddies;
JumpFunc = _root.SimpleJumpFunc;
JumpGuide = _root.BallJumpGuide;
WraptoGround = _root.WraptoGround;
JumpLand = _root.BallJumpLand;
spread = 15;
RAnchx = _root.RAnchx;
RAnchy = _root.RAnchy;
LAnchx = _root.LAnchx;
LAnchy = _root.LAnchy;
rotateInAir = _root.rotateInAir;
recenterPoints = _root.recenterPoints;
InShellrotation = 0;
rotter = 0;
spiderRotate = 0;
bouncy = false;
testPlatz = _root.testPlatz;
crazyLander = _root.crazyLander;
Thrust = 13;
bounceThreshDefault = 30;
bounceDefault = 0.5;
Status = 'Angry';
hopsN = 5;
maxSpidersOut = 1;
_root.spidersOut = 0;
maxRL = 5;
_root.snailIsOut = false;
_root.maxBaddies = 5;
recenterPoints();
}
frame 2 {
stop();
}
frame 3 {
moveRL = 0;
moveUD = 0;
b = 30;
InShell._rotation = 0;
InShellrotation = 0;
onEnterFrame = function () {
if (_root.Paused) {
} else {
if (b > 0) {
--b;
} else {
if (hopsN > 0) {
--hopsN;
xDist = _root.Char._x - _x;
_xscale = (xDist / Math.abs(xDist)) * 100;
moveRL = _xscale / 20;
JumpFunc(20);
JumpGuide();
} else {
if (_root.spidersOut < maxSpidersOut) {
hopsN = 5;
moveRL = 0;
moveUD = -20;
gotoAndStop('flying');
} else {
b = 30;
hopsN = 5;
}
}
}
}
};
stop();
}
frame 4 {
onEnterFrame = function () {
if (!_root.Paused) {
if (moveUD < 20) {
++moveUD;
}
if (JumpGuide('RIdle') == 'Wall') {
_xscale = -_xscale;
InShell._rotation = (InShellrotation + -_rotation) * _xscale / Math.abs(_xscale);
}
}
};
stop();
}
frame 7 {
b = 10;
spiderDropN = maxSpidersOut;
onEnterFrame = function () {
if (!_root.Paused) {
if (_y > -800) {
centerY += moveUD;
rotateInAir();
} else {
if (b > 0) {
--b;
} else {
if (spiderDropN == 0) {
--spiderDropN;
if (!_root.snailIsOut) {
baddieID = 0;
while (_root.BLayer['Baddie' + baddieID] != undefined) {
++baddieID;
}
_root.BLayer.attachMovie('Snail', 'Baddie' + baddieID, 805 + baddieID, {'_x': _root.Char._x, '_y': -800, 'ID': baddieID});
_root.BLayer['Baddie' + baddieID].JumpFunc(0);
_root.snailIsOut = true;
_root.ELayer.attachMovie('fallingShadow', 'Baddie' + baddieID + 'Shadow', _root.ELayer.getNextHighestDepth(), {'_x': _root.Char._x, 'badID': baddieID, 'onEnterFrame': _root.shadowEnterFrame, '_xscale': 0, '_yscale': 0});
}
b = 60;
} else {
if (spiderDropN > 0) {
if (_root.spidersOut < maxSpidersOut) {
--spiderDropN;
baddieID = 0;
while (_root.BLayer['Baddie' + baddieID] != undefined) {
++baddieID;
}
_root.BLayer.attachMovie('Spider', 'Baddie' + baddieID, 805 + baddieID, {'_x': _root.Char._x, '_y': -800, 'ID': baddieID});
_root.BLayer['Baddie' + baddieID].JumpFunc(0);
_root.ELayer.attachMovie('fallingShadow', 'Baddie' + baddieID + 'Shadow', _root.ELayer.getNextHighestDepth(), {'_x': _root.Char._x, 'badID': baddieID, 'onEnterFrame': _root.shadowEnterFrame, '_xscale': 0, '_yscale': 0});
++_root.spidersOut;
b = 60;
} else {
spiderDropN = 0;
}
} else {
moveUD = 0;
_root.ELayer.attachMovie('fallingShadow', 'Baddie' + ID + 'Shadow', _root.ELayer.getNextHighestDepth(), {'_x': _x, 'badID': ID, 'onEnterFrame': _root.shadowEnterFrame, '_xscale': 0, '_yscale': 0});
gotoAndStop('Jump');
}
}
}
}
}
};
}
frame 9 {
delete onEnterFrame;
moveRL = 0;
moveUD = 0;
b = 30;
hopsN = 5;
InShell._rotation = 0;
InShellrotation = 0;
maxSpidersOut += 2;
if (maxSpidersOut > 6) {
_root.BackgroundMusic.stop();
gotoAndStop('loldead');
} else {
gotoAndStop('shakeItOff');
}
}
frame 12 {
recenterPoints();
rotateInAir();
onEnterFrame = function () {
if (_root.Paused) {
} else {
++moveUD;
JumpGuide('land');
}
};
stop();
}
frame 13 {
coma = 160;
InShell._rotation = 0;
onEnterFrame = function () {
if (!_root.Paused) {
if (coma > 0) {
--coma;
comaStars._yscale = coma + 20;
comaStars._xscale = comaStars._yscale;
if (downTime > 0) {
--downTime;
} else {
if (_root.Char.hitTest(centerX - _root.Char.moveRL, centerY - _root.Char.moveUD, true)) {
ex = _root.Char.moveRL - moveRL;
ey = _root.Char.moveUD - moveUD;
_root.Thud.setVolume(Math.sqrt(ex * ex + ey * ey) * 10);
_root.Thud.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.Thud.start();
downTime = 7;
if (_root.Char._currentframe == 7) {
moveRL = (_x - _root.Char._x) / 10 + _root.Char.moveRL;
moveUD = -Math.abs(_root.Char.moveUD) * 2;
} else {
if (_root.Char._x > _x) {
if (_root.Char._currentframe == 31) {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 100) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 100) * 0.0174532925199433);
} else {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 120) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 120) * 0.0174532925199433);
if (_root.Char._currentframe < 7 && _root.Char._xscale * (centerX - _root.Char._x) > 0) {
_root.Char.JumpFunc(4);
_root.Char.gotoAndStop('Kick');
}
}
} else {
if (_root.Char._currentframe == 31) {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 80) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 80) * 0.0174532925199433);
} else {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 60) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 60) * 0.0174532925199433);
if (_root.Char._currentframe < 7 && _root.Char._xscale * (centerX - _root.Char._x) > 0) {
_root.Char.JumpFunc(4);
_root.Char.gotoAndStop('Kick');
spiderRotate = moveRL * _xscale / 10;
}
}
}
}
gotoAndStop('deadjump');
} else {
if (WraptoGround(true, false) == 'Fall') {
trace('floatin!');
gotoAndStop('die');
}
}
}
} else {
gotoAndStop('RIdle');
}
}
};
}
frame 14 {
recenterPoints();
rotateInAir();
onEnterFrame = function () {
if (_root.Paused) {
} else {
this.InShellrotation += (this.moveRL * this._xscale / 100) * 1.5;
++moveUD;
JumpGuide('recoup');
}
};
stop();
}
frame 15 {
onEnterFrame = function () {
play();
};
}
frame 33 {
gotoAndStop('RIdle');
}
frame 34 {
onEnterFrame = function () {
if (!_root.Paused) {
++moveUD;
if (JumpGuide('RIdle') == 'Wall') {
_xscale = -_xscale;
InShell._rotation = (InShellrotation + -_rotation) * _xscale / Math.abs(_xscale);
}
}
};
InShell.gotoAndPlay(31);
stop();
}
}
movieClip 1301 BLayerLevel10 {
}
movieClip 1302 InteractLayerLevel10 {
frame 1 {
stop();
}
instance Door0 of movieClip 124 {
onClipEvent (load) {
vanish = true;
}
}
instance of movieClip 372 {
onClipEvent (load) {
objectFunc = function () {
delete _root.Char.onEnterFrame;
_root.Char._alpha = 0;
_root.ChangeLevel('Level4', 'Door0');
delete objectFunc;
};
}
}
}
movieClip 1303 AllEverythingL12 {
}
movieClip 1306 {
frame 1 {
i = _name;
_root.Foreground.attachMovie('BoxFace', [i + 'Face'], _root.Foreground.getNextHighestDepth(), {'_x': _x, '_y': _y, '_xscale': _xscale, '_yscale': _yscale});
}
}
movieClip 1307 tehwallzLevel3 {
}
movieClip 1309 tehgroundLevel3 {
}
movieClip 1311 tehplatformzLevel3 {
}
movieClip 1313 {
}
movieClip 1315 {
}
movieClip 1317 ForegroundLevel3 {
frame 1 {
stop();
}
}
movieClip 1319 UberForegroundLevel3 {
}
movieClip 1320 BLayerLevel3 {
instance JumpPad0 of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 30;
}
}
}
movieClip 1323 {
frame 1 {
_name = 'swift' + _root.SwiftCount;
++_root.SwiftCount;
}
}
movieClip 1328 {
frame 1 {
stop();
}
}
movieClip 1329 InteractLayerLevel3 {
instance Door0 of movieClip 124 {
onClipEvent (load) {
worm = 'Level5';
SnapBack = false;
}
}
instance swift0 of movieClip 1323 {
onClipEvent (load) {
boost = 40;
}
}
instance MaxX of movieClip 14 {
onClipEvent (load) {
_root.MaxX = -_x;
}
}
instance MaxY of movieClip 14 {
onClipEvent (load) {
_root.MaxY = -_y;
}
}
}
movieClip 1330 {
}
movieClip 1331 FadeIn {
frame 1 {
stop();
}
frame 2 {
_root.OutPut.counterSquiggles.updateCounter(_root.Squiggles);
_root.OutPut.counterLives.updateCounter(_root.Lives);
}
frame 36 {
_root.BackgroundVolume = 100;
_root.BackgroundMusic.setVolume(_root.BackgroundVolume);
removeMovieClip(this);
}
}
movieClip 1332 FadeOut {
frame 1 {
_x = -_root._x;
_y = -_root._y;
if (soundTo != _root.soundIs) {
onEnterFrame = function () {
_x = -_root._x;
_y = -_root._y;
if (_root.BackgroundVolume > 0) {
_root.BackgroundVolume -= 5;
_root.BackgroundMusic.setVolume(_root.BackgroundVolume);
} else {
_root.BackgroundMusic.stop();
onEnterFrame = function () {
_x = -_root._x;
_y = -_root._y;
};
}
};
} else {
onEnterFrame = function () {
_x = -_root._x;
_y = -_root._y;
};
}
}
frame 36 {
if (soundTo != _root.soundIs) {
_root.BackgroundMusic.stop();
}
_root.EndLevel();
_root.LoadLevel(worm, wormDoor, soundTo);
removeMovieClip(this);
}
}
movieClip 1334 {
}
movieClip 1336 {
}
movieClip 1348 {
}
movieClip 1349 {
}
movieClip 1350 {
frame 1 {
updateCounter = function (squiggles) {
thousandsCounter = Math.round(squiggles / 1000 - 0.5);
hundredsCounter = Math.round((squiggles - thousandsCounter * 1000) / 100 - 0.5);
tensCounter = Math.round((squiggles - hundredsCounter * 100 - thousandsCounter * 1000) / 10 - 0.5);
onesCounter = squiggles - tensCounter * 10 - hundredsCounter * 100 - thousandsCounter * 1000;
if (squiggles < 10) {
numbersShell.number1._alpha = 0;
numbersShell.number2._alpha = 0;
numbersShell.number3._alpha = 0;
numbersShell._x = -45;
} else {
if (squiggles < 100) {
numbersShell.number1._alpha = 100;
numbersShell.number2._alpha = 0;
numbersShell.number3._alpha = 0;
numbersShell._x = -30;
} else {
if (squiggles < 1000) {
numbersShell.number1._alpha = 100;
numbersShell.number2._alpha = 100;
numbersShell.number3._alpha = 0;
numbersShell._x = -15;
} else {
numbersShell.number1._alpha = 100;
numbersShell.number2._alpha = 100;
numbersShell.number3._alpha = 100;
numbersShell._x = 0;
}
}
}
numbersShell.number0.gotoAndStop(onesCounter + 1);
numbersShell.number1.gotoAndStop(tensCounter + 1);
numbersShell.number2.gotoAndStop(hundredsCounter + 1);
numbersShell.number3.gotoAndStop(thousandsCounter + 1);
};
}
instance numbersShell of movieClip 1349 {
}
}
movieClip 1351 OutPut {
}
movieClip 1354 PauseMenu {
frame 6 {
stop();
}
frame 12 {
_root.onEnterFrame = _root.unpausedEnterFrame;
_root.Paused = false;
removeMovieClip(this);
}
}
movieClip 1356 BackgroundTrans4 {
}
movieClip 1358 BoxFace {
}
movieClip 1396 boom!shell {
frame 38 {
removeMovieClip(this);
}
}
movieClip 1397 SnailShell {
frame 1 {
ID = i;
if (moveRL == undefined) {
moveRL = 0;
}
if (moveUD == undefined) {
moveUD = 0;
}
if (downTime == undefined) {
downTime = 0;
}
mRL = _root.mRL;
mUD = _root.mUD;
RLFunc = _root.SimpleRLFunc;
RLx = _root.RLx;
RLy = _root.RLy;
UDx = _root.UDx;
UDy = _root.UDy;
WasSix = _root.WasSix;
PwnBaddies = _root.PwnBaddies;
JumpFunc = _root.SimpleJumpFunc;
JumpGuide = _root.BallJumpGuide;
WraptoGround = _root.WraptoGround;
JumpLand = _root.BallJumpLand;
spread = 15;
RAnchx = _root.RAnchx;
RAnchy = _root.RAnchy;
LAnchx = _root.LAnchx;
LAnchy = _root.LAnchy;
rotateInAir = _root.rotateInAir;
recenterPoints = _root.recenterPoints;
InShellrotation = 0;
rotter = 0;
combo = 0;
bouncy = false;
bounceThreshDefault = 8;
bounceDefault = 0.8;
smokeN = 0;
groundLandProtect = 0;
testPlatz = _root.testPlatz;
crazyLander = _root.crazyLander;
Standing = function () {
return false;
};
recenterPoints();
_name = 'SnailShell';
}
frame 2 {
this.moveUD = 0;
onEnterFrame = function () {
xDist = _root.theX + centerX;
yDist = _root.theY + centerY;
offDist = Math.sqrt(xDist * xDist + yDist * yDist);
if (!_root.Paused && Math.abs(offDist) < 3000) {
friction = _root.getFriction(_x, _y);
i = _root.RotToAccel(_rotation);
if (Math.abs(moveRL + i) < 40) {
moveRL += i;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
if (downTime > 0) {
--downTime;
} else {
if (_root.Char.hitTest(centerX, centerY, true)) {
combo = 1;
downTime = 5;
if (_root.Char._currentframe == 7) {
JumpFunc(0);
moveRL = (_x - _root.Char._x) / 10 + _root.Char.moveRL;
moveUD = -Math.abs(_root.Char.moveUD * 2);
} else {
if (_root.Char.moveRL == 0) {
if (Math.abs(moveRL) > 4) {
moveRL = -moveRL / 2;
} else {
moveRL = 0;
downTime = 0;
}
} else {
if (_root.Char.moveRL * (centerX - _root.Char._x) < 0) {
moveRL = -moveRL / 2;
} else {
if (_root.Char._currentframe == 6 || Math.abs(_root.Char.moveRL) < 10 && _root.Char._currentframe != 31) {
moveRL = _root.Char.moveRL * 1.5;
if (_x > _root.Char._x) {
moveRL += 5;
} else {
moveRL -= 5;
}
} else {
JumpFunc(0);
if (_root.Char._x > _x) {
if (_root.Char._currentframe == 31) {
moveRL = (20 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 100) * 0.0174532925199433);
moveUD = (20 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 100) * 0.0174532925199433);
} else {
moveRL = (20 + Math.abs(_root.Char.moveRL) * 1.5) * Math.cos((_root.Char._rotation - 135) * 0.0174532925199433);
moveUD = (20 + Math.abs(_root.Char.moveRL) * 1.5) * Math.sin((_root.Char._rotation - 135) * 0.0174532925199433);
if (_root.Char._currentframe != 12 && _root.Char._xscale * (centerX - _root.Char._x) > 0) {
_root.Char.JumpFunc(4);
_root.Char.gotoAndStop('Kick');
}
}
} else {
if (_root.Char._currentframe == 31) {
moveRL = (20 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 80) * 0.0174532925199433);
moveUD = (20 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 80) * 0.0174532925199433);
} else {
moveRL = (20 + Math.abs(_root.Char.moveRL) * 1.5) * Math.cos((_root.Char._rotation - 45) * 0.0174532925199433);
moveUD = (20 + Math.abs(_root.Char.moveRL) * 1.5) * Math.sin((_root.Char._rotation - 45) * 0.0174532925199433);
if (_root.Char._currentframe != 12 && _root.Char._xscale * (centerX - _root.Char._x) > 0) {
_root.Char.JumpFunc(4);
_root.Char.gotoAndStop('Kick');
}
}
}
JumpGuide();
}
}
}
}
ex = _root.Char.moveRL - moveRL;
ey = _root.Char.moveUD - moveUD;
_root.Thud.setVolume(Math.sqrt(ex * ex + ey * ey) * 10);
_root.Thud.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.Thud.start();
return false;
}
}
if (Math.abs(moveRL) > 1) {
moveRL -= moveRL / Math.abs(moveRL) / 8;
} else {
if (Math.abs(i) < 0.1) {
moveRL = 0;
}
}
if (friction) {
if (smokeN > 0) {
--smokeN;
} else {
smokeN = 2;
_root.inkSplat(_x + RLx(moveRL), _y + RLy(moveRL), moveRL * 4, _rotation);
}
if (moveRL == 0) {
temp = 0;
} else {
temp = -Math.abs(moveRL) * 2 * (moveRL * _xscale / -Math.abs(moveRL * _xscale));
}
rotter += (temp - rotter) / 20;
} else {
if (moveRL == 0) {
rotter = 0;
} else {
rotter = -Math.abs(moveRL) * 2 * (moveRL * _xscale / -Math.abs(moveRL * _xscale));
}
}
if (moveRL != 0) {
PwnBaddies();
}
if (Math.abs(_rotation) > 100 && Math.abs(moveRL) < 12) {
JumpFunc(0);
fliprot = -0.08 * _xscale;
} else {
oRL = moveRL;
temp = RLFunc();
if (temp == 'rEdge' || temp == 'rBackEdge') {
if (moveRL > -2) {
moveRL -= 0.2;
}
} else {
if (temp == 'lEdge' || temp == 'lBackEdge') {
if (moveRL < 2) {
moveRL += 0.2;
}
}
}
if (temp == 'Wall') {
_root.makeThud(_x, Math.abs(moveRL) * 10);
moveRL = -oRL / 2;
}
}
InShellrotation += rotter;
InShell._rotation = InShellrotation + -_rotation;
if (xDist > 740) {
arrowX = 680 - _root.theX;
} else {
if (xDist < -20) {
arrowX = 40 - _root.theX;
} else {
arrowX = centerX;
}
}
if (yDist > 500) {
arrowY = 440 - _root.theY;
} else {
if (yDist < -20) {
arrowY = 40 - _root.theY;
} else {
arrowY = centerY;
}
}
if (moveRL == 0) {
if (_root.ELayer.ShellPointer._alpha > 0) {
_root.ELayer.ShellPointer._alpha -= 5;
} else {
if (_root.ELayer.ShellPointer != undefined) {
_root.ELayer.ShellPointer.removeMovieClip(_root.ELayer.ShellPointer);
}
}
} else {
if (arrowX == centerX && arrowY == centerY) {
if (_root.ELayer.ShellPointer != undefined) {
_root.ELayer.ShellPointer.removeMovieClip(_root.ELayer.ShellPointer);
}
} else {
if (_root.ELayer.ShellPointer == undefined) {
_root.ELayer.attachMovie('ShellPointer', 'ShellPointer', _root.ELayer.getNextHighestDepth());
}
_root.ELayer.ShellPointer._alpha = 100;
if (arrowX > 680 - _root.theX) {
_root.ELayer.ShellPointer._x = 680 - _root.theX;
} else {
if (arrowX < 40 - _root.theX) {
_root.ELayer.ShellPointer._x = 40 - _root.theX;
} else {
_root.ELayer.ShellPointer._x = arrowX;
}
}
if (arrowY > 440 - _root.theY) {
_root.ELayer.ShellPointer._y = 440 - _root.theY;
} else {
if (arrowY < 40 - _root.theY) {
_root.ELayer.ShellPointer._y = 40 - _root.theY;
} else {
_root.ELayer.ShellPointer._y = arrowY;
}
}
_root.ELayer.ShellPointer._rotation = -Math.atan2(_root.ELayer.ShellPointer._x - _x, _root.ELayer.ShellPointer._y - _y) / 0.0174532925199433;
}
}
if (_root.InteractLayer.hitTest(centerX, centerY, true)) {
var i = 0;
while (_root.InteractLayer['Coin' + i]._x != undefined) {
if (_root.InteractLayer['Coin' + i].hitTest(centerX, centerY, true) && _root.InteractLayer['Coin' + i]._currentframe == 1) {
_root.InteractLayer['Coin' + i].rot = (moveRL + moveUD + random(10)) * 2;
_root.InteractLayer['Coin' + i].gotoAndPlay('Hit');
_root.CoinVoice.start();
break;
}
++i;
}
if (_root.InteractLayer.golfHole.hitTest(_x, _y, true)) {
if (_root.ELayer.ShellPointer != undefined) {
_root.ELayer.ShellPointer.removeMovieClip(_root.ELayer.ShellPointer);
}
if (_root.InteractLayer.golfHole.ID == undefined) {
_root.InteractLayer.object0.play();
delete onEnterFrame;
} else {
if (_root.PantsColor != _root.InteractLayer.golfHole.ID) {
_root.TrophyGetSound.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.TrophyGetSound.start();
_root.unlockedPantsColors[_root.InteractLayer.golfHole.ID] = true;
_root.Fancy_local_data.data.unlockedPantsColors = _root.unlockedPantsColors;
_root.ColorEmPants(_root.InteractLayer.golfHole.ID);
if (_root.unlockedPantsColors[4]) {
_root.kongregateStats.submit('colorTeal', 1);
}
if (_root.unlockedPantsColors[5]) {
_root.kongregateStats.submit('colorPurple', 1);
}
if (_root.unlockedPantsColors[6]) {
_root.kongregateStats.submit('colorBlack', 1);
}
if (_root.unlockedPantsColors[7]) {
_root.kongregateStats.submit('colorYellow', 1);
}
if (_root.unlockedPantsColors[8]) {
_root.kongregateStats.submit('colorBlue', 1);
}
if (_root.unlockedPantsColors[9]) {
_root.kongregateStats.submit('colorPeach', 1);
}
_root.unlockedColorCount = -4;
var i = 0;
while (i < 10) {
if (_root.unlockedPantsColors[i]) {
++_root.unlockedColorCount;
}
++i;
}
_root.kongregateStats.submit('unlockedColorCount', _root.unlockedColorCount);
}
}
}
}
}
};
stop();
}
frame 3 {
gotoAndStop('Jump');
}
frame 4 {
onEnterFrame = function () {
if (groundLandProtect > 0) {
--groundLandProtect;
}
xDist = _root.theX + centerX;
yDist = _root.theY + centerY;
offDist = Math.sqrt(xDist * xDist + yDist * yDist);
if (!_root.Paused && Math.abs(offDist) < 3000) {
if (_y > -_root.MinY + 700) {
moveRL = 0;
moveUD = 0;
_rotation = 0;
_x = originalX;
_y = originalY;
recenterPoints();
gotoAndStop('RIdle');
} else {
++moveUD;
if (downTime > 0) {
--downTime;
} else {
if (_root.Char.hitTest(centerX + moveRL, centerY + moveUD, true)) {
downTime = 5;
++combo;
if (combo > 1) {
gNHD = _root.ELayer.getNextHighestDepth();
_root.ELayer.attachMovie('combo!', 'combo!' + gNHD, gNHD, {'_x': _x + 40, '_y': _y - 30, 'smoke': combo + '!'});
}
if (_root.Char._currentframe == 7) {
moveRL = (_x - _root.Char._x) / 10 + _root.Char.moveRL;
moveUD = _root.Char.moveUD * 2;
} else {
if (_root.Char.moveRL == 0) {
maxSpeed = Math.sqrt(moveRL * moveRL + moveUD * moveUD) / 2;
moveRL = _x - _root.Char._x;
moveUD = _y - _root.Char._y;
nowSpeed = Math.sqrt(moveRL * moveRL + moveUD * moveUD);
moveRL *= maxSpeed / nowSpeed;
moveUD *= maxSpeed / nowSpeed;
} else {
if (_root.Char.moveRL < 0 || (_root.Char.moveRL == 0 || Char.moveUD > -4) && _x < _root.Char._x) {
if (_root.Char._currentframe == 31) {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 100) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 100) * 0.0174532925199433);
} else {
moveRL = (10 + Math.abs(_root.Char.moveRL) * 1.5) * Math.cos((_root.Char._rotation - 135) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL) * 1.5) * Math.sin((_root.Char._rotation - 135) * 0.0174532925199433);
}
} else {
if (_root.Char._currentframe == 31) {
moveRL = (10 + Math.abs(_root.Char.moveRL)) * Math.cos((_root.Char._rotation - 80) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL)) * Math.sin((_root.Char._rotation - 80) * 0.0174532925199433);
} else {
moveRL = (10 + Math.abs(_root.Char.moveRL) * 1.5) * Math.cos((_root.Char._rotation - 45) * 0.0174532925199433);
moveUD = (10 + Math.abs(_root.Char.moveRL) * 1.5) * Math.sin((_root.Char._rotation - 45) * 0.0174532925199433);
}
}
}
}
ex = _root.Char.moveRL - moveRL;
ey = _root.Char.moveUD - moveUD;
_root.Thud.setVolume(Math.sqrt(ex * ex + ey * ey) * 10);
_root.Thud.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.Thud.start();
if (Key.isDown(39) && !Key.isDown(37)) {
moveRL += 7;
} else {
if (!Key.isDown(39) && Key.isDown(37)) {
moveRL -= 7;
}
}
}
}
if (Math.abs(moveRL) > 12) {
moveRL -= moveRL / Math.abs(moveRL);
}
if (Math.abs(moveUD) > 25) {
moveUD -= moveUD / Math.abs(moveUD);
}
oRL = moveRL;
PwnBaddies();
this.InShellrotation += (this.moveRL * this._xscale / 100) * 1.5;
if (JumpGuide('RIdle') == 'Wall') {
}
if (xDist > 740) {
arrowX = 680 - _root.theX;
} else {
if (xDist < -20) {
arrowX = 40 - _root.theX;
} else {
arrowX = centerX;
}
}
if (yDist > 500) {
arrowY = 440 - _root.theY;
} else {
if (yDist < -20) {
arrowY = 40 - _root.theY;
} else {
arrowY = centerY;
}
}
if (arrowX == centerX && arrowY == centerY) {
if (_root.ELayer.ShellPointer != undefined) {
_root.ELayer.ShellPointer.removeMovieClip(_root.ELayer.ShellPointer);
}
} else {
if (_root.ELayer.ShellPointer == undefined) {
_root.ELayer.attachMovie('ShellPointer', 'ShellPointer', _root.ELayer.getNextHighestDepth());
}
_root.ELayer.ShellPointer._alpha = 100;
if (arrowX > 680 - _root.theX) {
_root.ELayer.ShellPointer._x = 680 - _root.theX;
} else {
if (arrowX < 40 - _root.theX) {
_root.ELayer.ShellPointer._x = 40 - _root.theX;
} else {
_root.ELayer.ShellPointer._x = arrowX;
}
}
if (arrowY > 440 - _root.theY) {
_root.ELayer.ShellPointer._y = 440 - _root.theY;
} else {
if (arrowY < 40 - _root.theY) {
_root.ELayer.ShellPointer._y = 40 - _root.theY;
} else {
_root.ELayer.ShellPointer._y = arrowY;
}
}
_root.ELayer.ShellPointer._rotation = -Math.atan2(_root.ELayer.ShellPointer._x - _x, _root.ELayer.ShellPointer._y - _y) / 0.0174532925199433;
}
if (_root.InteractLayer.hitTest(centerX, centerY, true)) {
var v3 = 0;
while (_root.InteractLayer['Coin' + v3]._x != undefined) {
if (_root.InteractLayer['Coin' + v3].hitTest(centerX, centerY, true) && _root.InteractLayer['Coin' + v3]._currentframe == 1) {
_root.InteractLayer['Coin' + v3].rot = (moveRL + moveUD + random(10)) * 2;
_root.InteractLayer['Coin' + v3].gotoAndPlay('Hit');
_root.CoinVoice.start();
break;
}
++v3;
}
}
}
}
};
stop();
}
frame 5 {
onEnterFrame = function () {
if (Math.abs(_x - 360) < 1000 && Math.abs(_y - 240) < 700) {
++moveUD;
_x = _x + moveRL;
_y = _y + moveUD;
} else {
_root.snailIsOut = false;
_alpha = 0;
delete onEnterFrame;
}
};
}
}
movieClip 1399 SpringBoardSmoke {
}
movieClip 1430 smokeFX {
frame 31 {
removeMovieClip(this);
}
}
movieClip 1432 DebugClip {
}
movieClip 1435 {
}
movieClip 1436 BouncySnailShell {
frame 1 {
if (freeze != true) {
onEnterFrame = function () {
if (Math.abs(_x + _root._x - 360) < 400) {
JumpFunc(0);
}
};
} else {}
stop();
}
instance InShell of movieClip 1435 {
onClipEvent (load) {
_y = -15;
}
}
frame 2 {
onEnterFrame = function () {
InShellrotation += (this.moveRL * this._xscale / 100) * 1.5;
InShell._rotation = InShellrotation + (_rotation - 180);
if (hitTest(_root.Char._x, _root.Char._y, true)) {
if (_root.Char._x > _x) {
moveRL = -10;
} else {
moveRL = 10;
}
moveRL += _root.Char.moveRL;
_y = _y - 5;
JumpFunc(10);
} else {
if (_rotation > 90) {
i = (180 - _rotation) / 60;
} else {
if (_rotation < -90) {
i = (-180 - _rotation) / 60;
} else {
i = _rotation / 60;
}
}
if (Math.abs(moveRL + i) < 45) {
moveRL += i;
}
PwnBaddies();
oRL = moveRL;
temp = RLFunc();
if (temp == 'Wall' || temp == 'Edge') {
moveRL = -oRL / 2;
}
}
};
stop();
}
frame 3 {
gotoAndStop('RIdle');
}
frame 4 {
recenterPoints();
onEnterFrame = function () {
if (!Paused) {
++moveUD;
if (hitTest(_root.Char._x, _root.Char._y - 40, true)) {
if (_root.Char._x > _x) {
moveRL = -10 * Math.sin((_root.Char._rotation + 135) * 0.0174532925199433);
moveUD = 10 * Math.cos((_root.Char._rotation + 135) * 0.0174532925199433);
} else {
moveRL = 10 * Math.sin((_root.Char._rotation + 45) * 0.0174532925199433);
moveUD = -10 * Math.cos((_root.Char._rotation + 45) * 0.0174532925199433);
}
moveRL += _root.Char.moveRL * Math.sin((_root.Char._rotation + 45) * 0.0174532925199433);
moveUD -= Math.abs(_root.Char.moveRL * Math.cos((_root.Char._rotation + 45) * 0.0174532925199433)) - _root.Char.moveUD;
}
if (Math.abs(moveRL) > 15) {
moveRL += (15 - moveRL) / 30;
}
if (Math.abs(moveUD) > 25) {
moveUD += (25 - moveUD) / 30;
}
oRL = moveRL;
PwnBaddies();
if (JumpGuide() == 'Wall') {
moveRL = -oRL / 2;
}
if (_root.InteractLayer.hitTest(_x, _y + 30, true)) {
var v2 = 0;
while (_root.InteractLayer['Coin' + v2]._x != undefined) {
if (_root.InteractLayer['Coin' + v2].hitTest(_x, _y + 30, true) && _root.InteractLayer['Coin' + v2]._currentframe == 1) {
_root.InteractLayer['Coin' + v2].rot = (moveRL + moveUD + random(10)) * 2;
_root.InteractLayer['Coin' + v2].gotoAndPlay('Hit');
_root.CoinVoice.start();
break;
}
++v2;
}
}
}
};
onEnterFrame();
stop();
}
}
movieClip 1437 {
}
movieClip 1468 {
}
movieClip 1481 {
}
movieClip 1517 {
}
movieClip 1598 {
}
movieClip 1629 {
}
movieClip 1648 {
}
movieClip 1649 {
frame 1 {
onEnterFrame = function () {
if (Math.abs(_root.Char.hairRL) > Math.abs(_root.Char.hairUD) || Math.abs(_root.Char.hairUD) < 2) {
if (Math.abs(_root.Char.hairRL) < 4) {
hairGoTo = 24;
} else {
if (_root.Char._xscale * _root.Char.hairRL > 0) {
if (Math.abs(_root.Char.hairRL) < 15) {
hairGoTo = 13;
} else {
hairGoTo = 2;
}
} else {
if (Math.abs(_root.Char.hairRL) < 15) {
hairGoTo = 35;
} else {
hairGoTo = 46;
}
}
}
} else {
if (_root.Char.hairUD > 0) {
hairGoTo = 13;
} else {
hairGoTo = 35;
}
}
if (_root.Char.hairGel > hairGoTo) {
--_root.Char.hairGel;
}
if (_root.Char.hairGel < hairGoTo) {
++_root.Char.hairGel;
}
gotoAndStop(_root.Char.hairGel);
};
onEnterFrame();
}
}
movieClip 2061 {
}
movieClip 2302 {
frame 7 {
_parent.rockOutCounter = 0;
}
frame 73 {
if (b == 0) {
b = -6;
gotoAndPlay('combHair');
} else {
if (b == -1) {
} else {
if (b < 0) {
++b;
} else {
--b;
gotoAndPlay(1);
}
}
}
}
frame 154 {
}
frame 290 {
gotoAndPlay(244);
}
frame 411 {
_root.BadStomp.setPan((_root._x + _parent._x) / 3.600000000000001 - 100);
_root.BadStomp.start();
}
}
movieClip 2342 {
frame 5 {
if (_parent.friction) {
_root.inkSplat(_parent._x + _parent.RLx(_parent.moveRL), _parent._y + _parent.RLy(_parent.moveRL), _parent._xscale, _parent._rotation);
}
}
frame 11 {
if (_parent.friction) {
_root.inkSplat(_parent._x + _parent.RLx(_parent.moveRL), _parent._y + _parent.RLy(_parent.moveRL), _parent._xscale, _parent._rotation);
}
}
}
movieClip 2343 {
frame 8 {
if (_parent.friction) {
_root.inkSplat(_parent._x + _parent.RLx(_parent.moveRL), _parent._y + _parent.RLy(_parent.moveRL), _parent._xscale, _parent._rotation);
}
}
frame 18 {
if (_parent.friction) {
_root.inkSplat(_parent._x + _parent.RLx(_parent.moveRL), _parent._y + _parent.RLy(_parent.moveRL), _parent._xscale, _parent._rotation);
}
}
}
movieClip 2367 {
frame 5 {
_parent.hairGel = 17;
}
frame 9 {
if (_parent.friction) {
_root.inkSplat(_parent._x + _parent.RLx(_parent.moveRL), _parent._y + _parent.RLy(_parent.moveRL), -_parent._xscale, _parent._rotation);
}
}
frame 11 {
if (!(_parent.RightIsDown() && _parent.faceTurn > 0) && !(_parent.LeftIsDown() && _parent.faceTurn < 0)) {
if (Math.abs(_parent.moveRL) < 3) {
_parent.moveRL = -(_parent._xscale / 50);
}
gotoAndPlay(16);
}
_parent._xscale = -_parent._xscale;
}
frame 15 {
_parent.hairGel = 13;
if (_parent.moveRL == 0) {
_parent.moveRL = _parent._xscale / 50;
}
_parent.stepUp = true;
_parent.gotoAndStop('RWalk');
}
frame 20 {
_parent.gotoAndStop('RIdle');
}
}
movieClip 2383 {
frame 8 {
_parent.moveRL = 0;
_parent.gotoAndStop('RIdle');
}
}
movieClip 2411 {
}
movieClip 2412 {
frame 1 {
if (_parent.crouchy == true) {
_parent.crouchy = false;
gotoAndStop(10);
}
if (_parent.runtoslide == true) {
_parent.runtoslide = false;
skipslide = true;
} else {
gotoAndStop(10);
}
}
frame 10 {
stop();
if (skipslide == true) {
skipslide = false;
CharBoarding.gotoAndStop(8);
} else {
CharBoarding.gotoAndStop(1);
}
onEnterFrame = function () {
temp = Math.round(Math.abs(_parent.moveRL) * 0.425);
if (temp > CharBoarding._currentframe) {
CharBoarding.nextFrame();
}
if (temp < CharBoarding._currentframe) {
if (CharBoarding._currentframe == 2) {
_parent.gotoAndStop('RIdle');
} else {
if (CharBoarding > 8 || !_parent.sliding) {
CharBoarding.prevFrame();
}
}
}
};
}
frame 11 {
}
}
movieClip 2426 {
}
movieClip 2477 {
}
movieClip 2487 {
frame 34 {
_parent.gotoAndStop(7);
}
}
movieClip 2554 {
}
movieClip 2562 {
}
movieClip 2563 {
frame 34 {
stop();
}
}
movieClip 2584 {
frame 1 {
if (_parent._parent.moveUD > -10) {
gotoAndPlay('Fall');
} else {
if (Math.abs(_parent._parent._rotation) > 45 && _parent._parent.fliprot != 0) {
_parent._parent.Still = true;
gotoAndStop(15);
}
}
if (_parent._parent.canSpin) {
_parent._parent.canSpin = false;
stop();
}
}
frame 3 {
if (!_parent._parent.Still && !_parent._parent.TempStill) {
if (_parent._parent.Math.abs(_rotation < 45) && (_parent._parent._xscale > 0 && Key.isDown(37) && !Key.isDown(39) || _parent._parent._xscale < 0 && Key.isDown(39) && !Key.isDown(37))) {
if (Math.abs(_parent._parent.moveRL) < 5) {
_parent._parent.moveRL = -_parent._parent._xscale / 50;
}
_parent.gotoAndStop(2);
} else {
if ((_parent._parent._xscale < 0 && Key.isDown(37) && !Key.isDown(39) || _parent._parent._xscale > 0 && Key.isDown(39) && !Key.isDown(37)) && Math.abs(_parent._parent.moveRL) < 4 && _parent._parent.Math.abs(_rotation < 45)) {
if (Math.abs(_parent._parent.moveRL) < 5) {
_parent._parent.moveRL = _parent._parent._xscale / 20;
}
_parent.gotoAndStop(1);
} else {
_parent.gotoAndStop(1);
}
}
} else {
_parent.gotoAndStop(1);
}
}
frame 7 {
stop();
}
frame 15 {
if (Math.abs(_parent._parent._rotation) > 45 && _parent._parent.fliprot != 0) {
stop();
}
}
frame 28 {
_parent.gotoAndStop(3);
}
}
movieClip 2641 {
frame 33 {
_parent._rotation = 0;
_parent.gotoAndStop(3);
}
}
movieClip 2643 {
frame 1 {
stop();
}
}
movieClip 2653 {
frame 9 {
_parent.hairGel = 24;
_parent.moveRL = 0;
_parent.gotoAndStop('RIdle');
}
}
movieClip 2665 {
frame 10 {
stop();
}
frame 17 {
gotoAndPlay(11);
}
}
movieClip 2694 {
frame 1 {
gotoAndPlay(4);
}
frame 19 {
_parent.hurting = false;
_parent.gotoAndStop('RIdle');
}
}
movieClip 2705 {
frame 11 {
_parent._parent.rockOutCounter = 0;
}
frame 13 {
stop();
}
}
movieClip 2719 {
frame 1 {
stop();
}
}
movieClip 2730 {
}
movieClip 2731 {
frame 1 {
stop();
}
}
movieClip 2732 {
}
movieClip 2737 {
}
movieClip 2772 {
}
movieClip 2773 {
frame 5 {
stop();
}
}
movieClip 2785 {
frame 6 {
if (_root.Health == 0) {
_parent.gotoAndStop('Die');
}
}
frame 17 {
_parent.JumpFunc(10);
}
}
movieClip 2789 {
frame 1 {
stop();
}
frame 10 {
if (_root.InteractLayer.FancyGolfTee.hitTest(_parent._x, _parent._y, true) && _root.UberForeground.FancyGolfTeeSmoke._currentframe == 1 && _parent._y < _root.InteractLayer.FancyGolfTee._y - 20) {
_root.UberForeground.FancyGolfTeeSmoke.gotoAndStop(2);
_parent._xscale = UberForeground.FancyGolfTeeSmoke._xscale;
_parent._x = _root.InteractLayer.FancyGolfTee._x - _root.InteractLayer.FancyGolfTee._xscale / 10;
_parent.moveRL = 0;
_parent.moveUD = 0;
_parent.gotoAndStop('TeeOff');
} else {
if (_root.LevelLoaded == 'Level10') {
_parent.gotoAndStop('confront');
} else {
if (_root.testAll(_parent._x, _parent._y + 10)) {
_parent._y += 5;
_parent.RLFunc();
_parent.gotoAndStop('RSlow');
} else {
_parent.moveUD = 0;
_parent.Still = true;
_parent.gotoAndStop('Jump');
}
}
}
}
}
movieClip 2841 {
frame 4 {
_parent.hairRL = 0;
}
frame 18 {
_root.InteractLayer['Door' + _parent.doorInto].play();
}
frame 33 {
_parent.hairGel = 15;
}
frame 52 {
stop();
}
}
movieClip 2854 {
}
movieClip 2856 {
frame 5 {
stop();
}
frame 7 {
stop();
}
}
movieClip 2883 {
}
movieClip 2900 {
frame 38 {
_parent.TempStill = true;
_parent.wallJumpFell = true;
_parent.JumpFunc(-_parent.moveUD);
}
}
movieClip 2962 {
}
movieClip 2963 {
frame 11 {
stop();
}
}
movieClip 2965 {
}
movieClip 3005 {
}
movieClip 3006 {
frame 7 {
_root.DeathKnell.start();
}
frame 28 {
stop();
i = 90;
onEnterFrame = function () {
--CharAngel._y;
--i;
if (i == 0) {
_root.BackgroundMusic.stop();
if (_root.Lives == 0) {
_root.QuittoMenu();
} else {
_root.Health = 100;
_root.Setup = function () {
--_root.Lives;
_root.OutPut.counterLives.updateCounter(_root.Lives);
};
_root.soundIs = 'dead';
_root.ChangeLevel(_root.LevelLoaded, 'Door0');
}
i = -100;
}
};
}
}
movieClip 3008 {
}
movieClip 3010 {
}
movieClip 3072 {
}
movieClip 3150 {
frame 1 {
if (Math.abs(_parent.moveRL) < 10) {
gotoAndPlay(17);
} else {
gotoAndPlay(6);
}
_parent.moveRL = 0;
_parent.moveUD = 0;
}
frame 22 {
if (!_root.testAll(_parent._x + _parent._xscale / 5, _parent._y, true)) {
stop();
}
}
frame 100 {
gotoAndPlay(74);
}
}
movieClip 3170 {
frame 21 {
_parent.gotoAndStop('RIdle');
_parent.WraptoGround(true, true, false);
}
}
movieClip 3189 {
frame 20 {
_parent._parent.tempX = 0;
_parent._parent.tempY = 0;
_parent._parent.hairRL = 0;
_parent._parent.gotoAndStop('LedgeHang');
}
}
movieClip 3219 {
frame 9 {
delete _parent._parent.onEnterFrame;
}
frame 13 {
_parent.hairGel = 2;
_parent.hairRL = _parent._xscale;
}
frame 15 {
_parent.hairRL = 0;
}
frame 20 {
_parent._parent.tempX = 0;
_parent._parent.tempY = 0;
_parent._parent.hairRL = 0;
_parent._parent.gotoAndStop('LedgeHang');
}
frame 31 {
_parent._parent.tempX = 0;
_parent._parent.tempY = 0;
_parent._parent.gotoAndStop('LedgeHang');
}
}
movieClip 3220 {
}
movieClip 3327 {
frame 109 {
gotoAndPlay(101);
}
}
movieClip 3446 {
frame 19 {
if (Math.abs(_parent._rotation) > 20) {
gotoAndPlay(42);
}
}
frame 41 {
if (Math.abs(_parent._rotation) < 20) {
_parent.JumpFunc(-_parent.moveUD);
}
}
frame 52 {
gotoAndPlay(66);
}
frame 94 {
stop();
}
}
movieClip 3574 CharPlatHang {
frame 1 {
gotoAndPlay(35);
}
frame 105 {
gotoAndPlay(43);
}
frame 128 {
gotoAndPlay(108);
}
}
movieClip 3591 {
}
movieClip 3599 {
frame 14 {
_parent.yerdown = true;
if (Math.abs(_parent.moveRL) > 5 || _parent.CheckHead()) {
_parent.gotoAndStop('FSRoll');
} else {
_parent.gotoAndStop('Duck');
}
}
}
movieClip 3603 {
}
movieClip 3747 {
frame 1 {
_root.SpawnPencilSwing(_parent._x, _parent._y);
_parent.onEnterFrame = function () {
if (Key.isDown(this.Jump)) {
this.CharTeeOff.gotoAndPlay('startSwing');
_root.UberForeground.PencilShell.gotoAndPlay(50);
delete this.onEnterFrame;
}
};
_parent.hairRL = 0;
_parent.hairUD = 0;
}
frame 45 {
gotoAndPlay(6);
}
frame 72 {
_root.UberForeground.FancyGolfTeeSmoke.nextFrame();
_root.getNextHighestDepth();
_root.SpawnBaddies(_parent._x, _parent.y + 50, 'SnailShell');
_root.SnailShell.moveRL = 9;
_root.SnailShell.moveUD = 0;
_root.SnailShell.mRL = _root.mRL;
_root.SnailShell.mUD = _root.mUD;
_root.SnailShell.RLFunc = _root.SimpleRLFunc;
_root.SnailShell.RLx = _root.RLx;
_root.SnailShell.RLy = _root.RLy;
_root.SnailShell.UDx = _root.UDx;
_root.SnailShell.UDy = _root.UDy;
_root.SnailShell.WasSix = _root.WasSix;
_root.SnailShell.PwnBaddies = _root.PwnBaddies;
_root.SnailShell.JumpFunc = _root.SimpleJumpFunc;
_root.SnailShell.JumpGuide = _root.BallJumpGuide;
_root.SnailShell.WraptoGround = _root.WraptoGround;
_root.SnailShell.JumpLand = _root.BallJumpLand;
_root.SnailShell.spread = 10;
_root.SnailShell.RAnchx = _root.RAnchx;
_root.SnailShell.RAnchy = _root.RAnchy;
_root.SnailShell.LAnchx = _root.LAnchx;
_root.SnailShell.LAnchy = _root.LAnchy;
_root.SnailShell.rotateInAir = _root.rotateInAir;
_root.SnailShell.recenterPoints = _root.recenterPoints;
_root.SnailShell.InShellrotation = 0;
_root.SnailShell.rotter = 0;
_root.SnailShell.bouncy = false;
_root.SnailShell.bounceThreshDefault = 8;
_root.SnailShell.bounceDefault = 0.8;
_root.SnailShell.testPlatz = _root.testPlatz;
_root.SnailShell.platToGround = _root.platToGround;
_root.SnailShell.wallToGround = _root.wallToGround;
_root.SnailShell.recenterPoints();
_root.SnailShell.JumpFunc(50);
_root.SnailShell.moveRL = 9;
_root.SnailShell.downTime = 20;
_root.SnailShell.JumpGuide();
}
frame 76 {
if (Key.isDown(37) && !Key.isDown(39) || !Key.isDown(37) && Key.isDown(39) || Key.isDown(_parent.Jump)) {
_root.UberForeground.PencilShell.pencil.stop();
_root.UberForeground.PencilShell.moveUD = -10;
_root.UberForeground.PencilShell.onEnterFrame = function () {
++this.moveUD;
this._x -= 20;
this._y += moveUD;
this.pencil.pencil._rotation -= 60;
if (-this._x > _root.MaxX - 50) {
_root.Thud.setVolume(200);
_root.Thud.setPan((_root._x + this._x) / 3.600000000000001 - 100);
_root.Thud.start();
this.pencil.pencil._rotation = -100;
delete this.onEnterFrame;
}
};
_parent.gotoAndStop('RIdle');
} else {
_parent.onEnterFrame = function () {
if (Key.isDown(37) && !Key.isDown(39) || !Key.isDown(37) && Key.isDown(39) || Key.isDown(this.Jump)) {
_root.UberForeground.PencilShell.play();
this.gotoAndStop('RIdle');
}
};
}
}
frame 167 {
_parent.gotoAndStop('RIdle');
}
}
movieClip 3851 {
}
movieClip 4068 {
frame 52 {
_root.InteractLayer.object0.gotoAndPlay('giveCone');
}
frame 88 {
_root.TrophyGetSound.start();
}
frame 95 {
stop();
}
frame 96 {
b = 10;
}
frame 106 {
}
frame 234 {
stop();
}
frame 244 {
gotoAndPlay('charkneelloop');
}
frame 295 {
_parent._x -= 85;
_parent._xscale = -100;
_root.InteractLayer.nextFrame();
_root.tehwallz.gotoAndStop(3);
}
frame 298 {
_parent.onEnterFrame = function () {
if (Key.isDown(39) && !Key.isDown(37)) {
if (this._xscale > 0) {
_root.InteractLayer.object0.play();
this.gotoAndStop('RWalk');
} else {
_root.InteractLayer.object0.play();
this.gotoAndStop('Backpeddle');
}
if (this.moveRL < this.RLing) {
this.moveRL = this.RLing;
}
} else {
if (Key.isDown(37) && !Key.isDown(39)) {
if (this._xscale < 0) {
_root.InteractLayer.object0.play();
this.gotoAndStop('RWalk');
} else {
_root.InteractLayer.object0.play();
this.gotoAndStop('Backpeddle');
}
if (this.moveRL > -this.RLing) {
this.moveRL = -this.RLing;
}
} else {
if (Key.isDown(40)) {
_root.InteractLayer.object0.play();
this.gotoAndStop('Duck');
} else {
if (Key.isDown(this.Jump)) {
_root.InteractLayer.object0.play();
this.fliprot = 0;
this.SisDown = true;
this.FloatUp = 6;
_root.CharJump.setPan((_root._x + this._x) / 3.600000000000001 - 100);
_root.CharJump.start();
this.JumpFunc(12);
return true;
}
}
}
}
};
}
frame 315 {
gotoAndPlay('charprideloop');
}
}
movieClip 4090 {
frame 21 {
_parent.gotoAndStop('Jump');
}
}
movieClip 4103 {
frame 13 {
_parent.gotoAndStop('RIdle');
}
}
movieClip 4209 {
frame 123 {
_root.BLayer.Baddie0.moveRL = -5;
_root.BLayer.Baddie0.moveUD = -5;
_root.BLayer.Baddie0._xscale = -100;
_root.BLayer.Baddie0.gotoAndStop('entrance');
}
frame 156 {
if (!_root.isMute) {
_root.BackgroundMusic.stop();
_root.BackgroundMusic.attachSound('angryBaddie');
_root.BackgroundMusic.setVolume(100);
_root.BackgroundVolume = 100;
_root.BackgroundMusic.start(0, 1000);
}
}
frame 169 {
_parent.gotoAndStop('Land');
}
}
movieClip 4210 IceCreamyPrize {
frame 1 {
onEnterFrame = function () {
if (ICC._y < -75) {
ICC._y += 2;
glory._y += 2;
} else {
play();
delete onEnterFrame;
}
};
stop();
}
frame 31 {
_root.QuittoMenu();
stop();
}
}
movieClip 4228 {
frame 2 {
stop();
delete _root.BLayer.Baddie0.onEnterFrame;
_root.ELayer.attachMovie('IceCreamyPrize', 'IceCreamyPrize', _root.ELayer.getNextHighestDepth(), {'_x': _parent._x, '_y': _parent._y});
_root.Fanfare.start();
}
frame 3 {
_root.InteractLayer.object0.gotoAndPlay('giveCone');
}
}
movieClip 4229 Char {
frame 1 {
Idle.b = 6;
onEnterFrame = function () {
if (!_root.Paused) {
_root.PauseListener();
Idle.play();
friction = _root.getFriction(_x, _y);
if (friction) {
RLing = 0.2;
} else {
RLing = 1.5;
}
i = _root.RotToAccel(_rotation) / 2;
if (Math.abs(moveRL + i) < 40) {
moveRL += i;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
if (RightIsDown()) {
if (moveRL < -5) {
gotoAndStop('Slide');
} else {
if (friction && moveRL > 10) {
gotoAndStop('Slide');
} else {
if (_xscale > 0) {
moveRL += RLing;
gotoAndStop('RWalk');
} else {
gotoAndStop('Backpeddle');
}
}
if (moveRL < RLing) {
moveRL += RLing;
}
}
} else {
if (LeftIsDown()) {
if (moveRL > 5) {
gotoAndStop('Slide');
} else {
if (friction && moveRL < -10) {
gotoAndStop('Slide');
} else {
if (_xscale < 0) {
moveRL -= RLing;
gotoAndStop('RWalk');
} else {
gotoAndStop('Backpeddle');
}
}
if (moveRL > -RLing) {
moveRL -= RLing;
}
}
} else {
temp = false;
if (friction) {
if (Math.abs(_rotation) > 20) {
temp = true;
}
} else {
if (Math.abs(_rotation) > 35) {
temp = true;
}
}
if (temp && _rotation * moveRL > 0) {
if (Math.abs(_rotation) < 90) {
gotoAndStop('Slide');
} else {
JumpFunc(0);
}
}
if (moveRL == 0) {
} else {
if (Math.abs(moveRL) > 5) {
if (Key.isDown(37) && Key.isDown(39) || !Key.isDown(37) && !Key.isDown(39)) {
crouchy = true;
gotoAndStop('Slide');
}
} else {
if (Math.abs(moveRL) > RLing / 2) {
moveRL -= (moveRL / Math.abs(moveRL)) * (RLing / 2);
} else {
moveRL = 0;
}
}
}
}
}
temp = RLFunc();
if (Key.isDown(40) && !Key.isDown(38)) {
if (Math.abs(moveRL) > 5) {
runtoslide = true;
gotoAndStop('Slide');
} else {
gotoAndStop('Duck');
return false;
}
} else {
if (temp == 'Edge' && moveRL == 0) {
gotoAndStop('Edge');
}
}
if (temp == 'door') {
} else {
JumpListener();
CheckBaddieHit();
}
}
};
stop();
}
frame 2 {
hurting = false;
if (stepUp) {
CharStartup.gotoAndPlay(13);
}
stepUp = false;
onEnterFrame = function () {
if (!_root.Paused) {
_root.PauseListener();
CharStartup.play();
friction = _root.getFriction(_x, _y);
i = _root.RotToAccel(_rotation) / 2;
if (Math.abs(moveRL + i) < 40) {
moveRL += i;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
if (friction) {
RLing = 0.2;
} else {
if (Math.abs(moveRL) > 6) {
RLing = 1;
} else {
RLing = 1.5;
}
}
if (RightIsDown()) {
if (moveRL < 20) {
if (moveRL > -4 && _xscale > 0 || moveRL < -2 && _xscale < 0) {
moveRL += RLing;
if (moveRL < (90 + _rotation) / 10 && i < RLing) {
moveRL -= i;
}
}
}
} else {
if (LeftIsDown()) {
if (moveRL > -20) {
if (moveRL < 4 && _xscale < 0 || moveRL > 2 && _xscale > 0) {
moveRL -= RLing;
if (moveRL > -(90 - _rotation) / 10 && i > RLing) {
moveRL -= i;
}
}
}
} else {
temp = false;
if (friction) {
if (Math.abs(_rotation) > 20) {
temp = true;
}
} else {
if (Math.abs(_rotation) > 35) {
temp = true;
}
}
if (temp && _rotation * moveRL < 0) {
if (Math.abs(_rotation) < 90) {
runtoslide = true;
gotoAndStop('Slide');
} else {
JumpFunc(0);
}
}
}
}
if (!(RightIsDown() && moveRL > 0) && !(LeftIsDown() && moveRL < 0) && moveRL != 0) {
if (Math.abs(moveRL) < 10 && Math.abs(_rotation) < 2) {
if (_root.tehwallz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20)) {
_xscale = 100;
gotoAndStop('LedgeDown');
return true;
}
if (_root.tehwallz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20)) {
_xscale = -100;
gotoAndStop('LedgeDown');
return true;
}
}
if (Math.abs(moveRL) > 10) {
moveRL -= (moveRL / Math.abs(moveRL)) * 2;
}
if (CharStartup._currentframe == 10 || CharStartup._currentframe == 19) {
if (Math.abs(moveRL) > 6) {
runtoslide = true;
gotoAndStop('Slide');
} else {
gotoAndStop('RSlow');
}
}
}
if (CharStartup._currentframe == 20) {
if (RightIsDown() && _xscale < 0 || LeftIsDown() && _xscale > 0) {
if (Math.abs(moveRL) > 6) {
trace('slide');
runtoslide = true;
gotoAndStop('Slide');
} else {
trace('back');
gotoAndStop('Backpeddle');
}
} else {
gotoAndStop('RRun');
}
} else {
if (Key.isDown(40) && !Key.isDown(38)) {
if (Math.abs(moveRL) > 6) {
gotoAndStop('DownSlide');
}
}
}
EveryFrame();
} else {
CharStartup.stop();
}
};
}
frame 3 {
faceTurn = -_xscale;
onEnterFrame = function () {
friction = _root.getFriction(_x, _y);
if (friction) {
RLing = 0.2;
} else {
if (Math.abs(moveRL) > 6) {
RLing = 1;
} else {
RLing = 1.5;
}
}
if (RightIsDown() && faceTurn > 0 && moveRL < 20) {
moveRL += RLing;
} else {
if (LeftIsDown() && faceTurn < 0 && moveRL > -20) {
moveRL -= RLing;
} else {
if ((Math.abs(moveRL) > 2 || Backpeddle._currentframe > 18) && moveRL != 0) {
moveRL -= moveRL / Math.abs(moveRL);
if (moveRL != 0 && Math.abs(moveRL) < 10 && Math.abs(_rotation) < 2) {
if (_root.tehwallz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20)) {
_xscale = 100;
gotoAndStop('LedgeDown');
return true;
}
if (_root.tehwallz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20)) {
_xscale = -100;
gotoAndStop('LedgeDown');
return true;
}
}
}
}
}
i = _root.RotToAccel(_rotation) / 2;
if (Math.abs(moveRL + i) < 40) {
moveRL += i;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
EveryFrame();
if (Backpeddle._currentframe < 11) {
hairRL = -hairRL;
}
};
}
frame 4 {
slideCount = 30;
onEnterFrame = function () {
if (!_root.Paused) {
_root.PauseListener();
Run.play();
friction = _root.getFriction(_x, _y);
i = _root.RotToAccel(_rotation);
if (moveRL * i > 0) {
moveRL += i;
} else {
moveRL += i / 2;
}
if (friction) {
RLing = 0.2;
} else {
RLing = 1;
}
if (RightIsDown()) {
if (moveRL < 20) {
moveRL += RLing;
if (moveRL < (90 + _rotation) / 10 && i < RLing) {
moveRL -= i;
}
}
if (moveRL < 0 || _xscale < 0) {
runtoslide = true;
gotoAndStop('Slide');
}
}
if (LeftIsDown()) {
if (moveRL > -20) {
moveRL -= RLing;
if (moveRL > -(90 - _rotation) / 10 && i > RLing) {
moveRL -= i;
}
}
if (moveRL > 0 || _xscale > 0) {
runtoslide = true;
gotoAndStop('Slide');
}
}
if (Key.isDown(40) && !Key.isDown(38)) {
gotoAndStop('DownSlide');
}
if (moveRL == 0) {
gotoAndStop('RIdle');
} else {
if (!Key.isDown(39) && !Key.isDown(37) || Key.isDown(39) && Key.isDown(37)) {
moveRL -= moveRL / Math.abs(moveRL);
runtoslide = true;
gotoAndStop('Slide');
}
}
temp = false;
if (friction) {
if (Math.abs(_rotation) > 20) {
temp = true;
}
} else {
if (Math.abs(_rotation) > 35) {
temp = true;
}
}
if (temp && _rotation * moveRL > 0) {
if (slideCount > 0 && !friction) {
--slideCount;
} else {
if (Math.abs(_rotation) < 90) {
runtoslide = true;
gotoAndStop('Slide');
}
}
} else {
slideCount = 30;
}
if (Math.abs(moveRL) > 20) {
moveRL -= (moveRL / Math.abs(moveRL)) * 0.5;
}
if (Math.abs(moveRL) > 35) {
moveRL *= 35 / Math.abs(moveRL);
}
if (CheckHead()) {
moveRL = -moveRL / 2;
JumpFunc(5);
} else {
EveryFrame();
}
if (Math.abs(_rotation) > 15) {
hairRL = moveRL;
hairUD = 0;
}
} else {
Run.stop();
}
};
}
frame 5 {
onEnterFrame = function () {
friction = _root.getFriction(_x, _y);
i = _root.RotToAccel(_rotation);
if (Math.abs(moveRL + i) < 40) {
moveRL += i;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
if (friction) {
RLing = 0.2;
} else {
if (Math.abs(moveRL) > 6) {
RLing = 1;
} else {
RLing = 1.5;
}
}
if ((Key.isDown(39) || Key.isDown(37)) && !(Key.isDown(39) && Key.isDown(37))) {
gotoAndStop('RIdle');
}
if (moveRL == 0) {
} else {
if (Math.abs(moveRL) > RLing) {
moveRL -= (moveRL / Math.abs(moveRL)) * RLing;
} else {
moveRL = 0;
}
}
EveryFrame();
};
}
frame 6 {
CanSlide = false;
loose = false;
smokeN = 0;
if (TempStill) {
b = 7;
}
onEnterFrame = function () {
if (!_root.Paused) {
oMoveRL = moveRL;
friction = _root.getFriction(_x, _y);
if (friction) {
RLing = 0.2;
} else {
RLing = 1;
}
AccelRot = _root.RotToAccel(_rotation);
if (Math.abs(moveRL + AccelRot) < 40) {
moveRL += AccelRot;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
sliding = false;
if (_rotation * moveRL < 0) {
} else {
if (friction) {
if (Math.abs(_rotation) > 20) {
sliding = true;
}
} else {
if (Math.abs(_rotation) > 35) {
sliding = true;
}
}
}
if (friction) {
if (!sliding) {
if (Math.abs(moveRL) > 0.1) {
moveRL -= moveRL / Math.abs(moveRL) / 10;
} else {
moveRL = 0;
}
}
if (smokeN > 0) {
--smokeN;
} else {
smokeN = 2;
_root.inkSplat(_x + RLx(moveRL), _y + RLy(moveRL), moveRL * 4, _rotation);
}
} else {
if (!sliding) {
if (Math.abs(moveRL) > 1) {
moveRL -= moveRL / Math.abs(moveRL);
} else {
moveRL = 0;
}
}
if (smokeN > 0) {
--smokeN;
} else {
smokeN = 5;
i = _root.ELayer.getNextHighestDepth();
_root.ELayer.attachMovie('smokeFX', 'smokeFX' + i, i, {'_x': this._x, '_y': this._y, '_rotation': this._rotation, '_xscale': Math.abs(moveRL) * 6, '_yscale': Math.abs(moveRL) * 6});
}
}
if (TempStill) {
if (b > 0) {
--b;
} else {
TempStill = false;
}
} else {
if (Key.isDown(39) && !Key.isDown(37) && !friction) {
if (moveRL > -2) {
if (!sliding) {
if (_xscale > 0) {
if (moveRL < 10) {
gotoAndStop('RIdle');
} else {
if (moveRL < 20) {
stepUp = true;
gotoAndStop('RWalk');
}
}
} else {
if (moveRL < 0) {
moveRL = 0;
}
gotoAndStop('Backpeddle');
}
}
} else {
moveRL *= 0.9000000000000002;
if (Math.abs(moveRL) < 0.2) {
moveRL = 0;
}
if (CharSlide._currentframe > 5) {
CharSlide.gotoAndStop(10);
}
}
} else {
if (Key.isDown(37) && !Key.isDown(39) && !friction) {
if (moveRL < 2) {
if (!sliding) {
if (_xscale < 0) {
if (moveRL > -10) {
gotoAndStop('RIdle');
} else {
if (moveRL > -20) {
stepUp = true;
gotoAndStop('RWalk');
}
}
} else {
if (moveRL > 0) {
moveRL = 0;
}
gotoAndStop('Backpeddle');
}
}
} else {
moveRL *= 0.9000000000000002;
if (Math.abs(moveRL) < 0.2) {
moveRL = 0;
}
if (CharSlide._currentframe > 5) {
CharSlide.gotoAndStop(10);
}
}
} else {
if (Math.abs(moveRL) < 10 && Math.abs(_rotation) < 2) {
if (_root.tehwallz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20)) {
_xscale = 100;
gotoAndStop('LedgeDown');
return true;
}
if (_root.tehwallz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20)) {
_xscale = -100;
gotoAndStop('LedgeDown');
return true;
}
}
}
}
}
if (Key.isDown(40)) {
if (Math.abs(_rotation) > 100) {
} else {
if (Math.abs(moveRL) > 5) {
gotoAndStop('DownSlide');
} else {
gotoAndStop('Duck');
}
}
}
if (Math.abs(_rotation) > 100 && (Math.abs(moveRL) < 12 || moveRL * _xscale < 0)) {
JumpFunc(0);
fliprot = -0.08 * _xscale;
if (Math.abs(moveRL) < 5) {
moveRL = -_xscale * 0.05;
}
}
EveryFrame();
if (Math.abs(_rotation) > 15) {
hairRL = moveRL;
hairUD = 0;
}
} else {
CharSlide.stop();
}
};
}
frame 7 {
onEnterFrame = function () {
if (moveUD > -12 && CharJump.CharRegJump._currentframe < 8 && CharJump.CharRegJump._currentframe > 1) {
CharJump.CharRegJump.play();
}
if (CharJump._currentframe == 2) {
CharJump._rotation -= 11;
}
if (Still || TempStill || FloatStill) {
if (TempStill && moveUD > 0) {
Still = false;
TempStill = false;
}
if (FloatStill && _y > fromFloatY) {
FloatStill = false;
}
if (this.moveUD < 25) {
if (FloatUp <= 0 || moveUD > 0) {
FloatUp = 0;
++moveUD;
} else {
--FloatUp;
}
} else {
if (moveUD > 26) {
moveUD -= 2;
}
}
} else {
if (Key.isDown(39) && !Key.isDown(37) && moveRL < 8) {
if (moveRL <= 0) {
++moveRL;
} else {
moveRL += 0.5;
}
}
if (Key.isDown(37) && !Key.isDown(39) && moveRL > -8) {
if (moveRL >= 0) {
--moveRL;
} else {
moveRL -= 0.5;
}
}
if (this.moveUD < 25) {
if (!Key.isDown(Jump) || FloatUp <= 0 || moveUD > 0) {
FloatUp = 0;
moveUD += 1;
} else {
--FloatUp;
}
}
}
if (Math.abs(moveRL) > 12) {
moveRL -= (moveRL / Math.abs(moveRL)) * 0.1;
}
if (Math.abs(this._rotation) > 45 && this.fliprot != 0 || CharJump._currentframe == 1 && CharJump.CharRegJump._currentframe == 1) {
_rotation = _rotation + fliprot;
} else {
_rotation = _rotation * 0.9000000000000002;
}
JumpGuide();
};
}
frame 8 {
Idle.b = 1;
onEnterFrame = function () {
if (!_root.Paused) {
_root.PauseListener();
Idle.play();
friction = _root.getFriction(_x, _y);
if (friction) {
RLing = 0.2;
} else {
RLing = 2;
}
i = _root.RotToAccel(_rotation);
if (Math.abs(moveRL + i) < 40) {
moveRL += i;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
if (Key.isDown(39) && !Key.isDown(37)) {
if (moveRL < -5) {
runtoslide = true;
gotoAndStop('Slide');
} else {
if (friction && moveRL > 10) {
runtoslide = true;
gotoAndStop('Slide');
} else {
if (_xscale > 0) {
gotoAndStop('RWalk');
} else {
gotoAndStop('Backpeddle');
}
}
if (moveRL < RLing) {
moveRL = RLing;
}
}
} else {
if (Key.isDown(37) && !Key.isDown(39)) {
if (moveRL > 5) {
runtoslide = true;
gotoAndStop('Slide');
} else {
if (friction && moveRL < -10) {
runtoslide = true;
gotoAndStop('Slide');
} else {
if (_xscale < 0) {
gotoAndStop('RWalk');
} else {
gotoAndStop('Backpeddle');
}
}
if (moveRL > -RLing) {
moveRL = -RLing;
}
}
} else {
temp = false;
if (friction) {
if (Math.abs(_rotation) > 20) {
temp = true;
}
} else {
if (Math.abs(_rotation) > 35) {
temp = true;
}
}
if (temp && _rotation * moveRL > 0) {
if (Math.abs(_rotation) < 90) {
runtoslide = true;
gotoAndStop('Slide');
} else {
JumpFunc(0);
}
}
}
}
if (moveRL == 0) {
} else {
if (Math.abs(moveRL) > 5) {
if (Key.isDown(37) && Key.isDown(39) || !Key.isDown(37) && !Key.isDown(39)) {
crouchy = true;
runtoslide = true;
gotoAndStop('Slide');
}
} else {
if (Math.abs(moveRL) > RLing / 2) {
moveRL -= (moveRL / Math.abs(moveRL)) * (RLing / 2);
} else {
moveRL = 0;
}
}
}
temp = RLFunc();
if (Key.isDown(40) && !Key.isDown(38)) {
gotoAndStop('Duck');
return false;
} else {
if (temp == 'Edge' && moveRL == 0) {
gotoAndStop('Edge');
}
}
if (temp == 'door') {
} else {
JumpListener();
CheckBaddieHit();
}
}
};
_root.attachMovie('LandPoof', 'LandPoof', jpN);
_root.LandPoof._x = _x;
_root.LandPoof._y = _y;
}
frame 9 {
i = 0;
_root.CharHurt.start();
onEnterFrame = function () {
_rotation = _rotation * 0.8;
if (moveUD < 25) {
++moveUD;
}
CharFrontSlam._rotation += moveRL * 1.5 * _xscale / 100;
JumpGuide(true);
};
}
frame 10 {
moveRL = 0;
moveUD = 0;
delete onEnterFrame;
}
frame 11 {
if (yerdown) {
CharDuck.gotoAndStop(6);
yerdown = false;
}
if (Math.abs(_rotation) < 5) {
if (_root.tehwallz.hitTest(this._x + this.RAnchx() + 5, this._y + this.RAnchy() + 10, true) && !_root.testAll(this._x + this.LAnchx() - 5, this._y + this.LAnchy() + 10) || _root.tehplatformz.hitTest(this._x + this.RAnchx() + 5, this._y + this.RAnchy() + 10, true) && !_root.testAll(this._x + this.LAnchx() - 5, this._y + this.LAnchy() + 10)) {
_xscale = 100;
gotoAndStop('LedgeDown');
return true;
}
if (_root.tehwallz.hitTest(this._x + this.LAnchx() - 5, this._y + this.LAnchy() + 10, true) && !_root.testAll(this._x + this.RAnchx() + 5, this._y + this.RAnchy() + 10) || _root.tehplatformz.hitTest(this._x + this.LAnchx() - 5, this._y + this.LAnchy() + 10, true) && !_root.testAll(this._x + this.RAnchx() + 5, this._y + this.RAnchy() + 10)) {
_xscale = -100;
gotoAndStop('LedgeDown');
return true;
}
}
++rockOutCounter;
if (rockOutCounter > 5) {
CharDuck.rockOut.gotoAndPlay(1);
} else {
CharDuck.rockOut.gotoAndStop('unRock');
}
onEnterFrame = function () {
if (CharDuck._currentframe < 4) {
if (rockOutCounter > 5) {
CharDuck.rockOut.gotoAndPlay(1);
} else {
CharDuck.rockOut.gotoAndStop('unRock');
}
}
friction = _root.getFriction(_x, _y);
i = _root.RotToAccel(_rotation);
if (Math.abs(moveRL + i) < 40) {
moveRL += i;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
if (friction) {
RLing = 0.2;
} else {
RLing = 2;
}
if (moveRL == 0) {
} else {
if (Math.abs(moveRL) > RLing / 2) {
moveRL -= (moveRL / Math.abs(moveRL)) * (RLing / 2);
} else {
moveRL = 0;
}
}
if (Key.isDown(40) || CheckHead()) {
if (_root.SmoothScrolly < 100) {
_root.SmoothScrolly += 10;
}
if (Math.abs(_rotation) < 5) {
if (_root.tehwallz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20)) {
_xscale = 100;
gotoAndStop('LedgeDown');
return true;
}
this.LAnchx();
this._y + this.LAnchy() + 20;
if (_root.tehwallz.hitTest(this._x + true && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20)) || _root.tehplatformz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20)) {
_xscale = -100;
gotoAndStop('LedgeDown');
return true;
}
}
CharDuck.nextFrame();
if (Math.abs(moveRL) < 30 && Math.abs(_rotation) > 15 && moveRL * _rotation >= 0) {
gotoAndStop('FSRoll');
}
} else {
CharDuck.prevFrame();
if (CharDuck._currentframe == 1) {
_alpha = 100;
gotoAndStop('RIdle');
}
}
RLFunc();
if (CheckHead()) {
gotoAndStop('FSRoll');
} else {
JumpListener();
CheckBaddieHit();
}
};
}
frame 12 {
rollRL = moveRL;
rotter = 0;
TempStill = 3;
smokeN = 0;
onEnterFrame = function () {
friction = _root.getFriction(_x, _y);
rotRL = _root.RotToAccel(_rotation);
if (Math.abs(rollRL + rotRL) < 40) {
rollRL += rotRL;
} else {
rollRL *= 40 / Math.abs(rollRL);
}
rollRL -= rollRL / Math.abs(rollRL) / 10;
if (friction) {
var v3 = -Math.abs(rollRL) * 2 * (rollRL * _xscale / -Math.abs(rollRL * _xscale));
rotter += (v3 - rotter) / 20;
if (smokeN > 0) {
--smokeN;
} else {
smokeN = 2;
_root.inkSplat(_x + RLx(moveRL), _y + RLy(moveRL), moveRL * 4, _rotation);
}
} else {
rotter = -Math.abs(rollRL) * 2 * (rollRL * _xscale / -Math.abs(rollRL * _xscale));
if (smokeN > 0) {
--smokeN;
} else {
smokeN = 5;
i = _root.ELayer.getNextHighestDepth();
_root.ELayer.attachMovie('smokeFX', 'smokeFX' + i, i, {'_x': this._x, '_y': this._y, '_rotation': this._rotation, '_xscale': Math.abs(rollRL) * 6, '_yscale': Math.abs(rollRL) * 6});
}
}
if (Math.abs(rollRL) > 30) {
moveRL = (rollRL / Math.abs(rollRL)) * 30;
} else {
moveRL = rollRL;
}
if (Key.isDown(40) && (Math.abs(_rotation) > 5 || Math.abs(rollRL) > 1)) {
if (Math.abs(_rotation) < 2) {
if (_root.tehwallz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20)) {
_xscale = 100;
gotoAndStop('LedgeDown');
return true;
}
if (_root.tehwallz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20)) {
_xscale = -100;
gotoAndStop('LedgeDown');
return true;
}
}
FSRoller.nextFrame();
FSRoller._rotation += rotter;
} else {
if (TempStill > 0) {
FSRoller.nextFrame();
FSRoller._rotation += rotter;
} else {
FSRoller._rotation -= FSRoller._rotation / 3;
if (FSRoller._currentframe > 1) {
FSRoller.prevFrame();
} else {
yerdown = true;
gotoAndStop('Duck');
}
}
}
if (CheckHead()) {
if (moveRL == 0) {
moveRL = _xscale / 50;
rollRL = moveRL;
}
if (Math.abs(moveRL) < 5) {
moveRL = (moveRL / Math.abs(moveRL)) * 5;
rollRL = moveRL;
}
TempStill = 10;
RLFunc();
} else {
if (TempStill > 0) {
--TempStill;
}
if (!JumpListener()) {
oRL = rollRL;
var v3 = RLFunc();
if (v3 == 'Wall') {
rollRL = -oRL / 2;
}
if (!CheckBaddieHit(true)) {
if (Math.abs(_rotation) > 100 && Math.abs(moveRL) < 10) {
JumpFunc(0);
fliprot = 8 * (moveRL / Math.abs(moveRL));
if (Math.abs(moveRL) < 5) {
moveRL = -_xscale * 0.05;
}
} else {
if (!CheckHead()) {
if (TempStill > 0) {
--TempStill;
}
JumpListener();
} else {
TempStill = 10;
}
}
}
}
}
};
}
frame 13 {
if (moveRL == 0) {
RL = _xscale / 100;
} else {
RL = moveRL / Math.abs(moveRL);
}
hairRL = 0;
gelHair();
onEnterFrame = function () {
if (RL > 0) {
if (!Key.isDown(39)) {
lean._rotation += -lean._rotation / 5;
lean.prevFrame();
if (lean._currentframe == 1) {
gotoAndStop('RIdle');
}
} else {
lean._rotation += (-_rotation * RL - lean._rotation) / 5;
var v2 = 0;
while (_root.tehwallz['Box' + v2]._x != undefined) {
if (_root.tehwallz['Box' + v2].hitTest(_x + 15, _y - 45, true) && !_root.tehwallz.hitTest(_root.tehwallz['Box' + v2]._x + 45, _root.tehwallz['Box' + v2]._y, true)) {
_x = _x + 2;
_root.tehwallz['Box' + v2]._x += 2;
_root.Foreground['Box' + v2 + 'Face']._x += 2;
if (!_root.tehwallz.hitTest(_x - 12, _y + 6, true)) {
JumpFunc(0);
}
temp = false;
break;
}
++v2;
}
lean.nextFrame();
}
} else {
if (!Key.isDown(37)) {
lean._rotation += -lean._rotation / 5;
lean.prevFrame();
if (lean._currentframe == 1) {
gotoAndStop('RIdle');
}
} else {
lean._rotation += (-_rotation * RL - lean._rotation) / 5;
var v2 = 0;
while (_root.tehwallz['Box' + v2]._x != undefined) {
if (_root.tehwallz['Box' + v2].hitTest(_x - 15, _y - 45, true) && !_root.tehwallz.hitTest(_root.tehwallz['Box' + v2]._x - 45, _root.tehwallz['Box' + v2]._y, true)) {
_x = _x - 2;
_root.tehwallz['Box' + v2]._x -= 2;
_root.Foreground['Box' + v2 + 'Face']._x -= 2;
if (!_root.tehwallz.hitTest(_x + 12, _y + 6, true)) {
JumpFunc(0);
}
temp = false;
break;
}
++v2;
}
lean.nextFrame();
}
}
if (JumpListener()) {
wallJumpFell = true;
} else {
RLFunc();
}
CheckBaddieHit();
};
}
frame 14 {
launch = 0;
step = 0;
_root.Farsight = 0;
downward = true;
fliprot = 0;
CheckBaddieHit();
if (JumpPadLanded) {
moveRL = 0;
var PadBad = 'JumpPad';
var springy = 13;
var yspringy = 4;
var ycharup = 60;
offsetX = _x - (_root.BLayer['JumpPad' + aBadOn]._x + _root.BLayer['JumpPad' + aBadOn]._yscale * (ycharup / 100) * Math.cos((_rotation - 90) * 0.0174532925199433));
offsetY = offsetX * Math.sin(_rotation * 0.0174532925199433);
if (_rotation > 2) {
_xscale = 100;
}
if (_rotation < -2) {
_xscale = -100;
}
onEnterFrame = function () {
CheckBaddieHit();
if (Math.abs(offsetX) > 5) {
offsetX -= offsetX / 5;
offsetY = offsetX * Math.sin(_rotation * 0.0174532925199433);
}
_root.BLayer['JumpPad' + aBadOn].spring -= (_root.BLayer['JumpPad' + aBadOn].Thrust * yspringy - _root.BLayer['JumpPad' + aBadOn]._yscale) / springy;
if (downward) {
_root.BLayer['JumpPad' + aBadOn].spring += (_root.BLayer['JumpPad' + aBadOn].Thrust - _root.BLayer['JumpPad' + aBadOn].spring) / 3;
}
_root.BLayer['JumpPad' + aBadOn]._yscale -= _root.BLayer['JumpPad' + aBadOn].spring;
if (_root.BLayer['JumpPad' + aBadOn]._yscale < _root.BLayer['JumpPad' + aBadOn].Thrust * 2) {
downward = false;
}
_root.BLayer['JumpPad' + aBadOn].surface._yscale = 10000 * (1 / _root.BLayer['JumpPad' + aBadOn]._yscale);
_x = _root.BLayer['JumpPad' + aBadOn]._x + offsetX + _root.BLayer['JumpPad' + aBadOn]._yscale * (ycharup / 100) * Math.cos((_rotation - 90) * 0.0174532925199433);
_y = _root.BLayer['JumpPad' + aBadOn]._y + offsetY + _root.BLayer['JumpPad' + aBadOn]._yscale * (ycharup / 100) * Math.sin((_rotation - 90) * 0.0174532925199433);
if (_root.BLayer['JumpPad' + aBadOn].spring < _root.BLayer['JumpPad' + aBadOn].Thrust && _root.BLayer['JumpPad' + aBadOn]._yscale > _root.BLayer['JumpPad' + aBadOn].Thrust * yspringy) {
_root.Spring.start();
_root.BLayer['JumpPad' + aBadOn].onEnterFrame = _root.JumpPadReleasedEnterFrame;
_root.BLayer['JumpPad' + aBadOn].springy = springy;
_root.BLayer['JumpPad' + aBadOn].yspringy = yspringy;
_root.BLayer['JumpPad' + aBadOn].ycharup = ycharup;
canSpin = true;
JumpFunc(_root.BLayer['JumpPad' + aBadOn].Thrust);
}
};
} else {
var PadBad = 'Baddie';
var springy = 2;
var yspringy = 5;
var ycharup = 25;
if (Key.isDown(Jump) || Key.isDown(40) || Key.isDown(38)) {
onEnterFrame = function () {
CheckBaddieHit();
_rotation = _rotation * 0.8;
_root.BLayer['Baddie' + aBadOn].spring -= (_root.BLayer['Baddie' + aBadOn].Thrust * yspringy - _root.BLayer['Baddie' + aBadOn]._yscale) / springy;
_root.BLayer['Baddie' + aBadOn]._yscale -= _root.BLayer['Baddie' + aBadOn].spring;
_root.BLayer['Baddie' + aBadOn]._xscale = (100 - _root.BLayer['Baddie' + aBadOn]._yscale + 100) * (_root.BLayer['Baddie' + aBadOn]._xscale / Math.abs(_root.BLayer['Baddie' + aBadOn]._xscale));
if (_root.BLayer['Baddie' + aBadOn].spring < _root.BLayer['Baddie' + aBadOn].Thrust && _root.BLayer['Baddie' + aBadOn]._yscale > _root.BLayer['Baddie' + aBadOn].Thrust * yspringy) {
_root.BLayer['Baddie' + aBadOn].springy = springy;
_root.BLayer['Baddie' + aBadOn].yspringy = yspringy;
_root.BLayer['Baddie' + aBadOn].dead = true;
_root.BLayer['Baddie' + aBadOn].onEnterFrame = _root.stompedEnterFrame;
if (Math.abs(moveRL) < 6) {
canSpin = true;
}
_rotation = 0;
JumpFunc(_root.BLayer['Baddie' + aBadOn].Thrust * 1.5);
}
_y = _root.BLayer['Baddie' + aBadOn]._y - _root.BLayer['Baddie' + aBadOn]._yscale * (ycharup / 100);
};
} else {
_y = _root.BLayer['Baddie' + aBadOn]._y - _root.BLayer['Baddie' + aBadOn]._yscale * (ycharup / 100);
_root.BLayer['Baddie' + aBadOn].springy = springy;
_root.BLayer['Baddie' + aBadOn].yspringy = yspringy;
_root.BLayer['Baddie' + aBadOn].dead = false;
_root.BLayer['Baddie' + aBadOn].onEnterFrame = _root.stompedEnterFrame;
_rotation = 0;
JumpFunc(_root.BLayer['Baddie' + aBadOn].Thrust);
}
}
}
frame 15 {
hairRL = 0;
delete onEnterFrame;
stop();
}
frame 16 {
_xscale = 100;
if (hairRL > 0) {
hairGel = 13;
} else {
if (hairRL < 0) {
hairGel = 35;
}
}
hairRL = 0;
onEnterFrame = function () {
if (_x < _root.InteractLayer['Door' + doorInto]._x) {
_x = _x + 4;
WraptoGround(true, false);
}
if (_x > _root.InteractLayer['Door' + doorInto]._x) {
_x = _x - 4;
WraptoGround(true, false);
}
if (Math.abs(_x - InteractLayer['Door' + doorInto]._x) < 4) {
_x = InteractLayer['Door' + doorInto]._x;
}
};
}
frame 17 {
onEnterFrame = function () {
moveRL *= 0.8;
if (moveUD < 35) {
++moveUD;
}
if (_root.tehwallz.hitTest(_x, _y + moveUD, true)) {
JumpLand(true);
} else {
_x = _x + moveRL;
_y = _y + moveUD;
}
};
}
frame 18 {
RisDown = true;
LisDown = true;
onEnterFrame = function () {
if (!RightIsDown()) {
RisDown = false;
}
if (!LeftIsDown()) {
LisDown = false;
}
if (!_root.tehwallz.hitTest(_x + 25, _y + moveUD - 25, true) && !_root.tehwallz.hitTest(_x - 25, _y + moveUD - 25, true)) {
wallJumpFell = true;
TempStill = true;
JumpFunc(-moveUD);
} else {
if (_root.testAll(_x, _y + moveUD + 40)) {
wallJumpFell = true;
TempStill = true;
JumpFunc(-moveUD);
return false;
} else {
if (_xscale > 0 && Key.isDown(39) && !RisDown || _xscale < 0 && Key.isDown(37) && !LisDown) {
wallJumpFell = true;
JumpFunc(-moveUD);
} else {
if (!Key.isDown(this.Jump)) {
this.SisDown = false;
}
if (Key.isDown(this.Jump) && !this.SisDown) {
SisDown = true;
Still = false;
TempStill = true;
_root.CharJump.start();
if (Key.isDown(40)) {
moveRL = _xscale / 10;
JumpFunc(0);
} else {
if (Key.isDown(38)) {
moveRL = _xscale / 25;
JumpFunc(18);
} else {
moveRL = _xscale / 10;
JumpFunc(12);
FloatUp = 4;
}
}
return false;
} else {
temp = _root.surface.hitTest(_x, _y, true);
if ((Key.isDown(37) && _xscale > 0 || Key.isDown(39) && _xscale < 0) && CharWallJump._currentframe < 21) {
if (CharWallJump._currentframe == 20) {
CharWallJump.stop();
}
} else {
CharWallJump.play();
}
if (moveUD < 0) {
if (FloatUp <= 0) {
FloatUp = 0;
if (temp) {
moveUD += 0.25;
} else {
moveUD += 0.5;
}
} else {
if (temp) {
FloatUp -= 0.5;
} else {
FloatUp -= 1;
}
}
} else {
if (wallJumpTimer > 0) {
--wallJumpTimer;
moveUD = 0;
temp = true;
} else {
if (temp) {
if (moveUD < 14) {
moveUD += 0.4;
} else {
if (moveUD > 8.5) {
moveUD -= 0.5;
} else {
moveUD = 14;
}
}
} else {
if (moveUD < 8) {
moveUD += 0.2;
} else {
if (moveUD > 9) {
moveUD -= 1;
} else {
moveUD = 8;
}
}
}
}
}
if (!temp) {
if (smokeN > 0) {
--smokeN;
} else {
smokeN = 9;
tempScale = Math.abs(moveUD) * 10;
if (tempScale < 50 && moveUD != 0) {
tempScale = 30;
}
eDepth = _root.ELayer.getNextHighestDepth();
_root.ELayer.attachMovie('smokeFX', 'smokeFX' + eDepth, eDepth, {'_x': _x + _xscale / -10, '_y': _y - 20, '_rotation': this._xscale * 0.9000000000000002, '_xscale': tempScale, '_yscale': tempScale});
}
}
}
JumpGuide();
}
}
}
};
}
frame 20 {
onEnterFrame = function () {
if (Key.isDown(39)) {
_root._x -= 40;
_x = _x + 40;
}
if (Key.isDown(37)) {
_root._x += 40;
_x = _x - 40;
}
if (Key.isDown(38)) {
_root._y += 40;
_y = _y - 40;
}
if (Key.isDown(40)) {
_root._y -= 40;
_y = _y + 40;
}
};
}
frame 21 {
moveRL = 0;
moveUD = 0;
_alpha = 100;
_root.PlaceCharBump(_x, _y, _rotation);
onEnterFrame = function () {
if (_root.BackgroundVolume > 0) {
_root.BackgroundVolume -= 5;
_root.BackgroundMusic.setVolume(_root.BackgroundVolume);
}
};
}
frame 22 {
delete onEnterFrame;
}
frame 23 {
CanSlide = false;
loose = false;
onEnterFrame = function () {
if (!_root.Paused) {
EveryFrame();
}
};
}
frame 24 {
hairRL = 0;
DisDown = true;
onEnterFrame = function () {
if (!_root.Paused) {
if (!Key.isDown(Jump)) {
SisDown = false;
}
if (!Key.isDown(40)) {
DisDown = false;
}
if (Key.isDown(Jump)) {
if (!SisDown) {
SisDown = true;
Still = false;
TempStill = false;
FloatUp = 6;
JumpFunc(12);
_root.CharJump.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.CharJump.start();
}
} else {
if (Key.isDown(40)) {
if (!DisDown) {
Still = false;
TempStill = false;
var v2 = 0;
while (v2 < 6) {
if (!_root.testAll(_x - (_xscale / 100) * 40, _y + 1, true)) {
_y = _y + 1;
}
++v2;
}
JumpFunc(0);
}
} else {
if (Key.isDown(38) && !_root.testAll(_x + _xscale / 2, _y - 100)) {
gotoAndStop('LedgeUp');
}
}
}
}
};
}
frame 25 {
moveRL = 0;
moveUD = 0;
onEnterFrame = function () {
_x = _x + (_xscale / 100) * 1.2;
_y = _y - 2.9;
CharLedge._x -= 1.2;
CharLedge._y += 2.9;
};
}
frame 26 {
while (!_root.testAll(this._x + 11 * (this._xscale / 100), this._y + 15, true)) {
this._x += this._xscale / 100;
}
if (Math.abs(moveRL) == 0) {
LedgeDownHow.gotoAndStop(1);
tempX = 1.2;
tempY = 3.2;
steps = 20;
} else {
LedgeDownHow.gotoAndStop(2);
if (Math.abs(moveRL) < 10) {
LedgeDownHow.CharLedge.gotoAndPlay('slower');
tempX = 2;
tempY = 6.4;
steps = 11;
} else {
tempX = 2;
tempY = 8.200000000000001;
steps = 8;
}
}
i = 0;
exs = _xscale / 100;
onEnterFrame = function () {
--steps;
ledgeTil = 0;
while (_root.testAll(_x + 10 * exs - ledgeTil * exs, _y + 15 + i, true)) {
++ledgeTil;
if (ledgeTil > 50) {
break;
}
}
_x = _x - (_xscale / 100) * (ledgeTil / steps);
if (_root.testAll(_x - (_xscale / 100) * 40, _y, true)) {
moveRL = 0;
moveUD = 0;
gotoAndStop('RIdle');
RLFunc();
}
_y = _y + tempY;
i -= tempY;
LedgeDownHow._x += tempX;
LedgeDownHow._y -= tempY;
while (!_root.testAll(this._x + 11 * (this._xscale / 100), this._y + 15 + i, true)) {
this._x += this._xscale / 100;
}
};
}
frame 27 {
hurting = true;
if (_root.InteractLayer.Cannon.masterAim == undefined) {
tempAim = 0;
} else {
tempAim = _root.InteractLayer.Cannon.masterAim;
}
masterAim = tempAim;
onEnterFrame = function () {
if (Key.isDown(39) && tempAim < masterAim + 30) {
tempAim += 2;
}
if (Key.isDown(37) && tempAim > masterAim - 30) {
tempAim -= 2;
}
if (tempAim > 20) {
_xscale = 100;
} else {
if (tempAim < -20) {
_xscale = -100;
}
}
_rotation = _rotation + (tempAim - _rotation) / 10;
_root.InteractLayer.Cannon.Barrel._rotation = _rotation;
if (Key.isDown(Jump)) {
if (tempAim < 0) {
_xscale = -100;
} else {
_xscale = 100;
}
_root.InteractLayer.Cannon.Barrel.gotoAndPlay('fire!');
InCannon.gotoAndPlay('fire!');
onEnterFrame = function () {
_rotation = _rotation + (tempAim - _rotation) / 10;
_root.InteractLayer.Cannon.Barrel._rotation = _rotation;
};
}
};
}
frame 28 {
onEnterFrame = function () {
if (Key.isDown(39) && moveRL < 6) {
if (movevRL < 0) {
moveRL *= 0.9500000000000001;
}
moveRL += 0.5;
}
if (Key.isDown(37) && moveRL > -6) {
if (moveRL > 0) {
moveRL *= 0.9500000000000001;
}
moveRL -= 0.5;
}
if (this.moveUD < 35) {
++moveUD;
}
CheckBaddieHit(true);
JumpGuide();
if (Math.abs(_rotation) > 20) {
Fly._rotation = (-Math.atan2(this.moveRL, this.moveUD) / 0.0174532925199433 - _rotation - 180) * (_xscale / 100);
} else {
if (moveUD < 5) {
this._rotation *= 0.8;
} else {}
}
};
}
frame 29 {
moveRL = iRL / 2;
hairUD = 0;
onEnterFrame = function () {
if (_root.SmoothScrolly < 100) {
_root.SmoothScrolly += 10;
}
if (!_root.Paused) {
if (Key.isDown(39) && moveRL < 7) {
++moveRL;
_xscale = 100;
}
if (Key.isDown(37) && moveRL > -7) {
--moveRL;
_xscale = -100;
}
if (!_root.tehhangz.hitTest(_x + moveRL, _y - 50, true) || _root.tehwallz.hitTest(_x + moveRL + spread, _y - 50, true) || _root.tehwallz.hitTest(_x + moveRL - spread, _y - 50, true)) {
var v2 = 0;
while (v2 < Math.abs(moveRL) * 2) {
if (_root.tehhangz.hitTest(_x + mRL(), _y - 50, true) && !_root.tehwallz.hitTest(_x + mRL() + spread, _y - 50, true) && !_root.tehwallz.hitTest(_x + mRL() - spread, _y - 50, true)) {
_x = _x + mRL();
}
moveRL = 0;
++v2;
}
}
if (moveRL == 0) {
if (CharHang._currentframe > 105) {
CharHang.gotoAndPlay(36);
}
} else {
if (!Key.isDown(39) && !Key.isDown(37)) {
if (Math.abs(moveRL) < 1) {
moveRL = 0;
} else {
moveRL -= moveRL / Math.abs(moveRL);
}
}
if (CharHang._currentframe < 106 && Math.abs(moveRL) > 1) {
CharHang.gotoAndPlay(106);
}
}
hairRL = moveRL;
_x = _x + moveRL;
v2 = 0;
while (v2 < 20) {
if (!_root.tehhangz.hitTest(_x, _y - 62, true) && _root.tehhangz.hitTest(_x, _y - 42, true)) {
_y = _y + 1;
}
if (_root.tehhangz.hitTest(_x, _y - 60, true)) {
_y = _y - 1;
}
++v2;
}
if (!Key.isDown(Jump)) {
SisDown = false;
}
if (Key.isDown(Jump) && !SisDown) {
SisDown = true;
Still = false;
TempStill = false;
FloatUp = 6;
_root.CharJump.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.CharJump.start();
JumpFunc(12);
}
if (Key.isDown(40)) {
Still = false;
TempStill = false;
_y = _y + 6;
JumpFunc(0);
}
}
CheckBaddieHit();
};
}
frame 30 {
FSRoller.stop();
onEnterFrame = function () {
'SDFDS';
};
}
frame 31 {
hairRL = moveRL;
gelHair();
smokeN = 0;
if (yerdown) {
CharDuck.gotoAndStop(6);
yerdown = false;
}
onEnterFrame = function () {
friction = _root.getFriction(_x, _y);
i = _root.RotToAccel(_rotation);
if (Math.abs(moveRL + i) < 40) {
moveRL += i;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
if (friction) {
if (Math.abs(_rotation) > 20) {
temp = true;
}
} else {
if (Math.abs(_rotation) > 35) {
temp = true;
}
}
i = 0;
if (friction) {
if (Math.abs(moveRL) > 0.1) {
moveRL -= moveRL / Math.abs(moveRL) / 10;
} else {
moveRL = 0;
}
if (smokeN > 0) {
--smokeN;
} else {
smokeN = 2;
_root.inkSplat(_x + RLx(moveRL), _y + RLy(moveRL), moveRL * 4, _rotation);
}
} else {
if (Math.abs(moveRL) > 0.5) {
moveRL -= moveRL / Math.abs(moveRL) / 2;
} else {
moveRL = 0;
}
if (smokeN > 0) {
--smokeN;
} else {
smokeN = 5;
i = _root.ELayer.getNextHighestDepth();
_root.ELayer.attachMovie('smokeFX', 'smokeFX' + i, i, {'_x': this._x, '_y': this._y, '_rotation': this._rotation, '_xscale': Math.abs(moveRL) * 6, '_yscale': Math.abs(moveRL) * 6});
}
}
if (!JumpListener()) {
temp = RLFunc();
if (!CheckBaddieHit(true)) {
if (Math.abs(moveRL) < 5 || CheckHead() && Math.abs(_rotation) > 10) {
CharDuck.play();
} else {
if (moveRL * _xscale < 100) {
gotoAndStop('FSRoll');
}
}
if (CharDuck._currentframe < 8) {
if (temp == 'Wall') {
CharDuck.gotoAndPlay(11);
}
if (Key.isDown(40) || CheckHead()) {
if (Math.abs(_rotation) < 2) {
if (_root.tehwallz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx(), this._y + this.LAnchy() + 20)) {
_xscale = 100;
gotoAndStop('LedgeDown');
return true;
}
if (_root.tehwallz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20) || _root.tehplatformz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.RAnchx(), this._y + this.RAnchy() + 20)) {
_xscale = -100;
gotoAndStop('LedgeDown');
return true;
}
}
if (CharDuck._currentframe < 7) {
CharDuck.nextFrame();
}
} else {
CharDuck.prevFrame();
if (CharDuck._currentframe == 1) {
runtoslide = true;
gotoAndStop('Slide');
CharSlide.gotoAndStop(10);
}
}
}
if (Math.abs(_rotation) > 100) {
JumpFunc(0);
fliprot = -0.08 * _xscale;
if (Math.abs(moveRL) < 1) {
moveRL = -_xscale * 0.05;
}
}
}
}
};
}
frame 32 {
onEnterFrame = function () {
false;
};
}
frame 33 {
hairRL = 0;
moveRL = 0;
onEnterFrame = function () {
if (Math.abs(_x - targetX) > 5) {
if (_x < targetX) {
_x = _x + 5;
}
if (_x > targetX) {
_x = _x - 5;
}
} else {
_x = targetX;
_xscale = 100;
delete onEnterFrame;
}
};
}
frame 34 {
moveRL *= 0.8;
FloatUp = 5;
_x = _x + 15 * Math.cos((_rotation - 90) * 0.0174532925199433);
_y = _y + 15 * Math.sin((_rotation - 90) * 0.0174532925199433);
onEnterFrame = function () {
if (Key.isDown(39) && !Key.isDown(37) && moveRL < 8) {
if (moveRL < 0) {
++moveRL;
} else {
moveRL += 0.5;
}
}
if (Key.isDown(37) && !Key.isDown(39) && moveRL > -8) {
if (moveRL > 0) {
--moveRL;
} else {
moveRL -= 0.5;
}
}
if (this.moveUD < 25) {
if (FloatUp <= 0 || moveUD > 0) {
FloatUp = 0;
moveUD += 1;
} else {
--FloatUp;
}
}
_rotation = _rotation * 0.9000000000000002;
JumpGuide(false, 'slide', true);
if (Math.abs(_rotation) > 15) {
hairRL = moveRL;
hairUD = 0;
}
};
}
frame 35 {
halt.gotoAndPlay(4);
onEnterFrame = function () {
friction = _root.getFriction(_x, _y);
i = _root.RotToAccel(_rotation);
if (Math.abs(moveRL + i) < 40) {
moveRL += i;
} else {
moveRL *= 40 / Math.abs(moveRL);
}
if ((Key.isDown(39) || Key.isDown(37)) && !(Key.isDown(39) && Key.isDown(37))) {
gotoAndStop('RIdle');
}
if (moveRL == 0) {
} else {
if (Math.abs(moveRL) > RLing) {
moveRL -= (moveRL / Math.abs(moveRL)) * RLing;
} else {
moveRL = 0;
}
}
EveryFrame();
};
}
frame 37 {
delete onEnterFrame;
}
}
movieClip 4231 CharBump {
}
movieClip 4233 {
}
movieClip 4235 FancyGolfTeeSmoke {
frame 1 {
var teeColor = new Color(colorMahTee);
teeColor.setTransform(_root.ColorThosePants);
stop();
}
}
movieClip 4237 {
}
movieClip 4240 {
}
movieClip 4256 {
frame 82 {
stop();
}
}
movieClip 4257 PencilShell {
frame 42 {
gotoAndPlay(1);
}
frame 76 {
stop();
}
frame 88 {
stop();
}
}
movieClip 4259 ShellPointer {
}
movieClip 4264 {
frame 1 {
stop();
}
frame 3 {
_parent.mainBubble.play();
}
frame 7 {
stop();
}
frame 10 {
_parent.weeBubble2.play();
}
frame 13 {
stop();
}
}
movieClip 4272 {
frame 3 {
_parent.weeBubble1.play();
}
frame 6 {
stop();
}
frame 11 {
delete _root.InteractLayer['object' + _parent.signParent].onEnterFrame;
_root.InteractLayer['object' + _parent.signParent].objectFunc = _root.InteractLayer['object' + _parent.signParent].startFunc;
_parent.removeMovieClip(this);
}
}
movieClip 4288 {
}
movieClip 4304 {
frame 1 {
stop();
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
frame 9 {
stop();
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
frame 14 {
_parent.weeBubble1.play();
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
frame 17 {
stop();
}
}
movieClip 4305 signBubbleShell {
}
movieClip 4334 Inky {
}
movieClip 4353 inkSplat0 {
frame 18 {
removeMovieClip(this);
}
}
movieClip 4368 inkSplat1 {
frame 16 {
removeMovieClip(this);
}
}
movieClip 4382 inkSplat2 {
frame 13 {
removeMovieClip(this);
}
}
movieClip 4384 fallingShadow {
}
button 4387 {
on (release) {
_root.Char.JumpFunc(0);
removeMovieClip(this);
}
}
movieClip 4388 clickToPlay {
frame 11 {
stop();
}
}
movieClip 4390 {
}
movieClip 4392 loadHUD {
}
movieClip 4395 {
}
movieClip 4396 combo! {
frame 37 {
removeMovieClip(this);
}
}
movieClip 4398 tehwallzBonus2 {
}
movieClip 4400 {
frame 1 {
_name = 'SpringBoard' + _root.SpringBoardCount;
++_root.SpringBoardCount;
anchorX = _x;
anchorY = _y;
moveRL = 0;
moveUD = 0;
_root.Foreground.attachMovie('SpringBoardSmoke', _name + 'Smoke', _root.Foreground.getNextHighestDepth(), {'_x': _x, '_y': _y});
}
}
movieClip 4401 SBLayerBonus2 {
}
movieClip 4402 tehplatformzBonus2 {
}
movieClip 4403 ForegroundBonus2 {
}
movieClip 4404 BLayerBonus2 {
instance JumpPad0 of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 28;
}
}
}
movieClip 4405 InteractLayerBonus2 {
instance WormBox of movieClip 372 {
onClipEvent (load) {
AtIt = 'Down';
thrust = -10;
}
}
}
movieClip 4406 AllEverythingB2 {
}
movieClip 4408 tehwallzTrans4 {
}
movieClip 4410 surfaceBonus4 {
}
movieClip 4412 tehgroundBonus4 {
}
movieClip 4413 aPlatzTrans4 {
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = 200;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 2;
anchorDist = 100;
rotOffset = -90;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 2;
anchorDist = 100;
rotOffset = 90;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = -100;
rotOffset = 20;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = 100;
rotOffset = 20;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.4;
maxSpeed = 15;
centerOffset = 400;
rotOffset = -90;
onlyOnStand = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = 200;
rotOffset = 0;
onlyOnStand = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 2;
anchorDist = 200;
rotOffset = -90;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 2;
anchorDist = 200;
rotOffset = 90;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.4;
maxSpeed = 15;
centerOffset = 400;
rotOffset = -90;
onlyOnStand = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = 100;
onlyOnStand = true;
}
}
}
movieClip 4419 {
}
movieClip 4420 {
frame 4 {
gotoAndPlay(2);
}
}
movieClip 4423 {
}
movieClip 4426 aPlatzSmoke {
}
movieClip 4427 ForegroundTrans4 {
}
movieClip 4428 BLayerBonus4 {
instance JumpPad0 of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 28;
}
}
}
movieClip 4429 InteractLayerBonus4 {
}
movieClip 4430 {
}
movieClip 4431 UberbackgroundBonus7 {
}
movieClip 4434 {
}
movieClip 4436 {
}
movieClip 4483 BackgroundBonus7 {
}
movieClip 4485 ForegroundBonus12 {
}
movieClip 4487 tehwallzBonus12 {
}
movieClip 4489 tehgroundBonus7 {
}
movieClip 4491 tehplatformzBonus7 {
}
movieClip 4493 tehhangzBonus7 {
}
movieClip 4495 UberForegroundBonus7 {
}
movieClip 4496 BLayerBonus7 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 29;
}
}
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 26;
}
}
}
movieClip 4497 InteractLayerBonus12 {
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Menus1';
SnapBack = true;
}
}
instance Door2 of movieClip 124 {
onClipEvent (load) {
worm = 'Level2';
SnapBack = false;
}
}
}
movieClip 4498 {
}
movieClip 4510 {
}
movieClip 4513 ForegroundBonus7 {
}
movieClip 4515 tehwallzBonus7 {
}
movieClip 4516 aPlatzBonus7 {
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.25;
maxSpeed = 10;
centerOffset = 200;
rotOffset = -90;
onlyOnStand = true;
moving = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.25;
maxSpeed = 10;
centerOffset = 150;
rotOffset = -90;
onlyOnStand = false;
moving = true;
reverseSmoke = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.25;
maxSpeed = 10;
centerOffset = 150;
rotOffset = -90;
onlyOnStand = true;
moving = true;
}
}
}
movieClip 4517 {
frame 1 {
trophies.gotoAndStop(ID + 1);
if (_root.TrophyGet[ID - 1]) {
gotoAndStop(29);
} else {
_name = 'object' + _root.objectCount;
thisID = _root.objectCount;
++_root.objectCount;
objectFunc = function () {
play();
_root.TrophyGetSound.setPan((_root._x + _x) / 3.600000000000001 - 100);
_root.TrophyGetSound.start();
_root.ELayer.attachMovie('TrophyGett', 'TrophyGett', _root.ELayer.getNextHighestDepth());
_root.ELayer.TrophyGett.ID = ID;
_root.TrophyGet[ID - 1] = true;
if (_root.TrophyGet[0]) {
_root.kongregateStats.submit('trophyTommyLM', 1);
}
if (_root.TrophyGet[1]) {
_root.kongregateStats.submit('trophyAdamPhillips', 1);
}
if (_root.TrophyGet[2]) {
_root.kongregateStats.submit('trophyTheSwain', 1);
}
if (_root.TrophyGet[3]) {
_root.kongregateStats.submit('trophyLuis', 1);
}
if (_root.TrophyGet[4]) {
_root.kongregateStats.submit('trophyAfroNinja', 1);
}
if (_root.TrophyGet[5]) {
_root.kongregateStats.submit('trophyNegativeOne', 1);
}
_root.foundTrophiesCount = 0;
var v2 = 0;
while (v2 < 6) {
if (_root.TrophyGet[v2]) {
++_root.foundTrophiesCount;
}
++v2;
}
_root.kongregateStats.submit('foundTrophiesCount', _root.foundTrophiesCount);
_root.Fancy_local_data.data.TrophyGet = _root.TrophyGet;
delete objectFunc;
};
}
stop();
}
frame 29 {
stop();
}
}
movieClip 4518 InteractLayerBonus7 {
instance of movieClip 4517 {
onClipEvent (load) {
ID = 1;
}
}
}
movieClip 4519 AllEverythingB7 {
}
movieClip 4522 {
}
movieClip 4523 UberbackgroundBonus11 {
}
movieClip 4524 BackgroundBonus11 {
}
movieClip 4542 {
}
movieClip 4554 {
}
movieClip 4556 ForegroundBonus11 {
}
movieClip 4557 InteractLayerBonus11 {
instance of movieClip 4517 {
onClipEvent (load) {
ID = 2;
}
}
}
movieClip 4559 UberForegroundBonus11 {
}
movieClip 4561 tehwallzBonus11 {
}
movieClip 4563 tehgroundBonus11 {
frame 1 {
v;
}
}
movieClip 4565 tehhangzBonus11 {
}
movieClip 4566 {
}
movieClip 4568 UberbackgroundBonus5 {
}
movieClip 4570 BackgroundBonus5 {
}
movieClip 4573 {
}
movieClip 4574 {
}
movieClip 4575 ForegroundBonus5 {
}
movieClip 4577 tehwallzBonus5 {
}
movieClip 4579 tehgroundBonus5 {
}
movieClip 4581 tehplatformzBonus5 {
}
movieClip 4582 aPlatzBonus5 {
instance of movieClip 1232 {
onClipEvent (load) {
accel = 7;
maxSpeed = 7;
centerOffset = 1600;
rotOffset = 0;
wrapBack = true;
moving = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0;
maxSpeed = 0;
centerOffset = 0;
rotOffset = 0;
moving = false;
invisible = true;
}
}
}
movieClip 4584 tehhangzBonus5 {
}
movieClip 4586 {
}
movieClip 4588 UberForegroundBonus5 {
}
movieClip 4589 {
frame 2 {
stop();
}
}
movieClip 4591 {
}
movieClip 4592 InteractLayerBonus5 {
instance of movieClip 4517 {
onClipEvent (load) {
ID = 3;
}
}
}
movieClip 4593 {
}
movieClip 4596 UberbackgroundBonus8 {
}
movieClip 4598 BackgroundBonus8 {
}
movieClip 4600 tehwallzBonus8 {
}
movieClip 4602 tehgroundBonus8 {
}
movieClip 4604 tehplatformzBonus8 {
}
movieClip 4605 aPlatzBonus8 {
instance of movieClip 1232 {
onClipEvent (load) {
accel = 0.25;
maxSpeed = 10;
centerOffset = 150;
rotOffset = -90;
onlyOnStand = false;
moving = true;
}
}
}
movieClip 4607 tehhangzBonus8 {
}
movieClip 4608 BLayerBonus8 {
instance of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 36;
}
}
}
movieClip 4616 ForegroundBonus8 {
}
movieClip 4617 InteractLayerBonus8 {
instance of movieClip 4517 {
onClipEvent (load) {
ID = 4;
}
}
}
movieClip 4619 UberForegroundBonus8 {
}
movieClip 4620 {
}
movieClip 4625 {
}
movieClip 4626 {
}
movieClip 4630 UberbackgroundBonus6 {
}
movieClip 4632 {
}
movieClip 4633 BackgroundBonus6 {
}
movieClip 4635 tehgroundBonus6 {
}
movieClip 4637 tehwallzBonus6 {
}
movieClip 4638 aPlatzBonus6 {
instance of movieClip 1232 {
onClipEvent (load) {
accel = 1;
maxSpeed = 25;
centerOffset = 100;
rotOffset = -90;
falling = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 1;
maxSpeed = 25;
centerOffset = 100;
rotOffset = -90;
falling = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 1;
maxSpeed = 25;
centerOffset = 100;
rotOffset = -90;
falling = true;
}
}
instance of movieClip 1232 {
onClipEvent (load) {
accel = 1;
maxSpeed = 25;
centerOffset = 100;
rotOffset = -90;
falling = true;
}
}
}
movieClip 4640 tehhangzBonus6 {
}
movieClip 4650 {
frame 1 {
stop();
}
}
movieClip 4654 ForegroundBonus6 {
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
instance of movieClip 4650 {
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
}
}
movieClip 4655 BLayerBonus6 {
}
movieClip 4657 {
}
movieClip 4658 InteractLayerBonus6 {
instance Door1 of movieClip 124 {
}
instance of movieClip 995 {
onClipEvent (load) {
ID = 12;
}
}
instance of movieClip 4517 {
onClipEvent (load) {
ID = 5;
}
}
instance isDeadLolz of movieClip 4657 {
onClipEvent (load) {
_alpha = 0;
}
}
}
movieClip 4660 UberForegroundBonus6 {
}
movieClip 4661 {
}
movieClip 4663 UberbackgroundBonus10 {
}
movieClip 4666 {
}
movieClip 4667 BackgroundBonus10 {
}
movieClip 4669 surfaceBonus10 {
}
movieClip 4671 tehgroundBonus10 {
}
movieClip 4673 tehwallzBonus10 {
}
movieClip 4675 tehplatformzBonus10 {
}
movieClip 4677 tehhangzBonus10 {
}
movieClip 4679 ForegroundBonus10 {
}
movieClip 4681 {
}
movieClip 4682 InteractLayerBonus10 {
instance Cannon of movieClip 305 {
onClipEvent (load) {
masterAim = -45;
}
}
instance Door2 of movieClip 124 {
onClipEvent (load) {
worm = 1;
}
}
instance of movieClip 995 {
onClipEvent (load) {
ID = 10;
}
}
instance of movieClip 995 {
onClipEvent (load) {
ID = 11;
}
}
instance Door3 of movieClip 124 {
onClipEvent (load) {
worm = 2;
}
}
instance of movieClip 4517 {
onClipEvent (load) {
ID = 6;
}
}
instance isDeadLolz of movieClip 4681 {
onClipEvent (load) {
_alpha = 0;
}
}
}
movieClip 4683 UberForegroundBonus10 {
}
movieClip 4684 {
}
movieClip 4686 UberbackgroundTrans1 {
}
movieClip 4688 BackgroundTrans1 {
}
movieClip 4690 tehwallzTrans1 {
}
movieClip 4697 tehgroundTrans1 {
frame 1 {
stop();
}
}
movieClip 4699 ForegroundTrans1 {
}
movieClip 4700 {
}
movieClip 4701 InteractLayerTrans1 {
frame 1 {
stop();
}
instance Door0 of movieClip 124 {
onClipEvent (load) {
vanish = true;
}
}
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Level5';
}
}
instance object0 of movieClip 4700 {
onClipEvent (load) {
objectFunc = function () {
_root.tehground.gotoAndStop(2);
_parent.gotoAndStop(2);
};
}
}
instance object1 of movieClip 4700 {
onClipEvent (load) {
objectFunc = function () {
_root.tehground.gotoAndStop(3);
_parent.gotoAndStop(3);
};
}
}
instance object0 of movieClip 4700 {
onClipEvent (load) {
objectFunc = function () {
_root.tehground.gotoAndStop(1);
_parent.gotoAndStop(1);
};
}
}
instance object1 of movieClip 4700 {
onClipEvent (load) {
objectFunc = function () {
_root.tehground.gotoAndStop(2);
_parent.gotoAndStop(2);
};
}
}
instance object0 of movieClip 4700 {
onClipEvent (load) {
objectFunc = function () {
_root.tehground.gotoAndStop(4);
_parent.gotoAndStop(4);
};
}
}
instance object0 of movieClip 4700 {
onClipEvent (load) {
objectFunc = function () {
_root.tehground.gotoAndStop(3);
_parent.gotoAndStop(3);
};
}
}
}
movieClip 4702 {
}
movieClip 4703 BackgroundTrans2 {
}
movieClip 4705 ForegroundTrans2 {
}
movieClip 4706 AllEverythingT2 {
}
movieClip 4708 BackgroundTrans3 {
}
movieClip 4710 surfaceTrans3 {
}
movieClip 4712 tehwallzTrans3 {
}
movieClip 4714 tehplatformzTrans3 {
}
movieClip 4716 ForegroundTrans3 {
}
movieClip 4717 InteractLayerTrans3 {
instance Door0 of movieClip 1194 {
onClipEvent (load) {
vanish = true;
}
}
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Level2';
}
}
}
movieClip 4718 {
}
movieClip 4719 {
instance JumpPad0 of movieClip 144 JumpPad {
onClipEvent (load) {
Thrust = 28;
}
}
}
movieClip 4720 InteractLayerTrans4 {
instance Door1 of movieClip 124 {
onClipEvent (load) {
worm = 'Level8';
}
}
instance WormBox of movieClip 372 {
onClipEvent (load) {
AtIt = 'Down';
thrust = -10;
}
}
instance Door0 of movieClip 124 {
onClipEvent (load) {
vanish = true;
}
}
}
movieClip 4721 {
}
movieClip 4751 {
instance of movieClip 4288 {
onClipEvent (load) {
gotoAndStop(_parent._parent.ID);
}
}
}
frame 3 {
Load = 'Menus1';
Door = 'Door0';
ShowSmoke = false;
vOffset = 300;
theX = 0;
theY = 0;
isMute = false;
isScroll = true;
shiftTheY = 0;
debugOutput = ' ';
Mouse.hide();
onMouseDown = function () {
trace(_xmouse);
trace(_ymouse);
};
Squiggles = 0;
Lives = 3;
Health = 100;
SquigglesGet = 0;
SpidersPwned = 0;
Fancy_local_data = SharedObject.getLocal('FPAWorld2');
if (Fancy_local_data.data.isColor == undefined) {
Fancy_local_data.data.isColor = 0;
isColor = Fancy_local_data.data.isColor;
} else {
isColor = Fancy_local_data.data.isColor;
}
if (Fancy_local_data.data.TrophyGet == undefined) {
Fancy_local_data.data.TrophyGet = [false, false, false, false, false, false];
TrophyGet = Fancy_local_data.data.TrophyGet;
} else {
TrophyGet = Fancy_local_data.data.TrophyGet;
}
if (TrophyGet[0]) {
_root.kongregateStats.submit('trophyTommyLM', 1);
}
if (TrophyGet[1]) {
_root.kongregateStats.submit('trophyAdamPhillips', 1);
}
if (TrophyGet[2]) {
_root.kongregateStats.submit('trophyTheSwain', 1);
}
if (TrophyGet[3]) {
_root.kongregateStats.submit('trophyLuis', 1);
}
if (TrophyGet[4]) {
_root.kongregateStats.submit('trophyAfroNinja', 1);
}
if (TrophyGet[5]) {
_root.kongregateStats.submit('trophyNegativeOne', 1);
}
if (Fancy_local_data.data.LevelSelect == undefined) {
Fancy_local_data.data.LevelSelect = 1;
LevelSelect = Fancy_local_data.data.LevelSelect;
} else {
LevelSelect = Fancy_local_data.data.LevelSelect;
}
if (Fancy_local_data.data.CameoSelect == undefined) {
Fancy_local_data.data.CameoSelect = [false, false, false, false, false, false];
CameoSelect = Fancy_local_data.data.CameoSelect;
} else {
CameoSelect = Fancy_local_data.data.CameoSelect;
}
if (Fancy_local_data.data.unlockedPantsColors == undefined) {
Fancy_local_data.data.unlockedPantsColors = [true, true, true, true, false, false, false, false, false, false];
unlockedPantsColors = Fancy_local_data.data.unlockedPantsColors;
} else {
unlockedPantsColors = Fancy_local_data.data.unlockedPantsColors;
}
if (unlockedPantsColors[4]) {
_root.kongregateStats.submit('colorTeal', 1);
}
if (unlockedPantsColors[5]) {
_root.kongregateStats.submit('colorPurple', 1);
}
if (unlockedPantsColors[6]) {
_root.kongregateStats.submit('colorBlack', 1);
}
if (unlockedPantsColors[7]) {
_root.kongregateStats.submit('colorYellow', 1);
}
if (unlockedPantsColors[8]) {
_root.kongregateStats.submit('colorBlue', 1);
}
if (unlockedPantsColors[9]) {
_root.kongregateStats.submit('colorPeach', 1);
}
if (unlockIt) {
LevelSelect = 6;
CameoSelect = [true, true, true, true, true, true];
unlockedPantsColors = [true, true, true, true, true, true, true, true, true, true];
TrophyGet = [true, true, true, true, true, true];
}
var ssN = 0;
var Boxit = false;
var SmoothScroll = 0;
SnapBack = [0, 0];
Paused = false;
tnomenumusic = true;
BackgroundVolume = 100;
KillWallJump = false;
oldGridFrame = 0;
tehsnappy = false;
Squiggles = 0;
Lives = 3;
Health = 100;
Bonus2Setup = function () {
Char.JumpFunc(25);
};
PauseListener = function () {
if (!Key.isDown(32)) {
SpisDown = false;
}
if (Key.isDown(32) && !SpisDown && substring(LevelLoaded, 1, 5) != 'Menus') {
PauseSound.start();
BackgroundMusic.setVolume(0);
BackgroundVolume = 0;
SpisDown = true;
attachMovie('PauseMenu', 'PauseMenu', 100002, {'_x': -_x, '_y': -_y});
Paused = true;
onEnterFrame = function () {
i = 0;
while (syncHold > getTimer()) {
++i;
if (i > 20000) {
break;
}
}
syncHold = getTimer() + 33;
MouseHider();
if (Key.isDown(77)) {
QuittoMenu();
}
if (!Key.isDown(32)) {
SpisDown = false;
}
if (Key.isDown(32) && !SpisDown && PauseMenu._currentframe == 6) {
SpisDown = true;
PauseMenu.play();
removeMovieClip(pausedClip);
BackgroundMusic.setVolume(100);
BackgroundVolume = 100;
unPauseSound.start();
}
};
}
};
syncHold = 0;
unpausedEnterFrame = function () {
i = 0;
while (syncHold > getTimer()) {
++i;
if (i > 20000) {
break;
}
}
syncHold = getTimer() + 33;
MouseHider();
scrollEngine();
if (!Key.isDown(81)) {
QisDown = false;
}
if (Key.isDown(81) && !QisDown) {
if (_quality == 'HIGH') {
_quality = 'MEDIUM';
} else {
if (_quality == 'MEDIUM') {
_quality = 'LOW';
} else {
if (_quality == 'LOW') {
_quality = 'HIGH';
}
}
}
QisDown = true;
}
if (!Key.isDown(77)) {
MisDown = false;
}
if (Key.isDown(77) && !MisDown) {
MisDown = true;
if (isMute) {
isMute = false;
soundIs = getMusic(LevelLoaded);
BackgroundMusic = new Sound(createEmptyMovieClip('soundmc6', 10006));
BackgroundMusic.attachSound(soundIs);
BackgroundMusic.setVolume(100);
BackgroundVolume = 100;
BackgroundMusic.start(0, 1000);
} else {
isMute = true;
soundIs = 'mute';
BackgroundMusic.stop();
}
}
if (!Key.isDown(66)) {
BisDown = false;
}
if (Key.isDown(66) && !BisDown) {
BisDown = true;
if (isScroll) {
BGScrollOffsetX = BGScroll._x + theX;
BGScrollOffsetY = BGScroll._y + theY;
isScroll = false;
} else {
isScroll = true;
}
}
Char.CheckInteractHit(Char._x + 30 * Math.cos((Char._rotation - 90) * 0.0174532925199433), Char._y + 30 * Math.sin((Char._rotation - 90) * 0.0174532925199433));
if (Char._alpha < 100) {
Char._alpha += 0.5;
if (Char._alpha > 85) {
Char._alpha = 100;
}
}
if (Char._y > -MinY + 700 && Char._currentframe != 21) {
Char.gotoAndStop('Die');
}
};
onMouseMove = function () {
HideThatMouse = 40;
Mouse.show();
};
HideThatMouse = 40;
MouseHider = function () {
if (HideThatMouse > 0) {
--HideThatMouse;
}
if (HideThatMouse == 0) {
Mouse.hide();
HideThatMouse = -1;
}
};
LoadLevel = function (LoadIt, DoorIt, soundTo) {
attachMovie('Char', 'Char', 1000, {'moveRL': 0, 'moveUD': 0, 'Jump': 83, 'SisDown': false, 'yerdown': false, 'friction': 0.88, 'temp': false, 'thisIs': 'Char', 'hairRL': 0, 'hairUD': 0, 'gelHair': gelHair, 'aBadOn': -1, 'wallPause': 0, 'wallJumped': false, 'wallJumpFell': false, 'TempStill': false, 'FloatStill': false, 'canPlatLedge': false, 'jpN': 1010, 'rpN': 5, 'RLFunc': RLFunc, 'mRL': mRL, 'mUD': mUD, 'RLx': RLx, 'RLy': RLy, 'UDx': UDx, 'UDy': UDy, 'WasSix': WasSix, 'spread': 10, 'RAnchx': RAnchx, 'RAnchy': RAnchy, 'LAnchx': LAnchx, 'LAnchy': LAnchy, 'JumpFunc': CharJumpFunc, 'JumpGuide': JumpGuide, 'WraptoGround': WraptoGround, 'crazyLander': crazyLander, 'wallToGround': wallToGround, 'HeadLand': HeadLand, 'CheckHead': CheckHead, 'Standing': Standing, 'JumpListener': JumpListener, 'CheckBaddieHit': CheckBaddieHit, 'CheckBaddiePwning': CheckBaddiePwning, 'CheckInteractHit': CheckInteractHit, 'Died': Died, 'LedgeIt': LedgeIt, 'HangIt': HangIt, 'WallIt': WallIt, 'testSpringBoard': testSpringBoard, 'BonusPlatJumpLand': BonusPlatJumpLand, 'BonusPlatFind': BonusPlatFind, 'JumpLand': JumpLand, 'BonusPlatJumpLand': BonusPlatJumpLand, 'StandingOnTheLedge': StandingOnTheLedge, 'EveryFrame': EveryFrame, 'rockOutCounter': 0});
Char.RightIsDown = function () {
if (Key.isDown(39) && !Key.isDown(37)) {
return true;
} else {
return false;
}
};
Char.LeftIsDown = function () {
if (Key.isDown(37) && !Key.isDown(39)) {
return true;
} else {
return false;
}
};
Char.gelHair();
Paused = false;
attachMovie('Foreground' + LoadIt, 'Foreground', 500);
attachMovie('tehground' + LoadIt, 'tehground', 603);
attachMovie('surface' + LoadIt, 'surface', 601);
attachMovie('tehwallz' + LoadIt, 'tehwallz', 602);
SpringBoardCount = 0;
aPlatzCount = 0;
attachMovie('tehplatformz' + LoadIt, 'tehplatformz', 604);
attachMovie('aPlatz' + LoadIt, 'aPlatz', 606, {'_alpha': 0});
attachMovie('SBLayer' + LoadIt, 'SBLayer', 16, {'_alpha': 0});
attachMovie('tehhangz' + LoadIt, 'tehhangz', 605);
JumpPadCount = 0;
BaddieCount = 0;
maxBaddies = 0;
attachMovie('BLayer' + LoadIt, 'BLayer', 800);
CoinCount = 0;
SwiftCount = 0;
objectCount = 0;
attachMovie('InteractLayer' + LoadIt, 'InteractLayer', 600);
MaxX = Math.round(-InteractLayer.MaxX._x);
MinX = Math.round(720 - InteractLayer.MinX._x);
if (MinX > MaxX) {
MinX = MaxX;
}
MaxY = Math.round(-InteractLayer.MaxY._y);
MinY = Math.round(480 - InteractLayer.MinY._y);
if (MinY > MaxY) {
MinY = MaxY;
}
firstMaxX = MaxX;
firstMaxY = MaxY;
delete Char.onEnterFrame;
if (InteractLayer[DoorIt].Reverse != undefined) {
InteractLayer[DoorIt]._xscale = -100;
}
Char._x = Math.round(InteractLayer[DoorIt]._x + InteractLayer[DoorIt]._xscale / 2.5);
Char._y = Math.round(InteractLayer[DoorIt]._y);
Char.gotoAndStop('DoorOut');
Char.Still = true;
Char._xscale = InteractLayer[DoorIt]._xscale;
SmoothScroll = 0;
SmoothScrollx = 0;
SmoothScrolly = 0;
theX = 360 - Char._x;
theY = vOffset - Char._y;
if (theX > MaxX) {
theX = MaxX;
}
if (theX < MinX) {
theX = MinX;
}
if (theY < MinY) {
theY = MinY;
}
if (theY > MaxY) {
theY = MaxY;
}
BGScrollOffsetX = Math.round((-theX + firstMaxX) * 0.5) + theX;
BGScrollOffsetY = Math.round((-theY + firstMaxY) * 0.5) + theY;
_x = theX;
_y = theY;
scrollEngine = CharScroll;
if (!ShowSmoke) {
tehground._alpha = 0;
tehwallz._alpha = 0;
tehplatformz._alpha = 0;
surface._alpha = 0;
tehhangz._alpha = 0;
}
attachMovie('UberForeground' + LoadIt, 'UberForeground', 1050);
createEmptyMovieClip('ELayer', 990);
createEmptyMovieClip('BGScroll', 470);
createEmptyMovieClip('RotFix', 0);
createEmptyMovieClip('RotFind', 1);
if (substring(LoadIt, 1, 5) != 'Menus') {
attachMovie('OutPut', 'OutPut', 100000);
}
if (LoadIt == 'Bonus10') {
inkSplat = function () {
return false;
};
} else {
inkSplat = function (ex, ey, escale, erot) {
edepth = ELayer.getNextHighestDepth();
ELayer.attachMovie('inkSplat' + random(3), 'inkSplat' + edepth, edepth, {'_x': ex, '_y': ey, '_xscale': escale, '_yscale': Math.abs(escale), '_rotation': erot});
};
}
if (substring(LoadIt, 1, 5) != 'Menus' && substring(LevelLoaded, 1, 5) != 'Menus') {
if (LoadIt == 'Level4') {
progressPower = 1;
} else {
if (LoadIt == 'Level5') {
progressPower = 2;
} else {
if (LoadIt == 'Level2') {
progressPower = 3;
} else {
if (LoadIt == 'Level8') {
progressPower = 4;
} else {
if (LoadIt == 'Level7') {
progressPower = 5;
} else {
if (LoadIt == 'Level1') {
progressPower = 6;
} else {
progressPower = 0;
}
}
}
}
}
}
if (progressPower > LevelSelect) {
LevelSelect = progressPower;
Fancy_local_data.data.LevelSelect = LevelSelect;
}
cameoSlot = -1;
if (LoadIt == 'Bonus5') {
cameoSlot = 0;
} else {
if (LoadIt == 'Bonus8') {
cameoSlot = 1;
} else {
if (LoadIt == 'Bonus11') {
cameoSlot = 2;
} else {
if (LoadIt == 'Bonus7') {
cameoSlot = 3;
} else {
if (LoadIt == 'Bonus6') {
cameoSlot = 4;
} else {
if (LoadIt == 'Bonus10') {
cameoSlot = 5;
}
}
}
}
}
}
if (cameoSlot > -1) {
if (CameoSelect[cameoSlot] == false) {
CameoSelect[cameoSlot] = true;
Fancy_local_data.data.CameoSelect = CameoSelect;
}
}
}
if (_root[LoadIt + 'CoinGot'] == undefined) {
_root[LoadIt + 'CoinGot'] = new Array();
_root[LoadIt + 'CoinGot'][0] = false;
_root[LoadIt + 'CoinGot'][100] = false;
}
if (substring(LoadIt, 1, 5) == 'Level') {
attachMovie('OutPut', 'OutPut', 100000);
OutPut.HealthBar._xscale = Health;
}
if (tehsnappy) {
tehsnappy = false;
}
RotFind.RLx = RLx;
RotFind.RLy = RLy;
RotFind.UDx = UDx;
RotFind.UDy = UDy;
RotFind.WasSix = WasSix;
RotFind.spread = 5;
RotFind.RAnchx = RAnchx;
RotFind.RAnchy = RAnchy;
RotFind.LAnchx = LAnchx;
RotFind.LAnchy = LAnchy;
RotFind.WraptoGround = WraptoGround;
tehwallz.Box.mRL = mRL;
tehwallz.Box.mUD = mUD;
tehwallz.Box.RLx = RLx;
tehwallz.Box.RLy = RLy;
tehwallz.Box.UDx = UDx;
tehwallz.Box.UDy = UDy;
tehwallz.Box.WasSix = WasSix;
tehwallz.Box.spread = 30;
tehwallz.Box.RAnchx = RAnchx;
tehwallz.Box.RAnchy = RAnchy;
tehwallz.Box.LAnchx = LAnchx;
tehwallz.Box.LAnchy = LAnchy;
tehwallz.Box.F = RLFunc;
tehwallz.Box.WraptoGround = WraptoGround;
tehwallz.movingWallz.gears.smokeRL = 0;
attachMovie('FadeIn', 'FadeIn', 100005, {'worm': LoadIt, '_x': -_x, '_y': -_y});
ColorEmPants(isColor);
buildCache(LoadIt, DoorIt, soundTo);
LevelLoaded = LoadIt;
};
buildCache = function (LoadIt, DoorIt, soundTo) {
attachMovie('loadHUD', 'loadHUD', 100010, {'_x': -theX, '_y': -theY});
FGsuperX = MaxX - (MinX - 720);
FGsuperY = MaxY - (MinY - 480);
FGtilesX = Math.round(FGsuperX / 2880 + 0.5);
FGtilesY = Math.round(FGsuperY / 1920 + 0.5);
halfScrollX = FGsuperX - 720;
halfScrollY = FGsuperY - 480;
BGsuperX = FGsuperX - halfScrollX / 2;
BGsuperY = FGsuperY - halfScrollY / 2;
BGtilesX = Math.round(BGsuperX / 2880 + 0.5);
BGtilesY = Math.round(BGsuperY / 1920 + 0.5);
totalTiles = FGtilesX * FGtilesY + BGtilesX * BGtilesY + 1;
tilesLoaded = 0;
eDepth = 0;
ex = 0;
ey = 0;
superX = FGsuperX;
superY = FGsuperY;
tilesX = FGtilesX;
tilesY = FGtilesY;
onEnterFrame = function () {
if (ex < tilesX) {
if (ey < tilesY) {
if (superX > 2880) {
tempX = 2880;
} else {
tempX = superX;
}
if (superY > 1920) {
tempY = 1920;
} else {
tempY = superY;
}
_root['levelBitmap' + eDepth] = new flash.display.BitmapData(tempX, tempY, true, 0);
createEmptyMovieClip('levelClip' + eDepth, 501 + eDepth);
_root['levelClip' + eDepth].attachBitmap(_root['levelBitmap' + eDepth], 0);
Foreground._x = MaxX - 2880 * ex;
Foreground._y = MaxY - 1920 * ey;
_root['levelBitmap' + eDepth].draw(Foreground, Foreground.transform.matrix);
_root['levelClip' + eDepth]._x = -MaxX + 2880 * ex;
_root['levelClip' + eDepth]._y = -MaxY + 1920 * ey;
++eDepth;
if (superY > 1920) {
superY -= 1920;
}
++ey;
++tilesLoaded;
loadHUD.loadBar._xscale = (tilesLoaded / totalTiles) * 100;
} else {
superY = FGsuperY;
if (superX > 2880) {
superX -= 2880;
}
ey = 0;
++ex;
}
} else {
removeMovieClip(Foreground);
percX = BGsuperX / FGsuperX;
percY = BGsuperY / FGsuperY;
attachMovie('Background' + LoadIt, 'Background', 450, {'_xscale': percX * 100, '_yscale': percY * 100});
eDepth = 0;
ex = 0;
ey = 0;
superX = BGsuperX;
superY = BGsuperY;
tilesX = BGtilesX;
tilesY = BGtilesY;
onEnterFrame = function () {
if (ex < tilesX) {
if (ey < tilesY) {
if (superX > 2880) {
tempX = 2880;
} else {
tempX = superX;
}
if (superY > 1920) {
tempY = 1920;
} else {
tempY = superY;
}
_root['BGlevelBitmap' + eDepth] = new flash.display.BitmapData(tempX, tempY, true, 0);
BGScroll.createEmptyMovieClip('BGlevelClip' + eDepth, eDepth);
_root.BGScroll['BGlevelClip' + eDepth].attachBitmap(_root['BGlevelBitmap' + eDepth], 0);
Background._x = MaxX * percX - 2880 * ex;
Background._y = percY * MaxY - 1920 * ey;
_root['BGlevelBitmap' + eDepth].draw(Background, Background.transform.matrix);
_root.BGScroll['BGlevelClip' + eDepth]._x = -MaxX + 2880 * ex;
_root.BGScroll['BGlevelClip' + eDepth]._y = -MaxY + 1920 * ey;
++eDepth;
if (superY > 1920) {
superY -= 1920;
}
++ey;
++tilesLoaded;
loadHUD.loadBar._xscale = (tilesLoaded / totalTiles) * 100;
} else {
superY = BGsuperY;
if (superX > 2880) {
superX -= 2880;
}
ey = 0;
++ex;
}
} else {
removeMovieClip(Background);
attachMovie('Uberbackground' + LoadIt, 'Uberbackground', 400, {'_y': 480});
if (Uberbackground != undefined) {
UBGlevelBitmap = new flash.display.BitmapData(720, 480, false, 0);
createEmptyMovieClip('UBGstatic', 405);
UBGstatic.attachBitmap(UBGlevelBitmap, 0);
UBGlevelBitmap.draw(Uberbackground, Uberbackground.transform.matrix);
removeMovieClip(Uberbackground);
}
++tilesLoaded;
loadHUD.loadBar._xscale = (tilesLoaded / totalTiles) * 100;
if (soundTo != soundIs) {
BackgroundMusic = new Sound(createEmptyMovieClip('soundmc6', 10006));
BackgroundMusic.attachSound(soundTo);
BackgroundMusic.start(0, 1000);
if (substring(LoadIt, 1, 5) == 'Menus') {
BackgroundMusic.setVolume(100);
BackgroundVolume = 100;
} else {
BackgroundMusic.setVolume(0);
BackgroundVolume = 0;
}
soundIs = soundTo;
}
if (BackgroundVolume == 0) {
FadeIn.onEnterFrame = function () {
if (_root.BackgroundVolume < 100) {
_root.BackgroundVolume += 5;
_root.BackgroundMusic.setVolume(_root.BackgroundVolume);
}
this._x = -_x;
this._y = -_y;
};
} else {
FadeIn.onEnterFrame = function () {
this._x = -_x;
this._y = -_y;
};
}
FadeIn.play();
removeMovieClip(loadHUD);
if (LoadIt == 'Menus1') {
if (DoorIt == 'Door0') {
InteractLayer.Door0.gotoAndStop(1);
onEnterFrame = introEnterFrame;
theY = MaxY;
_y = theY;
FadeIn._y = -_y;
} else {
MaxY = MinY;
theY = MaxY;
_y = theY;
InteractLayer[DoorIt].gotoAndPlay('doorOut');
onEnterFrame = unpausedEnterFrame;
}
} else {
InteractLayer[DoorIt].gotoAndPlay('doorOut');
onEnterFrame = unpausedEnterFrame;
}
Setup();
Setup = _root[LoadIt + 'Setup'];
Setup();
delete Setup;
}
};
}
};
};
SpawnBaddies = function (ex, ey, ename, exscale, i, ethrust) {
if (ename == 'SnailShell') {
attachMovie(ename, 'SnailShell', 999, {'_x': ex, '_y': ey});
} else {
BLayer.attachMovie(ename, ['Baddie' + i], 805 + i, {'_x': ex, '_y': ey});
}
};
EveryFrame = function () {
if (!this.JumpListener()) {
this.RLFunc();
}
this.CheckBaddieHit(false);
};
JumpListener = function () {
if (!Key.isDown(this.Jump)) {
this.SisDown = false;
}
if (Key.isDown(this.Jump) && !this.SisDown) {
this.moveRL *= 0.7000000000000001;
this.fliprot = this._rotation / 8;
this.FloatUp = 6;
CharJump.setPan((_x + this._x) / 3.600000000000001 - 100);
CharJump.start();
this.JumpFunc(12);
this.JumpGuide();
return true;
} else {
return false;
}
};
SimpleJumpFunc = function (jumper) {
this.moveUD = this.moveRL * Math.sin(this._rotation * 0.0174532925199433);
this.moveRL *= Math.cos(this._rotation * 0.0174532925199433);
i = jumper * Math.cos((this._rotation - 90) * 0.0174532925199433);
if (Math.abs(i) > 0.1) {
this.moveRL += i;
}
this.moveUD += jumper * Math.sin((this._rotation - 90) * 0.0174532925199433);
this.gotoAndStop('Jump');
};
CharJumpFunc = function (jumper, still) {
this.SisDown = true;
this.hairRL = 0;
this.hairGel = 18;
if (this.aPlatzOn > -1) {
if (aPlatz['aPlatz' + this.aPlatzOn].moving) {
if (aPlatz['aPlatz' + this.aPlatzOn].falling) {
aPlatz['aPlatz' + this.aPlatzOn].onEnterFrame = BonusPlatFall;
} else {
if (jumper == 0) {
jumper = -aPlatz['aPlatz' + this.aPlatzOn].smokeUD;
} else {
jumper -= aPlatz['aPlatz' + this.aPlatzOn].smokeUD / 2;
}
aPlatz['aPlatz' + this.aPlatzOn].onEnterFrame = BonusPlatMove;
}
}
this.aPlatzOn = -1;
}
if (this.aBadOn > -1) {
this.aBadOn = -1;
}
this._y -= 2;
while (testAll(this._x, this._y, true)) {
this._x += Math.cos((this._rotation - 90) * 0.0174532925199433);
this._y += Math.sin((this._rotation - 90) * 0.0174532925199433);
}
this.moveUD = this.moveRL * Math.sin(this._rotation * 0.0174532925199433);
this.moveRL *= Math.cos(this._rotation * 0.0174532925199433);
if (this._rotation < 45 && this.moveUD > 0) {
this.moveUD = 0;
}
i = jumper * Math.cos((this._rotation - 90) * 0.0174532925199433);
if (Math.abs(i) > 0.1) {
this.moveRL += i;
}
this.moveUD += jumper * Math.sin((this._rotation - 90) * 0.0174532925199433);
if (tehwallz.movingWallz.gears.smokeRL != undefined) {
this.moveRL += tehwallz.movingWallz.gears.smokeRL / 2;
tehwallz.movingWallz.gears.smokeRL = 0;
delete tehwallz.movingWallz.gears.onEnterFrame;
}
this.hairRL = 0;
this.hairUD = 0;
this.gelHair();
if (this.fliprot == undefined) {
this.fliprot = 0;
}
if (Math.abs(this._rotation) < 70 && this._rotation * this.moveRL < 0) {
this.fliprot = 0;
}
if (jumper == 0) {
this.gotoAndStop('Jump');
this.CharJump.gotoAndStop(1);
if (Math.abs(this._rotation) > 100) {
this.Still = true;
} else {
if (Math.abs(this._rotation) > 45) {
this.TempStill = true;
} else {
this.Still = false;
this.CharJump.CharRegJump.gotoAndPlay('Fall');
}
}
} else {
this.gotoAndStop('Jump');
if (still != undefined) {
this.Still = true;
this.CharJump.gotoAndStop(1);
} else {
this.Still = false;
this.FloatStill = false;
if (this.canSpin) {
this.CharJump.gotoAndStop(1);
if (jumper < 30) {
this.CharJump.CharRegJump.CharJumpTwirl.gotoAndPlay(11);
}
} else {
if (!this.TempStill && (this._xscale > 0 && Key.isDown(37) && !Key.isDown(39) || this._xscale < 0 && Key.isDown(39) && !Key.isDown(37))) {
this.CharJump.gotoAndStop(2);
if (Math.abs(this.moveRL) < 2) {
this.moveRL = -this._xscale / 50;
}
} else {
if ((this._xscale < 0 && Key.isDown(37) && !Key.isDown(39) || this._xscale > 0 && Key.isDown(39) && !Key.isDown(37)) && Math.abs(this.moveRL) < 4) {
this.CharJump.gotoAndStop(1);
if (Math.abs(this.moveRL) < 2) {
this.moveRL = this._xscale / 50;
}
} else {
this.CharJump.gotoAndStop(1);
}
}
}
}
}
};
BallJumpGuide = function (lander) {
this.temp = false;
if (tehwallz.hitTest(this.centerX + (this.spread + 2) + this.moveRL, this.centerY + this.spread, true) || tehwallz.hitTest(this.centerX - (this.spread + 2) + this.moveRL, this.centerY + this.spread, true) || tehwallz.hitTest(this.centerX + (this.spread + 2) + this.moveRL, this.centerY - this.spread, true) || tehwallz.hitTest(this.centerX - (this.spread + 2) + this.moveRL, this.centerY - this.spread, true)) {
this.centerX = Math.round(this.centerX);
var v3 = 0;
while (v3 < Math.abs(this.moveRL)) {
if (!tehwallz.hitTest(this.centerX + (this.spread + 2), this.centerY + this.spread, true) && !tehwallz.hitTest(this.centerX - (this.spread + 2), this.centerY + this.spread, true) && !tehwallz.hitTest(this.centerX + (this.spread + 2), this.centerY - this.spread, true) && !tehwallz.hitTest(this.centerX - (this.spread + 2), this.centerY - this.spread, true)) {
this.centerX += this.mRL();
} else {
break;
}
++v3;
}
if (getFriction(this.centerX, this.centerY)) {
inkSplat(this.centerX + this.mRL() * 15, this.centerY, 100, -this.mRL() * 90);
inkSplat(this.centerX + this.mRL() * 15, this.centerY, -100, -this.mRL() * 90);
} else {
v3 = ELayer.getNextHighestDepth();
ELayer.attachMovie('smokeFX', 'smokeFX' + v3, v3, {'_x': this.centerX + this.mRL() * 15, '_y': this.centerY, '_rotation': -this.mRL() * 90, '_xscale': Math.abs(this.moveRL) * 7, '_yscale': Math.abs(this.moveRL) * 7});
}
makeThud(this._x, Math.abs(this.moveRL) * 10);
this.moveRL = -this.moveRL / 2;
this.temp = 'Wall';
_root.kongregateStats.submit('snailshellCombo', this.combo);
this.combo = 0;
while (tehwallz.hitTest(this.centerX + 17, this.centerY, true)) {
--this.centerX;
trace('shellX--');
}
while (tehwallz.hitTest(this.centerX - 17, this.centerY, true)) {
++this.centerX;
trace('shellX++');
}
}
if (tehground.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || tehground.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
if (this.groundLandProtect > 0) {
trace('ewGround');
this.centerX += this.moveRL;
this.centerY += this.moveUD;
this.rotateInAir();
this.WraptoGround(false, false, true);
} else {
this.rotateInAir();
this.JumpLand(hurt, true, false, 'ground', lander);
}
return this.temp;
}
if (tehplatformz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || tehplatformz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
if (!tehplatformz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() - Math.abs(this.moveRL / 2) - 2, true) && !tehplatformz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() - Math.abs(this.moveRL / 2) - 2, true) && this.moveUD + Math.abs(this.moveRL / 2) > 0) {
this.rotateInAir();
tempRight = tehplatformz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || tehplatformz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD + 30, true);
tempLeft = tehplatformz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true) || tehplatformz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD + 30, true);
if (tempRight && tempLeft) {
tempLand = 'platBoth';
} else {
if (tempRight) {
tempLand = 'platRight';
} else {
if (tempLeft) {
tempLand = 'platLeft';
} else {
tempLand = 'platGay';
}
}
}
this.JumpLand(hurt, true, true, tempLand, lander);
} else {
this.centerX += this.moveRL;
this.centerY += this.moveUD;
this.rotateInAir();
}
return this.temp;
}
if (tehwallz.hitTest(this.centerX + this.spread + this.moveRL, this.centerY + this.moveUD - this.spread, true) || tehwallz.hitTest(this.centerX - this.spread + this.moveRL, this.centerY + this.moveUD - this.spread, true)) {
this.centerY = Math.round(this.centerY);
for (;;) {
if (!(!tehwallz.hitTest(this.centerX + this.spread + this.moveRL, this.centerY - (this.spread + 3), true) && !tehwallz.hitTest(this.centerX - this.spread + this.moveRL, this.centerY - (this.spread + 3), true) && this.moveUD < 0)) break;
--this.centerY;
}
for (;;) {
if (!(tehwallz.hitTest(this.centerX + this.spread + this.moveRL, this.centerY - this.spread, true) && tehwallz.hitTest(this.centerX - this.spread + this.moveRL, this.centerY - this.spread, true) && this.moveUD < 0)) break;
++this.centerY;
trace('shellY++');
}
if (getFriction(this.centerX, this.centerY)) {
inkSplat(this.centerX, this.centerY - this.spread, 100, 180);
inkSplat(this.centerX, this.centerY - this.spread, -100, 180);
} else {
v3 = ELayer.getNextHighestDepth();
ELayer.attachMovie('smokeFX', 'smokeFX' + v3, v3, {'_x': this.centerX, '_y': this.centerY - this.spread, '_rotation': 180, '_xscale': -this.moveUD * 7, '_yscale': -this.moveUD * 7});
}
makeThud(this._x, Math.abs(this.moveRL) * 10);
this.moveUD = -this.moveUD / 2;
this.rotateInAir();
return this.temp;
}
if (tehwallz.hitTest(this.centerX + this.spread + this.moveRL, this.centerY + this.moveUD + this.spread, true) || tehwallz.hitTest(this.centerX - this.spread + this.moveRL, this.centerY + this.moveUD + this.spread, true)) {
this.rotateInAir();
this._rotation = 0;
if (tehwallz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) && tehwallz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
tempLand = 'wallBoth';
} else {
if (tehwallz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true)) {
tempLand = 'wallRight';
} else {
if (tehwallz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
tempLand = 'wallLeft';
} else {
tempLand = 'wallGay';
}
}
}
this.JumpLand(hurt, true, false, tempLand, lander);
return this.temp;
}
this.centerX += this.moveRL;
this.centerY += this.moveUD;
this.rotateInAir();
return this.temp;
};
rotateInAir = function () {
this._rotation = -Math.atan2(this.moveRL, this.moveUD) / 0.0174532925199433;
this.InShell._rotation = (this.InShellrotation + -this._rotation) * this._xscale / Math.abs(this._xscale);
this._x = this.centerX + 15 * Math.cos((this._rotation + 90) * 0.0174532925199433);
this._y = this.centerY + 15 * Math.sin((this._rotation + 90) * 0.0174532925199433);
};
recenterPoints = function () {
this.centerX = 15 * Math.cos((this._rotation - 90) * 0.0174532925199433) + this._x;
this.centerY = 15 * Math.sin((this._rotation - 90) * 0.0174532925199433) + this._y;
};
JumpGuide = function (hurt, lander, badPwn) {
this.temp = false;
if (badPwn == undefined) {
badPwn = false;
}
if (this.moveUD > 0) {
this.testSpringBoard();
}
if (!hurt && tehwallz.hitTest(this._x + 20 + this.moveRL, this._y - 55 + this.moveUD, true) && !testAll(this._x + 20 + this.moveRL, this._y - 56, true) && !testAll(this._x + this.moveRL, this._y - 55 + this.moveUD, true) && !InteractLayer.isDeadLolz.hitTest(this._x + 20 + this.moveRL, this._y - 55 + this.moveUD, true) && this.moveUD > 0 && !testAll(this._x + this.spread + this.moveRL, this._y + this.moveUD, true) && !testAll(this._x - this.spread + this.moveRL, this._y + this.moveUD, true)) {
this._xscale = 100;
this.LedgeIt();
return 'ledge';
} else {
if (!hurt && tehwallz.hitTest(this._x - 20 + this.moveRL, this._y - 55 + this.moveUD, true) && !testAll(this._x - 20 + this.moveRL, this._y - 56, true) && !testAll(this._x + this.moveRL, this._y - 55 + this.moveUD, true) && !InteractLayer.isDeadLolz.hitTest(this._x - 20 + this.moveRL, this._y - 55 + this.moveUD, true) && this.moveUD > 0 && !testAll(this._x + this.spread + this.moveRL, this._y + this.moveUD, true) && !testAll(this._x - this.spread + this.moveRL, this._y + this.moveUD, true)) {
this._xscale = -100;
this.LedgeIt();
return 'ledge';
} else {
if (!hurt && tehhangz.hitTest(this._x + this.moveRL, this._y - 55 + this.moveUD, true) && !tehhangz.hitTest(this._x + this.moveRL, this._y - 57 - this.moveUD, true) && this.moveUD > 0) {
this.HangIt();
return 'hang';
} else {
if (tehwallz.hitTest(this._x + (this.spread + 2) + this.moveRL + this.mRL(), this._y, true) || tehwallz.hitTest(this._x - (this.spread + 2) + this.moveRL + this.mRL(), this._y, true) || tehwallz.hitTest(this._x + (this.spread + 2) + this.moveRL + this.mRL(), this._y - 50, true) || tehwallz.hitTest(this._x - (this.spread + 2) + this.moveRL + this.mRL(), this._y - 50, true)) {
this._rotation *= 0.8;
this._x = Math.round(this._x);
var v3 = 0;
while (v3 < 35) {
if (!tehwallz.hitTest(this._x + (this.spread + 3), this._y, true) && !tehwallz.hitTest(this._x - (this.spread + 3), this._y, true) && !tehwallz.hitTest(this._x + (this.spread + 3), this._y - 50, true) && !tehwallz.hitTest(this._x - (this.spread + 3), this._y - 50, true)) {
this._x += this.mRL();
} else {
break;
}
v3 += 1;
}
if (InteractLayer.isDeadLolz.hitTest(this._x, this._y, true) || InteractLayer.isDeadLolz.hitTest(this._x, this._y - 45, true)) {
this.Died();
return false;
}
this.temp = 'Wall';
if (tehwallz.hitTest(this._x + this.spread, this._y - Math.abs(this.moveUD), true) && tehwallz.hitTest(this._x - this.spread, this._y - Math.abs(this.moveUD), true) || tehwallz.hitTest(this._x + this.spread, this._y - 30, true) && tehwallz.hitTest(this._x - this.spread, this._y - 30, true)) {
this.Died();
return false;
} else {
for (;;) {
if (!(tehwallz.hitTest(this._x + this.spread, this._y - 4, true) || tehwallz.hitTest(this._x + this.spread, this._y - 30, true))) break;
--this._x;
trace('charX--');
}
for (;;) {
if (!(tehwallz.hitTest(this._x - this.spread, this._y - 4, true) || tehwallz.hitTest(this._x - this.spread, this._y - 30, true))) break;
++this._x;
trace('charX++');
}
}
if (!hurt && !this.wallJumpFell && !testAll(this._x, this._y + this.moveUD + 20)) {
if (tehwallz.hitTest(this._x + 20 + this.moveRL, this._y + this.moveUD, true) && tehwallz.hitTest(this._x + 20 + this.moveRL, this._y - 65 + this.moveUD, true) && !testAll(this._x, this._y + this.moveUD + 45) && (Key.isDown(39) || this.wallJumped || this.Still || this.moveRL > 12)) {
if (this.moveRL > 0) {
for (;;) {
if (!(!tehwallz.hitTest(this._x + this.spread + 3, this._y + this.moveUD, true) && !tehwallz.hitTest(this._x + this.spread + 3, this._y - 65 + this.moveUD, true))) break;
++this._x;
}
this._xscale = -100;
this.WallIt();
return 'walljump';
}
} else {
if (tehwallz.hitTest(this._x - 20 + this.moveRL, this._y + this.moveUD, true) && tehwallz.hitTest(this._x - 20 + this.moveRL, this._y - 65 + this.moveUD, true) && !testAll(this._x, this._y + this.moveUD + 45) && (Key.isDown(37) || this.wallJumped || this.Still || this.moveRL < -12)) {
if (this.moveRL < 0) {
for (;;) {
if (!(!tehwallz.hitTest(this._x - this.spread - 1, this._y + this.moveUD, true) && !tehwallz.hitTest(this._x - this.spread - 1, this._y - 65 + this.moveUD, true))) break;
--this._x;
}
this._xscale = 100;
this.WallIt();
return 'walljump';
}
}
}
}
this.moveRL = 0;
}
}
}
}
if (this.CheckBaddieHit(badPwn)) {
return this.temp;
}
if (this.BonusPlatFind()) {
this.BonusPlatJumpLand();
return this.temp;
}
if (tehground.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) && testAll(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD) || tehground.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true) && testAll(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD)) {
if (Math.abs(this._rotation) < 100 || Math.abs(-Math.atan2(this.moveRL, this.moveUD) / 0.0174532925199433) > 100) {
this.JumpLand(hurt, true, false, 'ground', lander);
} else {
this._x += this.moveRL;
this._y += this.moveUD;
this.WraptoGround(false, false, true);
if (hurt) {
this.moveUD = Math.abs(this.moveUD);
}
}
return this.temp;
}
if (tehground.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || tehground.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
this._x += this.moveRL;
this._y += this.moveUD;
this.WraptoGround(false, false, true);
return this.temp;
}
if (tehplatformz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || tehplatformz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
if (!tehplatformz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() - Math.abs(this.moveRL / 2) - 2, true) && !tehplatformz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() - Math.abs(this.moveRL / 2) - 2, true) && this.moveUD + Math.abs(this.moveRL / 2) > 0) {
tempRight = tehplatformz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || tehplatformz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD + 30, true);
tempLeft = tehplatformz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true) || tehplatformz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD + 30, true);
if (tempRight && tempLeft) {
tempLand = 'platBoth';
} else {
if (tempRight) {
tempLand = 'platRight';
} else {
if (tempLeft) {
tempLand = 'platLeft';
} else {
tempLand = 'platGay';
}
}
}
this.JumpLand(hurt, true, true, tempLand, lander);
} else {
this._x += this.moveRL;
this._y += this.moveUD;
}
return this.temp;
}
if (tehwallz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || tehwallz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
if (_root.tehwallz.movingWallz.gears.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || _root.tehwallz.movingWallz.gears.tehwallz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
_root.tehwallz.movingWallz.gears.oldx = _root.tehwallz.movingWallz.gears._x;
_root.tehwallz.movingWallz.gears.oldy = _root.tehwallz.movingWallz.gears._y;
_root.tehwallz.movingWallz.gears.onEnterFrame = function () {
this.smokeRL = this.theX - this.oldx;
_root.Char._x += this.smokeRL;
this.oldx = this._x;
};
}
if (tehwallz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) && tehwallz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
tempLand = 'wallBoth';
} else {
if (tehwallz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true)) {
tempLand = 'wallRight';
} else {
if (tehwallz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
tempLand = 'wallLeft';
} else {
tempLand = 'wallGay';
}
}
}
this.JumpLand(hurt, true, false, tempLand, lander);
return this.temp;
}
if (tehwallz.hitTest(this._x + 10 + this.moveRL, this._y - 50 + this.moveUD, true) || tehwallz.hitTest(this._x - 10 + this.moveRL, this._y - 50 + this.moveUD, true)) {
HeadHit.setPan((_x + this._x) / 3.600000000000001 - 100);
HeadHit.start();
for (;;) {
if (!(!tehwallz.hitTest(this._x + 10 + this.moveRL, this._y - 51, true) && !tehwallz.hitTest(this._x - 10 + this.moveRL, this._y - 51, true))) break;
--this._y;
}
if (InteractLayer.isDeadLolz.hitTest(this._x + 10 + this.moveRL, this._y - 45, true) || InteractLayer.isDeadLolz.hitTest(this._x - 10 + this.moveRL, this._y - 45, true)) {
this.Died();
return false;
}
this.moveUD = -this.moveUD;
this._x += this.moveRL;
this._y += this.moveUD;
return this.temp;
}
if (tehground.hitTest(this._x + 50 * Math.cos((this._rotation - 90) * 0.0174532925199433) + this.moveRL, this._y + 50 * Math.sin((this._rotation - 90) * 0.0174532925199433) + this.moveUD, true)) {
this.HeadLand(this._x + 50 * Math.cos((this._rotation - 90) * 0.0174532925199433), this._y + 50 * Math.sin((this._rotation - 90) * 0.0174532925199433), this.moveRL, this.moveUD);
v3 = 0;
while (v3 < 40) {
if (tehground.hitTest(this._x + 50 * Math.cos((this._rotation - 90) * 0.0174532925199433) + this.moveRL, this._y + 50 * Math.sin((this._rotation - 90) * 0.0174532925199433) + this.moveUD, true)) {
this._x += Math.cos((this._rotation + 90) * 0.0174532925199433);
this._y += Math.sin((this._rotation + 90) * 0.0174532925199433);
}
++v3;
}
return this.temp;
}
this._x += this.moveRL;
this._y += this.moveUD;
return this.temp;
};
BallJumpLand = function (hurt, anchor, breakIt, landOn, lander) {
this.combo = 0;
this.jumprot = -Math.atan2(this.moveRL, this.moveUD) / 0.0174532925199433 + 90;
this.nowSpeed = Math.sqrt(this.moveRL * this.moveRL + this.moveUD * this.moveUD);
this.crazyLander(landOn);
var v2 = 0;
while (v2 < 100) {
if (!testAll(this._x + this.RAnchx() + this.UDx() + Math.cos((this._rotation + 90) * 0.0174532925199433), this._y + this.RAnchy() + this.UDy() + Math.sin((this._rotation + 90) * 0.0174532925199433)) && !testAll(this._x + this.LAnchx() + this.UDx() + Math.cos((this._rotation + 90) * 0.0174532925199433), this._y + this.LAnchy() + this.UDy() + Math.sin((this._rotation + 90) * 0.0174532925199433))) {
this._x += Math.cos((this._rotation + 90) * 0.0174532925199433);
this._y += Math.sin((this._rotation + 90) * 0.0174532925199433);
} else {
break;
}
++v2;
}
if (getFriction(this._x, this._y)) {
inkSplat(this._x, this._y, this._xscale, this._rotation);
inkSplat(this._x, this._y, -this._xscale, this._rotation);
}
this.gorot = 2 * this._rotation - this.jumprot;
if (InteractLayer.golfHole.hitTest(this._x, this._y, true)) {
if (this.nowSpeed > 7) {
this.nowSpeed = 7;
}
this.nowSpeed *= 0.7000000000000001;
this.bounceThresh = 3;
golfCup.start(0, 1);
canThud = false;
} else {
canThud = true;
this.nowSpeed *= this.bounceDefault;
this.bounceThresh = this.bounceThreshDefault;
}
this.fakeRL = this.nowSpeed * Math.cos((this.gorot - this._rotation) * 0.0174532925199433);
this.fakeUD = this.nowSpeed * Math.sin((this.gorot - this._rotation) * 0.0174532925199433);
if (Math.abs(this.fakeUD) > this.bounceThresh || Math.abs(this._rotation) > 60) {
this.moveRL = this.nowSpeed * Math.cos(this.gorot * 0.0174532925199433);
this.moveUD = this.nowSpeed * Math.sin(this.gorot * 0.0174532925199433);
if (canThud) {
makeThud(this._x, Math.abs(this.fakeUD) * 10);
}
if (getFriction(this._x, this._y)) {
inkSplat(this._x, this._y, this._xscale, this._rotation);
inkSplat(this._x, this._y, -this._xscale, this._rotation);
} else {
v2 = ELayer.getNextHighestDepth();
ELayer.attachMovie('smokeFX', 'smokeFX' + v2, v2, {'_x': this._x, '_y': this._y, '_rotation': this._rotation, '_xscale': Math.abs(this.fakeUD) * 7, '_yscale': Math.abs(this.fakeUD) * 7});
}
this.recenterPoints();
} else {
this.moveRL = this.fakeRL;
if (lander == 'RIdle') {
if (canThud) {
makeThud(this._x, Math.abs(this.fakeUD) * 10);
}
if (getFriction(this._x, this._y)) {
inkSplat(this._x, this._y, this._xscale, this._rotation);
inkSplat(this._x, this._y, -this._xscale, this._rotation);
} else {
v2 = ELayer.getNextHighestDepth();
ELayer.attachMovie('smokeFX', 'smokeFX' + v2, v2, {'_x': this._x, '_y': this._y, '_rotation': this._rotation, '_xscale': Math.abs(this.fakeUD) * 7, '_yscale': Math.abs(this.fakeUD) * 7});
}
}
this.recenterPoints();
this.gotoAndStop(lander);
}
this.InShell._rotation = this.InShellrotation + -this._rotation;
};
JumpLand = function (hurt, anchor, breakIt, landOn, lander) {
if (hurt == undefined) {
hurt = false;
}
if (landOn == undefined) {
landOn = 'rest';
}
if (breakIt == undefined) {
breakIt = false;
}
this.canPlatLedge = false;
this.effingSlide = 0;
if (this.wallJumped) {
this.wallJumped = false;
}
this.wallJumpFell = false;
if (this.moveUD < 2) {
this.moveUD = 2;
}
this._rotation = -Math.atan2(this.moveRL, this.moveUD) / 0.0174532925199433;
this.jumprot = this._rotation + 90;
this.nowSpeed = Math.sqrt(this.moveRL * this.moveRL + this.moveUD * this.moveUD);
this.crazyLander(landOn);
if (Math.abs(this._rotation) < 100) {
var v2 = 0;
while (v2 < 100) {
if (!testAll(this._x + this.RAnchx() + this.UDx() - Math.cos((this._rotation + 90) * 0.0174532925199433), this._y + this.RAnchy() + this.UDy() - Math.sin((this._rotation + 90) * 0.0174532925199433)) && !testAll(this._x + this.LAnchx() + this.UDx() - Math.cos((this._rotation + 90) * 0.0174532925199433), this._y + this.LAnchy() + this.UDy() + Math.sin((this._rotation + 90) * 0.0174532925199433))) {
this._x += Math.cos((this._rotation + 90) * 0.0174532925199433);
this._y += Math.sin((this._rotation + 90) * 0.0174532925199433);
} else {
break;
}
++v2;
}
if (Math.abs(this._rotation) < 1) {
this._rotation = 0;
}
if (InteractLayer.isDeadLolz.hitTest(this._x + this.RAnchx() + this.UDx(), this._y + this.RAnchy() + this.UDy(), true) || InteractLayer.isDeadLolz.hitTest(this._x + this.LAnchx() + this.UDx(), this._y + this.LAnchy() + this.UDy(), true)) {
this.Died();
return false;
}
if (getFriction(this._x, this._y)) {
inkSplat(this._x, this._y, this._xscale, this._rotation);
inkSplat(this._x, this._y, -this._xscale, this._rotation);
}
if (hurt) {
this.moveRL = 0;
this.moveUD = 0;
if (Health == 0) {
this.gotoAndStop('Die');
return false;
} else {
this.gotoAndStop('FSGetUp');
}
} else {
this.RLFunc();
if (Key.isDown(40) && this.moveRL * this._xscale > -200 && Math.abs(this._rotation) < 15) {
this.moveRL = this.nowSpeed * (this._xscale / 100);
this.moveUD = 0;
this.gotoAndStop('DownSlide');
} else {
this.gorot = 2 * this._rotation - this.jumprot;
this.moveRL = this.nowSpeed * Math.cos((this.gorot - this._rotation) * 0.0174532925199433);
this.moveUD = 0;
this.hairRL = this.moveRL;
this.gelHair();
if (lander == 'slide') {
this.runtoslide = true;
this.gotoAndStop('Slide');
} else {
if (Math.abs(this.moveRL) > 5) {
if (Key.isDown(40)) {
if (this.moveRL * this._xscale > 0) {
this.gotoAndStop('DownSlide');
} else {
this.gotoAndStop('FSRoll');
}
} else {
if (this.RightIsDown() && this.moveRL > 0 || this.LeftIsDown() && this.moveRL < 0) {
if (this.moveRL * this._xscale > 0) {
this.gotoAndStop('RWalk');
this.CharStartup.gotoAndPlay(9);
} else {
this.gotoAndStop('Backpeddle');
this.Backpeddle.gotoAndPlay(5);
}
} else {
this.runtoslide = true;
this.gotoAndStop('Slide');
}
}
} else {
if (!getFriction(this._x, this._y)) {
v2 = ELayer.getNextHighestDepth();
ELayer.attachMovie('smokeFX', 'smokeFX' + v2, v2, {'_x': this._x, '_y': this._y, '_rotation': this._rotation});
}
this.gotoAndStop('Land');
}
}
}
}
} else {
this._x += this.moveRL;
this._y += this.moveUD;
this.WraptoGround(false, false, true);
if (hurt) {
this.moveUD = Math.abs(this.moveUD);
}
}
};
BonusPlatJumpLand = function () {
this.moveUD = 0;
this._rotation = 0;
delete aPlatz['aPlatz' + this.aPlatzOn].onEnterFrame;
this.onPlatOffset = this._x - aPlatz['aPlatz' + this.aPlatzOn]._x;
this._y = aPlatz['aPlatz' + this.aPlatzOn]._y;
if (aPlatz['aPlatz' + this.aPlatzOn].falling) {
aPlatz['aPlatz' + this.aPlatzOn].moving = true;
aPlatz['aPlatz' + this.aPlatzOn].onlyOnStand = false;
} else {
if (aPlatz['aPlatz' + this.aPlatzOn].onlyOnStand) {
aPlatz['aPlatz' + this.aPlatzOn].moving = true;
}
}
ELayer['aPlatzSmoke' + this.aPlatzOn].platMove.play();
if (hurt != undefined) {
if (Health == 0) {
this.gotoAndStop('Die');
} else {
this.gotoAndStop('FSGetUp');
}
} else {
if (Math.abs(this.moveRL) > 5) {
if (Key.isDown(40)) {
if (this.moveRL * this._xscale > 0) {
this.gotoAndStop('DownSlide');
} else {
this.gotoAndStop('FSRoll');
}
} else {
if (Math.abs(this.moveRL) > 18) {
this.TempStill = true;
}
this.runtoslide = true;
this.gotoAndStop('Slide');
}
} else {
this.gotoAndStop('Land');
}
}
};
BonusPlatFind = function () {
var v2 = 0;
while (aPlatz['aPlatz' + v2]._x != undefined) {
this.tempPlatX = aPlatz['aPlatz' + v2]._x;
this.tempPlatY = aPlatz['aPlatz' + v2]._y;
if (this._x + this.moveRL + this.spread > this.tempPlatX && this._x + this.moveRL - this.spread < this.tempPlatX + aPlatz['aPlatz' + v2]._xscale && this._y + aPlatz['aPlatz' + v2].smokeUD - 5 < this.tempPlatY && this._y + this.moveUD >= this.tempPlatY && this.moveUD - aPlatz['aPlatz' + v2].smokeUD > 0) {
this.aPlatzOn = v2;
return true;
}
++v2;
}
};
BonusPlatMove = function () {
if (!Paused) {
if (this.circling) {
this.rotOffset += this.accel;
this._x = this.anchorX + this.anchorDist * Math.sin(this.rotOffset * 0.0174532925199433);
this._y = this.anchorY + -this.anchorDist * Math.cos(this.rotOffset * 0.0174532925199433);
ELayer['aPlatzSmoke' + this.ID]._x = this._x;
ELayer['aPlatzSmoke' + this.ID]._y = this._y;
} else {
if (this.moving) {
if (this.absoluteRL < this.centerOffset) {
this.moveRL += this.accel;
}
if (this.absoluteRL > this.centerOffset) {
this.moveRL -= this.accel;
if (this.wrapBack) {
this._x = this.anchorX;
this._y = this.anchorY;
this.absoluteRL = 0;
}
}
if (Math.abs(this.moveRL) > this.maxSpeed) {
this.smokeRLUD = this.maxSpeed * (this.moveRL / Math.abs(this.moveRL));
} else {
this.smokeRLUD = this.moveRL;
}
if (Char.aPlatzOn != this.ID && this.onlyOnStand && Math.abs(this.absoluteRL) < Math.abs(this.smokeRLUD)) {
ELayer['aPlatzSmoke' + this.ID].platMove.gotoAndStop(1);
delete this.onEnterFrame;
}
this.absoluteRL += this.smokeRLUD;
this._x = this.originX + this.absoluteRL * Math.cos(this.rotOffset * 0.0174532925199433);
this._y = this.originY + this.absoluteRL * Math.sin(this.rotOffset * 0.0174532925199433);
ELayer['aPlatzSmoke' + this.ID]._x = this._x;
ELayer['aPlatzSmoke' + this.ID]._y = this._y;
}
}
this.smokeUD = this._y - this.oldy;
this.oldy = this._y;
}
};
BonusPlatFall = function () {
if (!Paused) {
if (this.moveUD > 0) {
this.tempUD = this.moveUD;
} else {
this.tempUD = 0;
}
if (testAll(this._x, this._y + 45 + this.tempUD) || testAll(this._x + this._width, this._y + 45 + this.tempUD)) {
for (;;) {
if (!(!testAll(this._x, this._y + 46) && !testAll(this._x + this._width, this._y + 46))) break;
++this._y;
}
this.moveUD = 0;
this.onEnterFrame = BonusPlatRise;
} else {
if (this.moveUD < 25) {
this.moveUD += 0.5;
}
this.smokeUD = this.moveUD;
this._y += this.moveUD;
ELayer['aPlatzSmoke' + this.ID]._x = this._x;
ELayer['aPlatzSmoke' + this.ID]._y = this._y;
}
}
};
BonusPlatRise = function () {
if (!Paused) {
if (Math.abs(this._y + this.moveUD - this.originY) < 1) {
this.moveUD = 0;
this._y = this.originY;
delete this.onEnterFrame;
this.falling = true;
this.moving = true;
} else {
if (Math.abs(this.originY - (this._y + this.moveUD)) / 10 < 10) {
this.moveUD = (this.originY - (this._y + this.moveUD)) / 10;
} else {
if (this.moveUD > -10) {
this.moveUD -= 0.25;
}
}
this.smokeUD = this.moveUD;
this._y += this.moveUD;
ELayer['aPlatzSmoke' + this.ID]._x = this._x;
ELayer['aPlatzSmoke' + this.ID]._y = this._y;
}
}
};
HeadLand = function (ex, ey, eRL, eUD) {
HeadHit.setPan((_x + this._x) / 3.600000000000001 - 100);
HeadHit.start();
this.jumprot = RotFixer(-Math.atan2(eRL, eUD) / 0.0174532925199433 + 90);
this.nowSpeed = Math.sqrt(eRL * eRL + eUD * eUD);
var v2 = 0;
while (v2 < this.nowSpeed) {
if (!testAllBut(this._x + ex, this._y + ey)) {
this._x += Math.cos(this.jumprot * 0.0174532925199433);
this._y += Math.sin(this.jumprot * 0.0174532925199433);
}
++v2;
}
if (InteractLayer.isDeadLolz.hitTest(this._x + 45 * Math.cos((this._rotation - 90) * 0.0174532925199433) + Math.cos(this.jumprot * 0.0174532925199433), this._y + 50 * Math.sin((this._rotation - 90) * 0.0174532925199433) + Math.sin(this.jumprot * 0.0174532925199433))) {
this.Died();
return false;
}
this.groundrot = FindRot(this.jumprot - 90, ex, ey);
this.nowSpeed *= 0.9000000000000002;
this.gorot = 2 * this.groundrot - this.jumprot;
this.moveRL = this.nowSpeed * Math.cos(this.gorot * 0.0174532925199433);
this.moveUD = this.nowSpeed * Math.sin(this.gorot * 0.0174532925199433);
if (Math.abs(this.groundrot - this.jumprot) < 10) {
this._x += 50 * Math.cos((this._rotation - 90) * 0.0174532925199433);
this._y += 50 * Math.sin((this._rotation - 90) * 0.0174532925199433);
this._rotation += 180;
this.WraptoGround(true, true);
this.gotoAndStop('FSRoll');
} else {
this._x += this.moveRL;
this._y += this.moveUD;
if (Math.abs(this.jumprot + 90) > 90) {
this.gotoAndStop('FrontSlam');
}
}
};
FindRot = function (jumprot, ex, ey) {
RotFind._x = ex;
RotFind._y = ey;
RotFind._rotation = jumprot;
var v1 = 0;
while (v1 < 100) {
if (!testAll(RotFind._x + RotFind.RAnchx() + RotFind.UDx() + Math.cos((RotFind._rotation + 90) * 0.0174532925199433), RotFind._y + RotFind.RAnchy() + RotFind.UDy() + Math.sin((RotFind._rotation + 90) * 0.0174532925199433)) && !testAll(RotFind._x + RotFind.LAnchx() + RotFind.UDx() + Math.cos((RotFind._rotation + 90) * 0.0174532925199433), RotFind._y + RotFind.LAnchy() + RotFind.UDy() + Math.sin((RotFind._rotation + 90) * 0.0174532925199433))) {
RotFind._x += Math.cos((RotFind._rotation + 90) * 0.0174532925199433);
RotFind._y += Math.sin((RotFind._rotation + 90) * 0.0174532925199433);
} else {
break;
}
++v1;
}
RotFind.WraptoGround(true, true, true);
return RotFind._rotation;
};
RLx = function (ex) {
return ex * Math.cos(this._rotation * 0.0174532925199433);
};
RLy = function (ey) {
return ey * Math.sin(this._rotation * 0.0174532925199433);
};
UDx = function () {
return Math.cos((this._rotation + 90) * 0.0174532925199433);
};
UDy = function () {
return Math.sin((this._rotation + 90) * 0.0174532925199433);
};
WasSix = function () {
return Math.abs(this.moveRL) / 10 + 3;
};
LAnchx = function () {
return this.spread * Math.cos((this._rotation - 180) * 0.0174532925199433);
};
LAnchy = function () {
return this.spread * Math.sin((this._rotation - 180) * 0.0174532925199433);
};
RAnchx = function () {
return this.spread * Math.cos(this._rotation * 0.0174532925199433);
};
RAnchy = function () {
return this.spread * Math.sin(this._rotation * 0.0174532925199433);
};
testAll = function (ex, ey) {
if (tehground.hitTest(ex, ey, true)) {
return true;
} else {
if (tehwallz.hitTest(ex, ey, true)) {
return true;
} else {
if (tehplatformz.hitTest(ex, ey, true)) {
return true;
} else {
return false;
}
}
}
};
testAllBut = function (ex, ey) {
if (tehwallz.hitTest(ex, ey, true)) {
return true;
} else {
if (tehground.hitTest(ex, ey, true)) {
return true;
} else {
return false;
}
}
};
testWallz = function (ex, ey) {
if (tehwallz.hitTest(ex, ey, true)) {
return true;
} else {
return false;
}
};
testPlatz = function (ex, ey) {
if (tehplatformz.hitTest(ex, ey, true)) {
return true;
} else {
return false;
}
};
testSpringBoard = function () {
if (SBLayer.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || SBLayer.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
this.Clung = 0;
var v3 = 0;
while (SBLayer['SpringBoard' + v3]._x != undefined) {
if (SBLayer['SpringBoard' + v3].hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) || SBLayer['SpringBoard' + v3].hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true)) {
this.gotoAndStop('ClingBoard');
SBLayer['SpringBoard' + v3]._y = this._y + this.moveUD;
SBLayer['SpringBoard' + v3].moveRL += this.moveRL / 2;
SBLayer['SpringBoard' + v3].moveUD += this.moveUD;
SBLayer['SpringBoard' + v3].flingIt = this.moveUD;
this._rotation = SBLayer['SpringBoard' + v3]._rotation;
_root.Foreground['SpringBoard' + v3 + 'Smoke']._y = this._y + this.moveUD;
SBLayer['SpringBoard' + v3].onEnterFrame = function () {
++this.moveUD;
this.moveRL += (this.anchorX - this._x) / 60 - this.moveRL / Math.abs(this.moveRL) / 5;
this.amoveUD = (this.anchorY - this._y) / 20 - this.moveUD / Math.abs(this.moveUD) / 5;
this.moveUD += this.amoveUD;
this._x += this.moveRL;
this._y += this.moveUD;
Char._x += this.moveRL;
Char._y += this.moveUD;
_root.Foreground[this._name + 'Smoke']._x = this._x;
_root.Foreground[this._name + 'Smoke']._y = this._y;
if (this.amoveUD > -1 && this.moveUD < 0) {
Char.moveRL = this.moveRL / 2;
Char.JumpFunc(-this.moveUD);
this.onEnterFrame = SpringBoardLeft;
}
if (!Key.isDown(Char.Jump)) {
Char.SisDown = false;
}
if (Key.isDown(Char.Jump)) {
if (!Char.SisDown && -this.moveUD / 2 > -5) {
Char.moveRL = this.moveRL / 2;
Char.JumpFunc(-this.moveUD / 2 + 15);
this.moveUD += 15;
this.onEnterFrame = SpringBoardLeft;
}
Char.SisDown = true;
}
};
SBLayer['SpringBoard' + v3].onEnterFrame;
}
++v3;
}
return true;
} else {
return false;
}
};
SpringBoardLeft = function () {
this.moveRL += (this.anchorX - this._x) / 60;
this.moveUD += (this.anchorY - this._y) / 20;
this.moveRL -= this.moveRL / Math.abs(this.moveRL) / 5;
this.moveUD -= this.moveUD / Math.abs(this.moveUD) / 5;
this._x += this.moveRL;
this._y += this.moveUD;
_root.Foreground[this._name + 'Smoke']._x = this._x;
_root.Foreground[this._name + 'Smoke']._y = this._y;
if (Math.abs(this.moveUD) < 1 && Math.abs(this.anchorY - this._y) < 1) {
this.moveRL = 0;
this.moveUD = 0;
delete this.onEnterFrame;
}
};
SimpleRLFunc = function () {
this.WallHitLeft = false;
this.WallHitRight = false;
if (tehwallz.hitTest(this._x - (this.spread + 3) + this.RLx(this.moveRL), this._y - 20, true) || this.Standing() && tehwallz.hitTest(this._x - (this.spread + 3) + this.RLx(this.moveRL), this._y - 50, true)) {
this.WallHitLeft = true;
}
if (tehwallz.hitTest(this._x + (this.spread + 3) + this.RLx(this.moveRL), this._y - 20, true) || this.Standing() && tehwallz.hitTest(this._x + (this.spread + 3) + this.RLx(this.moveRL), this._y - 50, true)) {
this.WallHitRight = true;
}
if (this.WallHitLeft && !this.WallHitRight) {
for (;;) {
if (!(!tehwallz.hitTest(this._x - (this.spread + 3) + this.RLx(this.moveRL), this._y - 20, true) && (!tehwallz.hitTest(this._x - (this.spread + 3) + this.RLx(this.moveRL), this._y - 50, true) || !this.Standing()))) break;
this._x += this.RLx(-1);
this._y += this.RLy(-1);
}
for (;;) {
if (!(tehwallz.hitTest(this._x - (this.spread + 2) + this.RLx(this.moveRL), this._y - 20, true) || tehwallz.hitTest(this._x - (this.spread + 2) + this.RLx(this.moveRL), this._y - 50, true) && this.Standing())) break;
this._x += this.RLx(1);
this._y += this.RLy(1);
}
if (this.RLy(this.moveRL) < -6) {
var v2 = this.RLy(this.moveRL);
this.moveRL = 0;
this.JumpFunc(0);
this.moveUD = v2;
this.JumpGuide();
return 'wallJump';
}
return 'Wall';
} else {
if (this.WallHitRight && !this.WallHitLeft) {
for (;;) {
if (!(!tehwallz.hitTest(this._x + (this.spread + 3) + this.RLx(this.moveRL), this._y - 20, true) && (!tehwallz.hitTest(this._x + (this.spread + 3) + this.RLx(this.moveRL), this._y - 50, true) || !this.Standing()))) break;
this._x += this.RLx(1);
this._y += this.RLy(1);
}
for (;;) {
if (!(tehwallz.hitTest(this._x + (this.spread + 2) + this.RLx(this.moveRL), this._y - 20, true) || tehwallz.hitTest(this._x + (this.spread + 2) + this.RLx(this.moveRL), this._y - 50, true) && this.Standing())) break;
this._x += this.RLx(-1);
this._y += this.RLy(-1);
}
if (this.RLy(this.moveRL) < -6) {
var v2 = this.RLy(this.moveRL);
this.moveRL = 0;
this.JumpFunc(0);
this.moveUD = v2;
this.JumpGuide();
return 'wallJump';
}
return 'Wall';
}
}
this._x += this.RLx(this.moveRL);
this._y += this.RLy(this.moveRL);
if (tehhangz.hitTest(this._x + this.moveRL, this._y + this.moveUD + 6, true)) {
while (!tehhangz.hitTest(this._x + this.moveRL, this._y + this.moveUD + 2, true)) {
++this._y;
}
while (tehhangz.hitTest(this._x + this.moveRL, this._y + this.moveUD, true)) {
--this._y;
}
if (!tehhangz.hitTest(this._x + this.moveRL + 20, this._y + this.moveUD + 6, true) || !tehhangz.hitTest(this._x + this.moveRL - 20, this._y + this.moveUD + 6, true)) {
this.temp = 'Edge';
} else {
this.temp = 'Gravy';
}
} else {
this.temp = this.WraptoGround(true, false, true);
}
this.recenterPoints();
if (this.temp == 'Fall') {
if (this.groundLandProtect > -1) {
this.groundLandProtect = 2;
}
this.JumpFunc(0);
}
if (this.temp == false) {
return 'Gravy';
} else {
if (this.WallHitLeft || this.WallHitRight) {
return 'Wall';
} else {
return this.temp;
}
}
};
RLFunc = function () {
this.oX = this._x;
this.oY = this._y;
if (InteractLayer.hitTest(this._x, this._y, true)) {
var v2 = 0;
while (InteractLayer['swift' + v2]._x != undefined) {
if (InteractLayer['swift' + v2].hitTest(this._x, this._y, true) && InteractLayer['swift' + v2]._currentframe == 1 && !InteractLayer['swift' + v2].hitTest(this._x - this.moveRL, this._y, true)) {
this.gotoAndStop('Slide');
this._xscale = (InteractLayer['swift' + v2].boost / Math.abs(InteractLayer['swift' + v2].boost)) * 100;
this.moveRL = InteractLayer['swift' + v2].boost;
}
++v2;
}
if (Key.isDown(38)) {
v2 = 0;
while (InteractLayer['Door' + v2] != undefined) {
if (InteractLayer['Door' + v2].hitTest(this._x, this._y, true) && InteractLayer['Door' + v2]._currentframe == 2) {
this.moveRL = 0;
this.doorInto = v2;
this.gotoAndStop('DoorIn');
return 'door';
}
++v2;
}
}
}
this.WallHitLeft = false;
this.WallHitRight = false;
this.tempRrL = this.RLx(this.moveRL);
this.tempLrL = this.RLx(this.moveRL);
if (this.moveRL > 0) {
if (this.tempLrL > this.spread) {
this.tempLrL = this.spread;
}
} else {
if (this.moveRL < 0) {
if (this.tempRrL < -this.spread) {
this.tempRrL = -this.spread;
}
}
}
if (tehwallz.hitTest(this._x - (this.spread + 3) + this.tempLrL, this._y - 5, true) && tehwallz.hitTest(this._x - (this.spread + 3) + this.tempLrL, this._y - 10, true) || this.Standing() && tehwallz.hitTest(this._x - (this.spread + 3) + this.tempLrL, this._y - 50, true)) {
this.WallHitLeft = true;
}
if (tehwallz.hitTest(this._x + this.spread + 3 + this.tempRrL, this._y - 5, true) && tehwallz.hitTest(this._x + this.spread + 3 + this.tempRrL, this._y - 10, true) || this.Standing() && tehwallz.hitTest(this._x + this.spread + 3 + this.tempRrL, this._y - 50, true)) {
this.WallHitRight = true;
}
if (this.WallHitLeft && !this.WallHitRight) {
if (InteractLayer.isDeadLolz.hitTest(this._x, this._y, true) || InteractLayer.isDeadLolz.hitTest(this._x, this._y - 45, true)) {
this.Died();
return false;
}
for (;;) {
if (!(!tehwallz.hitTest(this._x - (this.spread + 3), this._y - 10, true) && (!tehwallz.hitTest(this._x - (this.spread + 3), this._y - 50, true) || !this.Standing()))) break;
--this._x;
}
for (;;) {
if (!(tehwallz.hitTest(this._x - (this.spread + 2), this._y - 10, true) || tehwallz.hitTest(this._x - (this.spread + 2), this._y - 50, true) && this.Standing())) break;
++this._x;
}
if (this.RLy(this.moveRL) < -6 || Math.abs(this._rotation) > 90) {
var v3 = this.RLy(this.moveRL);
this.moveRL = 0;
this.JumpFunc(0);
this.moveUD = v3;
this.JumpGuide();
this.wallJumpFell = true;
return 'wallJump';
}
if (this._currentframe == 12) {
this.moveRL = -this.moveRL / 2;
} else {
this.moveRL = 0;
if (Key.isDown(37)) {
this._xscale = -100;
this.gotoAndStop('WallStop');
}
}
if (this.aPlatzOn > -1) {
if (aPlatz['aPlatz' + this.aPlatzOn].moving) {
aPlatz['aPlatz' + this.aPlatzOn].BonusPlatMove();
}
this.onPlatOffset = this._x - aPlatz['aPlatz' + this.aPlatzOn]._x;
this.onPlatOffset += this.moveRL;
this.tempX = aPlatz['aPlatz' + this.aPlatzOn]._x;
this._x = this.tempX + this.onPlatOffset;
this._y = aPlatz['aPlatz' + this.aPlatzOn]._y;
if (this._x + this.moveRL + this.spread > this.tempX && this._x + this.moveRL - this.spread < this.tempX + aPlatz['aPlatz' + this.aPlatzOn]._xscale) {
} else {
this.JumpFunc(0);
}
}
this.temp = 'Wall';
this.hairRL = this._x - this.oX;
this.hairUD = this._y - this.oY;
return this.temp;
}
if (this.WallHitRight && !this.WallHitLeft) {
if (InteractLayer.isDeadLolz.hitTest(this._x, this._y, true) || InteractLayer.isDeadLolz.hitTest(this._x, this._y - 45, true)) {
this.Died();
return false;
}
for (;;) {
if (!(!tehwallz.hitTest(this._x + (this.spread + 3), this._y - 10, true) && (!tehwallz.hitTest(this._x + (this.spread + 3), this._y - 50, true) || !this.Standing()))) break;
this._x += this.RLx(1);
this._y += this.RLy(1);
}
for (;;) {
if (!(tehwallz.hitTest(this._x + (this.spread + 2), this._y - 10, true) || tehwallz.hitTest(this._x + (this.spread + 2), this._y - 50, true) && this.Standing())) break;
this._x += this.RLx(-1);
this._y += this.RLy(-1);
}
if (this.RLy(this.moveRL) < -6 || Math.abs(this._rotation) > 90) {
v3 = this.RLy(this.moveRL);
this.moveRL = 0;
this.JumpFunc(0);
this.moveUD = v3;
this.JumpGuide();
this.wallJumpFell = true;
return 'wallJump';
}
if (this._currentframe == 12) {
this.moveRL = -this.moveRL / 2;
} else {
this.moveRL = 0;
if (Key.isDown(39)) {
this._xscale = 100;
this.gotoAndStop('WallStop');
}
}
if (this.aPlatzOn > -1) {
if (aPlatz['aPlatz' + this.aPlatzOn].moving) {
aPlatz['aPlatz' + this.aPlatzOn].BonusPlatMove();
}
this.onPlatOffset = this._x - aPlatz['aPlatz' + this.aPlatzOn]._x;
this.onPlatOffset += this.moveRL;
this.tempX = aPlatz['aPlatz' + this.aPlatzOn]._x;
this._x = this.tempX + this.onPlatOffset;
this._y = aPlatz['aPlatz' + this.aPlatzOn]._y;
if (this._x + this.moveRL + this.spread > this.tempX && this._x + this.moveRL - this.spread < this.tempX + aPlatz['aPlatz' + this.aPlatzOn]._xscale) {
} else {
this.JumpFunc(0);
}
}
this.temp = 'Wall';
this.hairRL = this._x - this.oX;
this.hairUD = this._y - this.oY;
return this.temp;
}
if (this.aPlatzOn > -1) {
if (aPlatz['aPlatz' + this.aPlatzOn].moving) {
aPlatz['aPlatz' + this.aPlatzOn].BonusPlatMove();
}
this.onPlatOffset += this.moveRL;
this.tempX = aPlatz['aPlatz' + this.aPlatzOn]._x;
this._x = this.tempX + this.onPlatOffset;
this._y = aPlatz['aPlatz' + this.aPlatzOn]._y;
if (this._x + this.moveRL + this.spread > this.tempX && this._x + this.moveRL - this.spread < this.tempX + aPlatz['aPlatz' + this.aPlatzOn]._xscale) {
} else {
this.JumpFunc(0);
}
} else {
if (this.moveRL > 35) {
this._x += this.RLx(35);
this._y += this.RLy(35);
} else {
if (this.moveRL < -35) {
this._x += this.RLx(-35);
this._y += this.RLy(-35);
} else {
this._x += this.RLx(this.moveRL);
this._y += this.RLy(this.moveRL);
}
}
if (this.CheckHead()) {
this.WraptoGround(true, true);
this.temp = 'Stuck';
} else {
this.temp = this.WraptoGround(true, false);
}
}
if (this.temp == 'Fall') {
if (Math.abs(this._rotation) > 70) {
if (Math.abs(this._rotation) > 140) {
this.fliprot = -0.1;
} else {
this.fliprot = -0.05;
}
this.fliprot *= this._xscale;
} else {
this.fliprot = 0;
}
this.tempRot = RotToAccel(this._rotation) * 45;
if (this.tempRot * this.moveRL < 0 && Math.abs(this.tempRot) > 5) {
this.tempFloat = Math.round(this.moveRL * this.moveRL / 60 - (Math.abs(this.tempRot) - 30) / 10);
} else {
this.tempFloat = 0;
}
this.moveRL *= 0.9000000000000002;
this.JumpFunc(0);
if (this.tempFloat > 0) {
this.FloatUp = this.tempFloat;
this.FloatStill = true;
this.fromFloatY = this._y;
}
}
if (this.temp == 'Edge') {
this.hairRL = this._x - this.oX;
this.hairUD = this._y - this.oY;
return this.temp;
}
if (this.WallHitLeft || this.WallHitRight) {
this.temp = 'Wall';
this.hairRL = this._x - this.oX;
this.hairUD = this._y - this.oY;
return this.temp;
}
this.temp = 'Gravy';
this.hairRL = this._x - this.oX;
this.hairUD = this._y - this.oY;
return this.temp;
};
RotToAccel = function (rot) {
if (rot > 90) {
return (180 - rot) / 45;
} else {
if (rot < -90) {
return (-180 - rot) / 45;
} else {
return rot / 45;
}
}
};
StandingOnTheLedge = function () {
if (_root.tehwallz.hitTest(this._x + this.RAnchx(), this._y + this.RAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx() * 2, this._y + this.LAnchy() * 2 + 20) || _root.tehplatformz.hitTest(this._x + this.LAnchx(), this._y + this.LAnchy() + 20, true) && !_root.testAll(this._x + this.LAnchx() * 4, this._y + this.LAnchy() * 4 + 20)) {
return true;
}
this.LAnchx();
this._y + this.LAnchy() * 2 + 20;
if (_root.tehwallz.hitTest(this._x + true && !_root.testAll(this._x + this.RAnchx() * 2, this._y + this.RAnchy() * 2 + 20)) || _root.tehplatformz.hitTest(this._x + this.LAnchx() * 2, this._y + this.LAnchy() * 2 + 20, true) && !_root.testAll(this._x + this.RAnchx() * 4, this._y + this.RAnchy() * 4 + 20)) {
return true;
}
};
WraptoGround = function (pull, anchor, breakIt) {
this.temp = false;
if (testAll(this._x + this.RAnchx() + this.UDx() * this.WasSix(), this._y + this.RAnchy() + this.UDy() * this.WasSix()) && testAll(this._x + this.LAnchx() + this.UDx() * this.WasSix(), this._y + this.LAnchy() + this.UDy() * this.WasSix()) && pull || anchor) {
var v4 = 0;
while (v4 < this.nowSpeed) {
if (!testAll(this._x + this.RAnchx() + this.UDx(), this._y + this.RAnchy() + this.UDy()) && !testAll(this._x + this.LAnchx() + this.UDx(), this._y + this.LAnchy() + this.UDy())) {
this._x += Math.cos((this._rotation + 90) * 0.0174532925199433);
this._y += Math.sin((this._rotation + 90) * 0.0174532925199433);
}
++v4;
}
var v5 = 0;
for (;;) {
if (!(!testAll(this._x + this.RAnchx() + this.UDx(), this._y + this.RAnchy() + this.UDy()) || !testAll(this._x + this.LAnchx() + this.UDx(), this._y + this.LAnchy() + this.UDy()))) break;
if (!testAll(this._x + this.RAnchx() + this.UDx(), this._y + this.RAnchy() + this.UDy())) {
this.oRAnchx = this.RAnchx();
this.oRAnchy = this.RAnchy();
++this._rotation;
var v2 = this.RAnchx() - this.oRAnchx;
var v3 = this.RAnchy() - this.oRAnchy;
this._x += v2;
this._y += v3;
v5 += Math.sqrt(v2 * v2 + v3 * v3);
}
if (!testAll(this._x + this.LAnchx() + this.UDx(), this._y + this.LAnchy() + this.UDy())) {
this.oLAnchx = this.LAnchx();
this.oLAnchy = this.LAnchy();
--this._rotation;
v2 = this.LAnchx() - this.oLAnchx;
v3 = this.LAnchy() - this.oLAnchy;
this._x += v2;
this._y += v3;
v5 += Math.sqrt(v2 * v2 + v3 * v3);
}
if (v5 > 10 && breakIt) {
trace(this + 'broke');
} else {}
}
} else {
if (testWallz(this._x + this.RAnchx() + this.UDx() * this.WasSix(), this._y + this.RAnchy() + this.UDy() * this.WasSix())) {
this._rotation = 0;
if (this._xscale < 0) {
this.temp = 'rEdge';
} else {
this.temp = 'rBackEdge';
}
} else {
if (testWallz(this._x + this.LAnchx() + this.UDx() * this.WasSix(), this._y + this.LAnchy() + this.UDy() * this.WasSix())) {
this._rotation = 0;
if (this._xscale > 0) {
this.temp = 'lEdge';
} else {
this.temp = 'lBackEdge';
}
} else {
if (testPlatz(this._x + this.RAnchx() + this.UDx() * this.WasSix(), this._y + this.RAnchy() + this.UDy() * this.WasSix())) {
if (this._xscale < 0) {
this.temp = 'rEdge';
} else {
this.temp = 'rBackEdge';
}
} else {
if (testPlatz(this._x + this.LAnchx() + this.UDx() * this.WasSix(), this._y + this.LAnchy() + this.UDy() * this.WasSix())) {
if (this._xscale > 0) {
this.temp = 'lEdge';
} else {
this.temp = 'lBackEdge';
}
} else {
this.temp = 'Fall';
}
}
}
}
}
for (;;) {
if (!(testAll(this._x + this.RAnchx(), this._y + this.RAnchy()) && testAll(this._x + this.LAnchx(), this._y + this.LAnchy()))) break;
this._x += Math.cos((this._rotation - 90) * 0.0174532925199433) / 10;
this._y += Math.sin((this._rotation - 90) * 0.0174532925199433) / 10;
}
for (;;) {
if (!(testAll(this._x + this.RAnchx(), this._y + this.RAnchy()) || testAll(this._x + this.LAnchx(), this._y + this.LAnchy()))) break;
if (testAll(this._x + this.RAnchx(), this._y + this.RAnchy())) {
this.oRAnchx = this.RAnchx();
this.oRAnchy = this.RAnchy();
--this._rotation;
this._x += this.RAnchx() - this.oRAnchx;
this._y += this.RAnchy() - this.oRAnchy;
}
if (testAll(this._x + this.LAnchx(), this._y + this.LAnchy())) {
this.oLAnchx = this.LAnchx();
this.oLAnchy = this.LAnchy();
++this._rotation;
this._x += this.LAnchx() - this.oLAnchx;
this._y += this.LAnchy() - this.oLAnchy;
}
}
return this.temp;
};
crazyLander = function (landOn) {
if (landOn == 'platBoth') {
var v2 = 0;
while (v2 < 100) {
if (!tehplatformz.hitTest(this._x + this.RAnchx() + this.moveRL, this._y + this.RAnchy() + this.moveUD, true) && !tehplatformz.hitTest(this._x + this.RAnchx() + 5, this._y + this.RAnchy() + this.moveUD + 30, true)) {
--this._x;
} else {
if (!tehplatformz.hitTest(this._x + this.LAnchx() + this.moveRL, this._y + this.LAnchy() + this.moveUD, true) && !tehplatformz.hitTest(this._x + this.LAnchx() - 5, this._y + this.LAnchy() + this.moveUD + 30, true)) {
++this._x;
} else {
break;
}
}
++v2;
}
this._rotation = FindRot(0, this._x + this.moveRL, this._y - 15);
} else {
if (landOn == 'platRight') {
var v2 = 0;
while (v2 < 100) {
if (!tehplatformz.hitTest(this._x + this.RAnchx() - 5, this._y + this.RAnchy() + this.moveUD, true) && !tehplatformz.hitTest(this._x + this.RAnchx() - 5, this._y + this.RAnchy() + this.moveUD + 30, true)) {
++this._x;
} else {
break;
}
++v2;
}
this._rotation = FindRot(0, this._x + this.RAnchx() + this.moveRL + 30, this._y + this.RAnchy() - 15);
} else {
if (landOn == 'platLeft') {
var v2 = 0;
while (v2 < 100) {
if (!tehplatformz.hitTest(this._x + this.LAnchx() + 5, this._y + this.LAnchy() + this.moveUD, true) && !tehplatformz.hitTest(this._x + this.LAnchx() + 5, this._y + this.LAnchy() + this.moveUD + 30, true)) {
--this._x;
} else {
break;
}
++v2;
}
this._rotation = FindRot(0, this._x + this.LAnchx() + this.moveRL - 30, this._y + this.LAnchy() - 15);
} else {
if (landOn == 'wallBoth') {
this._rotation = 0;
} else {
if (landOn == 'wallRight') {
this._rotation = 0;
var v2 = 0;
while (v2 < 100) {
if (!tehwallz.hitTest(this._x + this.RAnchx() - 5, this._y + this.RAnchy() + this.moveUD + 10, true)) {
++this._x;
} else {
break;
}
++v2;
}
} else {
if (landOn == 'wallLeft') {
this._rotation = 0;
var v2 = 0;
while (v2 < 100) {
if (!tehwallz.hitTest(this._x + this.LAnchx() + 5, this._y + this.LAnchy() + this.moveUD + 10, true)) {
--this._x;
} else {
break;
}
++v2;
}
} else {
if (landOn == 'ground') {
this._rotation = FindRot(this._rotation, this._x, this._y);
this.WraptoGround(true, true, true);
} else {
trace(landOn);
}
}
}
}
}
}
}
};
RotFixer = function (rot) {
RotFix._rotation = rot;
return RotFix._rotation;
};
PwnBaddies = function () {
if (BLayer.hitTest(this._x + this.moveRL, this._y + this.moveUD, true)) {
var v2 = 0;
while (v2 < maxBaddies) {
if (BLayer['Baddie' + v2].hitTest(this._x + this.moveRL, this._y + this.moveUD, true) && BLayer['Baddie' + v2]._currentframe != 11) {
BadStomp.setPan((_x + this._x) / 3.600000000000001 - 100);
BadStomp.start();
if (BLayer['Baddie' + v2]._currentframe != 14) {
BLayer['Baddie' + v2].gotoAndStop('die');
}
var v4 = this.centerX - BLayer['Baddie' + v2]._x;
var v3 = this.centerY - BLayer['Baddie' + v2]._y;
var v6 = Math.sqrt(v4 * v4 + v3 * v3);
var v5 = Math.sqrt(this.moveRL * this.moveRL + this.moveUD * this.moveUD);
this.tempRL = v4 * (v5 / v6);
this.tempUD = v3 * (v5 / v6);
if (Math.abs(this.tempRL) < 10) {
this.tempRL = (this.tempRL / Math.abs(this.tempRL)) * 10;
}
if (Math.abs(this.tempUD) < 10) {
this.tempUD = -10;
}
BLayer['Baddie' + v2].moveRL = -this.tempRL * 1.5;
BLayer['Baddie' + v2].moveUD = -Math.abs(this.tempUD) * 1.5;
this.JumpFunc(0);
this.moveRL = this.tempRL * 0.75;
this.moveUD = -Math.abs(this.tempUD) * 0.75;
if (BLayer['Baddie' + v2].Status == 'Angry') {
this.gotoAndStop('pwnedOut');
}
}
++v2;
}
}
};
CheckBaddieHit = function (badPwn) {
if (badPwn == undefined) {
badPwn = false;
}
if (badPwn) {
temp = this.CheckBaddiePwning();
} else {
temp = false;
}
if (!temp) {
if (_root.BLayer.hitTest(this._x + this.moveRL, this._y + this.moveUD, true) && !this.hurting) {
if (this.aBadOn == -1 && this.moveUD > 0) {
var v3 = 0;
while (BLayer['JumpPad' + v3] != undefined) {
if (BLayer['JumpPad' + v3].hitTest(this._x + this.moveRL, this._y + this.moveUD, true) && !BLayer['JumpPad' + v3].hitTest(this._x + this.moveRL, this._y - 2 - Math.abs(this.moveUD), true) && Math.abs(this._x - (BLayer['JumpPad' + v3]._x + BLayer['JumpPad' + v3]._yscale * 0.6 * Math.cos((BLayer['JumpPad' + v3]._rotation - 90) * 0.0174532925199433))) < 40 * (BLayer['JumpPad' + v3]._xscale / 100)) {
Char._rotation = BLayer['JumpPad' + v3]._rotation;
BLayer['JumpPad' + v3]._yscale = BLayer['JumpPad' + v3].Thrust * 4;
BLayer['JumpPad' + v3].spring = this.moveUD;
this.moveUD = 0;
delete BLayer['JumpPad' + v3].onEnterFrame;
this._x += this.moveRL;
this._y = BLayer['JumpPad' + v3]._y - BLayer['JumpPad' + v3]._yscale * 0.6;
this.aBadOn = v3;
this.gotoAndStop('BaddieLand');
this.JumpPadLanded = true;
return true;
}
++v3;
}
}
v3 = 0;
while (v3 < maxBaddies) {
if (BLayer['Baddie' + v3].hitTest(this._x + this.moveRL, this._y + this.moveUD, true) && BLayer['Baddie' + v3]._currentframe < 10) {
if (BLayer['Baddie' + v3].Status == 'Angry') {
if (this._alpha == 100) {
this.JumpFunc(12);
delete this.onEnterFrame;
if (this._x < BLayer['Baddie' + v3]._x) {
this.moveRL = -12;
} else {
this.moveRL = 12;
}
this.gotoAndStop('FrontSlam');
this.hurting = true;
HurtPants(34);
}
} else {
if (this.aBadOn > -1) {
BLayer['Baddie' + v3]._rotation = 0;
BLayer['Baddie' + v3].gotoAndStop('Hit');
BLayer['Baddie' + v3]._yscale = BLayer['Baddie' + v3].Thrust * 6;
BLayer['Baddie' + v3].spring = 20;
BLayer['Baddie' + v3].springy = 5;
BLayer['Baddie' + v3].yspringy = 4.5;
if (BLayer['Baddie' + v3]._x > this._x) {
BLayer['Baddie' + v3].moveRL = 10;
} else {
BLayer['Baddie' + v3].moveRL = -10;
}
BLayer['Baddie' + v3].onEnterFrame = stompedEnterFrame;
} else {
if (!BLayer['Baddie' + v3].hitTest(this._x + this.moveRL, this._y + BLayer['Baddie' + v3].moveUD - this.moveUD, true) && this.moveUD - BLayer['Baddie' + v3].moveUD > 0) {
BLayer['Baddie' + v3].onEnterFrame = function () {
if (Char._currentframe != 14) {
this.onEnterFrame = stompedEnterFrame;
}
};
BLayer['Baddie' + v3].gotoAndStop('Hit');
tempBounced = true;
Char.aBadOn = v3;
Char._y = BLayer['Baddie' + v3]._y - BLayer['Baddie' + v3]._yscale * 0.4;
BLayer['Baddie' + v3].spring = 20;
BadStomp.setPan((_x + this._x) / 3.600000000000001 - 100);
BadStomp.start();
this.gotoAndStop('BaddieLand');
this.JumpPadLanded = false;
} else {
if (this._alpha == 100) {
this.JumpFunc(12);
delete this.onEnterFrame;
if (this._x < BLayer['Baddie' + v3]._x) {
this.moveRL = -12;
} else {
this.moveRL = 12;
}
this.gotoAndStop('FrontSlam');
this.hurting = true;
BLayer['Baddie' + v3].gotoAndPlay('Attack');
HurtPants(34);
}
}
}
}
}
++v3;
}
}
}
};
CheckBaddiePwning = function () {
temp = false;
if (BLayer.hitTest(this._x + this.moveRL, this._y + this.moveUD, true)) {
var v2 = 0;
while (v2 < maxBaddies) {
if (BLayer['Baddie' + v2].hitTest(this._x + this.moveRL, this._y + this.moveUD, true) && BLayer['Baddie' + v2]._currentframe < 10) {
if (BLayer['Baddie' + v2].Status == 'Angry') {
var v3 = BLayer['Baddie' + v2]._x - this._x;
this.moveRL = -(v3 / Math.abs(v3)) * 15;
this.rollRL *= 0.5;
return false;
} else {
temp = true;
if (Math.abs(this._x - BLayer['Baddie' + v2]._x) < 20 + Math.abs(this.moveRL)) {
BadStomp.setPan((_x + this._x) / 3.600000000000001 - 100);
BadStomp.start();
BLayer['Baddie' + v2].moveRL = this.moveRL;
BLayer['Baddie' + v2].moveUD = -Math.abs(this.moveRL);
delete BLayer['Baddie' + v2].onEnterFrame;
BLayer['Baddie' + v2].gotoAndPlay('die');
this.moveRL = -(this.moveRL / Math.abs(this.moveRL)) * 2;
this.rollRL *= 0.5;
this.JumpFunc(15);
}
}
}
++v2;
}
}
return temp;
};
stompedEnterFrame = function () {
this.spring -= (this.Thrust * this.yspringy - this._yscale) / this.springy;
this._yscale -= this.spring;
this._xscale = (100 - this._yscale + 100) * (this._xscale / Math.abs(this._xscale));
if (this.spring < this.Thrust && this._yscale > this.Thrust * this.yspringy) {
this._xscale = (this._xscale / Math.abs(this._xscale)) * 100;
this._yscale = 100;
if (Char.moveRL > 0) {
this.moveRL = -5;
} else {
this.moveRL = 5;
}
if (this.dead) {
this.moveUD = -15;
this.downTime = 20;
this.gotoAndStop('deadjump');
} else {
this.moveUD = -10;
this.gotoAndStop('die');
}
delete this.onEnterFrame;
}
};
JumpPadReleasedEnterFrame = function () {
this.spring -= (this.Thrust * 4 - this._yscale) / 13;
this.spring *= 0.9400000000000001;
if (Math.abs(this.spring) < 0.02) {
this._yscale = this.Thrust * 4;
delete this.onEnterFrame;
}
this._yscale -= this.spring;
this.surface._yscale = 10000 * (1 / this._yscale);
};
CheckInteractHit = function (ex, ey) {
if (InteractLayer.hitTest(ex, ey, true)) {
var v3 = 0;
while (InteractLayer['Coin' + v3]._x != undefined) {
if (InteractLayer['Coin' + v3].hitTest(ex, ey, true) && InteractLayer['Coin' + v3]._currentframe == 1) {
InteractLayer['Coin' + v3].rot = (_root.Char.moveRL + _root.Char.moveUD + random(10)) * 2;
InteractLayer['Coin' + v3].gotoAndPlay('Hit');
CoinVoice.setPan((_x + InteractLayer['Coin' + v3]._x) / 3.600000000000001 - 100);
CoinVoice.start();
break;
}
++v3;
}
v3 = 0;
while (InteractLayer['object' + v3]._x != undefined) {
if (InteractLayer['object' + v3].hitTest(ex, ey, true)) {
InteractLayer['object' + v3].objectFunc();
break;
}
++v3;
}
if (this.moveUD > 0 && this._currentframe == 7) {
if (InteractLayer.Cannon.hitTest(ex, ey, true)) {
InteractLayer.Cannon.Barrel.play();
Char.gotoAndStop('Cannon');
Char.moveRL = 0;
Char.moveUD = 0;
Char._x = InteractLayer.Cannon._x;
Char._y = InteractLayer.Cannon._y;
Char._rotation = 0;
Char._xscale = 100;
}
}
return true;
}
};
Died = function () {
this._x = InteractLayer.Door0._x + InteractLayer.Door0._xscale / 2;
this._y = InteractLayer.Door0._y;
this._xscale = InteractLayer.Door0._xscale;
this._alpha = 50;
this._rotation = 0;
this.moveRL = 0;
this.moveUD = -10;
HurtPants(34);
if (tehwallz.movingWallz.gears.smokeRL != undefined) {
tehwallz.movingWallz.gears.smokeRL = 0;
delete tehwallz.movingWallz.gears.onEnterFrame;
}
Setup = _root[LevelLoaded + 'Setup'];
Setup();
delete Setup;
this.gotoAndStop('FrontSlam');
};
CheckHead = function () {
return tehwallz.hitTest(this._x + 50 * Math.cos((this._rotation - 90) * 0.0174532925199433), this._y + 50 * Math.sin((this._rotation - 90) * 0.0174532925199433), true) || tehground.hitTest(this._x + 50 * Math.cos((this._rotation - 90) * 0.0174532925199433), this._y + 50 * Math.sin((this._rotation - 90) * 0.0174532925199433), true);
};
Standing = function () {
return this._currentframe != 12 && this._currentframe != 11 && this._currentframe != 31;
};
mRL = function () {
if (this.moveRL == 0) {
return 0;
} else {
return this.moveRL / Math.abs(this.moveRL);
}
};
mUD = function () {
if (this.moveUD == 0) {
return 0;
} else {
return this.moveUD / Math.abs(this.moveUD);
}
};
FireScratch = function (ex, ey, escale, erot) {
attachMovie('ScratchBlast', 'ScratchBlast', 901);
ScratchBlast._x = ex;
ScratchBlast._y = ey;
ScratchBlast._xscale = escale;
i = BLayer.getNextHighestDepth();
BLayer.attachMovie('Scratch', ['Scratch' + i], i);
BLayer['Scratch' + i]._x = ex;
BLayer['Scratch' + i]._y = ey;
BLayer['Scratch' + i]._xscale = escale;
BLayer['Scratch' + i].lifespan = 400;
BLayer['Scratch' + i].onEnterFrame = function () {
if (_root.Paused) {
this.stop();
} else {
this.play();
this._x += this._xscale / 20;
--this.lifespan;
if (this.lifespan < 0) {
this.removeMovieClip();
}
if (Char.hitTest(this._x, this._y, true) && Char._alpha == 100) {
delete Char.onEnterFrame;
Char.JumpFunc(12);
HurtPants(34);
Char.gotoAndStop('FrontSlam');
Char.moveRL = this._xscale / 10;
this.removeMovieClip();
}
}
};
};
PlatMoveVacant = function () {
if (!_root.Paused) {
if (this._x > this.centerRL) {
this.moveRL -= this.speedRL;
} else {
this.moveRL += this.speedRL;
}
if (Math.abs(this.moveRL) > 10) {
this._x += 10 * (this.moveRL / Math.abs(this.moveRL));
} else {
this._x += this.moveRL;
}
Foreground['PlatSmoke' + this.id]._x = this._x;
Foreground['PlatSmoke' + this.id]._y = this._y;
}
};
JumpPadLockMoveVacant = function () {
if (this._x > this.centerRL) {
this.moveRL -= this.speedRL;
} else {
this.moveRL += this.speedRL;
}
if (Math.abs(this.moveRL) > this.maxRL) {
this._x += this.maxRL * (this.moveRL / Math.abs(this.moveRL));
} else {
this._x += this.moveRL;
}
};
PlatMoveOccupied = function () {
if (!_root.Paused) {
if (this._x > this.centerRL) {
this.moveRL -= this.speedRL;
} else {
this.moveRL += this.speedRL;
}
if (Math.abs(this.moveRL) > 10) {
this._x += 10 * (this.moveRL / Math.abs(this.moveRL));
} else {
this._x += this.moveRL;
}
this.smokeRL = this._x - this.oldx;
Char._x += this.smokeRL;
this.oldx = this._x;
Foreground['PlatSmoke' + this.id]._x = this._x;
}
};
JumpPadLockMoveOccupied = function () {
if (this._x > this.centerRL) {
this.moveRL -= this.speedRL;
} else {
this.moveRL += this.speedRL;
}
if (Math.abs(this.moveRL) > this.maxRL) {
this._x += this.maxRL * (this.moveRL / Math.abs(this.moveRL));
} else {
this._x += this.moveRL;
}
this.smokeRL = this._x - this.oldx;
Char._x += this.smokeRL;
this.oldx = this._x;
if (!Key.isDown(_root.Char.Jump)) {
_root.Char.SisDown = false;
}
if (Key.isDown(_root.Char.Jump) && !_root.Char.SisDown && this._currentframe == 9 && Health != 0) {
_root.Char.SisDown = true;
this.gotoAndPlay(12);
this.onEnterFrame = JumpPadLockMoveVacant;
}
};
SpawnSparkle = function (ex, ey) {
attachMovie('Sparkle', ['Sparkle' + ssN], 5000 + ssN);
_root['Sparkle' + ssN]._x = ex;
_root['Sparkle' + ssN]._y = ey;
if (ssN > 20) {
ssN = 0;
} else {
++ssN;
}
};
ChangeLevel = function (LoadIt, DoorIt) {
if (SquigglesGet > 0) {
_root.kongregateStats.submit('SquigglesGet', SquigglesGet);
SquigglesGet = 0;
}
if (SpidersPwned > 0) {
_root.kongregateStats.submit('SpidersPwned', SpidersPwned);
SpidersPwned = 0;
}
soundTo = getMusic(LoadIt);
_root.attachMovie('FadeOut', 'FadeOut', 100005, {'worm': LoadIt, 'wormDoor': DoorIt, 'soundTo': soundTo});
};
EndLevel = function () {
removeMovieClip(Char);
removeMovieClip(tehground);
removeMovieClip(tehwallz);
removeMovieClip(tehhangz);
removeMovieClip(tehplatformz);
removeMovieClip(aPlatz);
removeMovieClip(surface);
removeMovieClip(PlatzSmoke);
removeMovieClip(BLayer);
removeMovieClip(ELayer);
removeMovieClip(InteractLayer);
removeMovieClip(SnailShell);
removeMovieClip(BGScroll);
removeMovieClip(UBGstatic);
removeMovieClip(UberForeground);
removeMovieClip(OutPut);
removeMovieClip(PauseMenu);
var v2 = 0;
while (_root['levelClip' + v2] != undefined) {
removeMovieClip(_root['levelClip' + v2]);
++v2;
}
_root._x = 0;
_root._y = 0;
};
ColorEmPants = function (ColorEm) {
PantsColor = ColorEm;
var v2 = new Color(Char);
var v3 = new Color(OutPut.pantsicon);
ColorThosePants = new Object();
ColorThosePants.ra = PantsPallet[ColorEm][0];
ColorThosePants.ga = PantsPallet[ColorEm][1];
ColorThosePants.ba = PantsPallet[ColorEm][2];
v2.setTransform(ColorThosePants);
v3.setTransform(ColorThosePants);
isColor = ColorEm;
Fancy_local_data.data.isColor = isColor;
};
SkigPop = function (ex, ey, eRL, eUD) {
attachMovie('SquiggleJump', 'SquiggleJump', getNextHighestDepth(), {'_x': ex, '_y': ey, 'moveRL': eRL, 'moveUD': -eUD / 2});
};
HurtPants = function (ow) {
Health -= ow;
if (Health < 0) {
Health = 0;
}
if (Health > 100) {
Health = 100;
}
OutPut.HealthBar._xscale = Health;
if (ow > 0) {
Char._alpha = 50;
}
};
PayPants = function () {
++Squiggles;
++SquigglesGet;
if (Squiggles / 100 == Math.round(Squiggles / 100)) {
++Lives;
OneUpSound.start();
OutPut.counterLives.updateCounter(Lives);
}
OutPut.counterSquiggles.updateCounter(Squiggles);
};
PlaceCharBump = function (ex, ey, rot) {
H;
tehground.attachMovie('CharBump', 'CharBump', tehground.getNextDepth(), {'_x': ex, '_y': ey, '_rotation': rot});
};
QuittoMenu = function () {
var v2 = 1;
while (v2 < 4) {
delete _root['Level' + v2 + 'DontCheat'];
++v2;
}
v2 = 1;
while (v2 < 10) {
delete _root['Level' + v2 + 'DontCheat'];
++v2;
}
Health = 100;
Lives = 3;
Squiggles = 0;
ChangeLevel('Menus1', 'Door1');
};
getMusic = function (LoadIt) {
if (isMute) {
return 'mute';
} else {
if (substring(LoadIt, 1, 5) == 'Menus') {
return 'menu';
} else {
if (LoadIt == 'Level9' || LoadIt == 'Level10') {
return 'ambience';
} else {
if (LoadIt == 'Level4') {
return 'tommyLevel1';
} else {
if (LoadIt == 'Level1') {
return 'tommyLevel6';
} else {
if (substring(LoadIt, 1, 5) == 'Trans') {
return 'tommyCave';
} else {
if (substring(LoadIt, 1, 5) == 'Level') {
return 'classicMain';
} else {
return 'apiCave';
}
}
}
}
}
}
}
};
LedgeIt = function () {
var v2 = 0;
while (v2 < Math.abs(this.moveRL) + 10) {
if (!testAll(this._x + 13 * (this._xscale / 100), this._y - 50 + this.moveUD, true)) {
this._x += this._xscale / 100;
} else {
break;
}
++v2;
}
while (testAll(this._x + 12 * (this._xscale / 100), this._y - 50 + this.moveUD, true)) {
this._x -= this._xscale / 100;
}
v2 = 0;
while (v2 < Math.abs(this.moveUD) + 20) {
if (!testAll(this._x + 13 * (this._xscale / 100), this._y - 60, true)) {
++this._y;
} else {
break;
}
++v2;
}
while (testAll(this._x + 13 * (this._xscale / 100), this._y - 59, true)) {
--this._y;
}
this._rotation = 0;
this.gotoAndStop('LedgeHang');
};
HangIt = function () {
this.wallJumpFell = false;
var v2 = 0;
while (v2 < this.moveUD) {
if (!tehhangz.hitTest(this._x + this.moveRL, this._y - 61, true)) {
++this._y;
}
++v2;
}
while (tehhangz.hitTest(this._x + this.moveRL, this._y - 60, true)) {
--this._y;
}
this._xscale = (this.moveRL / Math.abs(this.moveRL)) * 100;
this._x += this.moveRL;
this.iRL = this.moveRL;
this.moveRL = 0;
this.moveUD = 0;
this._rotation = 0;
this.gotoAndStop('HangIt');
};
WallIt = function () {
this.moveRL = 0;
this.hairRL = 0;
this.hairGel = 46;
this.fliprot = 0;
this._rotation = 0;
this.wallJumped = true;
this.smokeN = 9;
if (surface.hitTest(this._x, this._y, true)) {
if (this.moveUD > 0) {
this.wallJumpTimer = 0;
} else {
this.wallJumpTimer = 6;
}
} else {
this.wallJumpTimer = 10;
this.FloatUp = 0;
if (this.moveUD > 0) {
this.moveUD = 0;
this.hairUD = 0;
} else {
this.moveUD *= 0.3;
}
}
this._y += this.moveUD;
if (!getFriction(this._x, this._y)) {
i = ELayer.getNextHighestDepth();
ELayer.attachMovie('smokeFX', 'smokeFX' + i, i, {'_x': this._x + this._xscale / -10, '_y': this._y - 20, '_rotation': this._xscale * 0.9000000000000002, '_xscale': 100, '_yscale': 80});
}
this.gotoAndStop('WallJump');
};
getFriction = function (ex, ey) {
if (surface.hitTest(ex, ey, true)) {
return true;
} else {
return false;
}
};
gelHair = function () {
if (Math.abs(this.hairRL) > Math.abs(this.hairUD) || Math.abs(this.hairUD) < 2) {
if (Math.abs(this.hairRL) < 4) {
this.hairGel = 24;
} else {
if (this._xscale * this.hairRL > 0) {
if (Math.abs(this.hairRL) < 15) {
this.hairGel = 13;
} else {
this.hairGel = 2;
}
} else {
if (Math.abs(this.hairRL) < 15) {
this.hairGel = 35;
} else {
this.hairGel = 46;
}
}
}
} else {
if (this.hairUD > 0) {
this.hairGel = 13;
} else {
this.hairGel = 35;
}
}
};
SpawnPencilSwing = function (ex, ey) {
if (UberForeground.PencilShell != undefined) {
UberForeground.PencilShell.removeMovieClip(UberForeground.PencilShell);
}
UberForeground.attachMovie('PencilShell', 'PencilShell', UberForeground.getNextHighestDepth(), {'_x': ex, '_y': ey, 'moveUD': -10});
};
FarTimes = 0;
CharScroll = function () {
if (Math.abs(Char.moveRL) < 5) {
SmoothScroller = Char._xscale * 1.5;
} else {
SmoothScroller = (Char.moveRL / Math.abs(Char.moveRL)) * 150;
}
if (SmoothScroll > SmoothScroller && 360 - Char._x - Char.RLx(SmoothScroll) < MaxX) {
SmoothScroll -= 10;
}
if (SmoothScroll < SmoothScroller && 360 - Char._x - Char.RLx(SmoothScroll) > MinX) {
SmoothScroll += 10;
}
SmoothScrollx += (Char.RLx(SmoothScroll) - SmoothScrollx) / 8;
SmoothScrolly += (Char.RLy(SmoothScroll) - SmoothScrolly) / 8;
focusScroll(360 - Char._x - SmoothScrollx, vOffset - Char._y - SmoothScrolly);
};
focusScroll = function (xFocus, yFocus) {
if (xFocus > MaxX) {
theX -= (theX - MaxX) / 5;
SmoothScrollx = -MaxX - Char._x + 360;
} else {
if (xFocus < MinX) {
theX -= (theX - MinX) / 5;
SmoothScrollx = -MinX - Char._x + 360;
} else {
theX -= (theX - xFocus) / 5;
}
}
if (yFocus < MinY) {
theY -= (theY - MinY) / 15;
} else {
if (yFocus > MaxY) {
theY -= (theY - MaxY) / 15;
} else {
theY -= (theY - yFocus) / 15;
if (yFocus > theY + 100) {
theY += (yFocus - (theY + 100)) / 3;
} else {
if (yFocus < theY) {
theY += (yFocus - theY) / 3;
}
}
if (vOffset - Char._y < theY - 100) {
theY = vOffset - Char._y + 100;
}
}
}
theX = Math.round(theX);
theY = Math.round(theY);
if (isScroll) {
BGScroll._x = Math.round((-theX + firstMaxX) * 0.5);
BGScroll._y = Math.round((-theY + firstMaxY) * 0.5);
} else {
BGScroll._x = -theX + BGScrollOffsetX;
BGScroll._y = -theY + BGScrollOffsetY;
}
OutPut._x = -theX;
UBGstatic._x = OutPut._x;
OutPut._y = -theY;
UBGstatic._y = OutPut._y;
_x = theX;
_y = theY;
};
JumpScroll = function () {
if (Math.abs(Char.moveRL) < 5) {
SmoothScroller = Char._xscale * 1.5;
} else {
SmoothScroller = (Char.moveRL / Math.abs(Char.moveRL)) * 150;
}
if (SmoothScrollx > SmoothScroller) {
SmoothScrollx -= 10;
}
if (SmoothScrollx < SmoothScroller) {
SmoothScrollx += 10;
}
if (SmoothScrolly != 0) {
if (Math.abs(SmoothScrolly) > 5) {
SmoothScrolly -= (SmoothScrolly / Math.abs(SmoothScrolly)) * 5;
} else {
SmoothScrolly = 0;
}
}
if (Char._x + SmoothScrollx - 360 < -MaxX) {
theX += (MaxX - theX) / 5;
} else {
if (Char._x + SmoothScrollx - 360 > -MinX) {
theX += (MinX - theX) / 5;
} else {
theX -= (theX - (360 - Char._x - SmoothScrollx)) / 5;
}
}
yFocus = vOffset - (Char._y + SmoothScrolly);
if (yFocus > theY + 140) {
theY += (yFocus - (theY + 140)) / 3;
} else {
if (yFocus < theY) {
theY += (yFocus - theY) / 3;
}
}
if (vOffset - Char._y < theY - 100) {
theY = vOffset - Char._y + 100;
}
_x = theX;
_y = theY;
};
syncHold = 0;
slowScroller = 0;
introEnterFrame = function () {
i = 0;
while (syncHold > getTimer()) {
++i;
if (i > 20000) {
break;
}
}
syncHold = getTimer() + 33;
MouseHider();
if (!Key.isDown(77)) {
MisDown = false;
}
if (Key.isDown(77) && !MisDown) {
MisDown = true;
if (isMute) {
isMute = false;
soundIs = getMusic(LevelLoaded);
BackgroundMusic = new Sound(createEmptyMovieClip('soundmc6', 10006));
BackgroundMusic.attachSound(soundIs);
BackgroundMusic.setVolume(100);
BackgroundVolume = 100;
BackgroundMusic.start(0, 1000);
} else {
isMute = true;
soundIs = 'mute';
BackgroundMusic.stop();
}
}
if (Math.abs(MinY - theY) > 2) {
introScroller = (MinY - theY) / 10;
if (introScroller < -8) {
if (slowScroller > -8) {
slowScroller -= 0.05;
}
introScroller = slowScroller;
} else {
if (introScroller > -0.05) {
introScroller = -0.05;
}
}
theY += introScroller;
BGScroll._x = Math.round((-theX + firstMaxX) * 0.5);
BGScroll._y = Math.round((-theY + firstMaxY) * 0.5);
OutPut._x = -theX;
UBGstatic._x = OutPut._x;
OutPut._y = -theY;
UBGstatic._y = OutPut._y;
_y = theY;
} else {
theY = MinY;
MaxY = theY;
BGScroll._x = Math.round((-theX + firstMaxX) * 0.5);
BGScroll._y = Math.round((-theY + firstMaxY) * 0.5);
OutPut._x = -theX;
UBGstatic._x = OutPut._x;
OutPut._y = -theY;
UBGstatic._y = OutPut._y;
_y = theY;
InteractLayer.Door0.gotoAndPlay(71);
onEnterFrame = unpausedEnterFrame;
}
};
makeThud = function (ex, eVol) {
var v2 = (theX + ex) / 3.600000000000001 - 100;
if (Math.abs(v2) > 100) {
eVol -= Math.abs(v2 / 3);
if (eVol < 10) {
eVol = 10;
}
v2 = (v2 / Math.abs(v2)) * 100;
}
Thud.setPan(v2);
Thud.setVolume(eVol);
Thud.start();
};
shadowEnterFrame = function () {
this.escale = (800 + BLayer['Baddie' + this.badID]._y) / 8;
if (this.escale > 98) {
removeMovieClip(this);
} else {
this._x = BLayer['Baddie' + this.badID]._x;
this._xscale = this.escale;
this._yscale = this.escale;
}
};
PantsPallet = [[100, 60, 0], [0, 90, 0], [100, 20, 20], [0, 30, 100], [0, 60, 60], [60, 0, 100], [15, 15, 15], [100, 100, 0], [0, 90, 100], [100, 50, 50]];
var CharJump = new Sound(createEmptyMovieClip('soundmc0', 10000));
CharJump.attachSound('cjump');
var HeadHit = new Sound(createEmptyMovieClip('soundmc1', 10001));
HeadHit.attachSound('bump');
var Spring = new Sound(createEmptyMovieClip('soundmc2', 10002));
Spring.attachSound('spring');
var CharHurt = new Sound(createEmptyMovieClip('soundmc3', 10003));
CharHurt.attachSound('hurt');
var DoorCreak = new Sound(createEmptyMovieClip('soundmc4', 10004));
DoorCreak.attachSound('door');
var BadStomp = new Sound(createEmptyMovieClip('soundmc5', 10005));
BadStomp.attachSound('boing');
var PauseSound = new Sound(createEmptyMovieClip('soundmc8', 10008));
PauseSound.attachSound('pause');
var SlideSound = new Sound(createEmptyMovieClip('soundmc9', 10009));
SlideSound.attachSound('slide');
var CoinVoice = new Sound(createEmptyMovieClip('soundmc10', 10010));
CoinVoice.attachSound('coin');
var DoorClose = new Sound(createEmptyMovieClip('soundmc11', 10011));
DoorClose.attachSound('doorclose');
var ClickLock = new Sound(createEmptyMovieClip('soundmc12', 10012));
ClickLock.attachSound('clicklock');
var DeathKnell = new Sound(createEmptyMovieClip('soundmc13', 10013));
DeathKnell.attachSound('deathstrings');
var Fanfare = new Sound(createEmptyMovieClip('soundmc14', 10014));
Fanfare.attachSound('fanfare');
var TrophyGetSound = new Sound(createEmptyMovieClip('soundmc15', 10015));
TrophyGetSound.attachSound('trophyget');
var OneUpSound = new Sound(createEmptyMovieClip('soundmc16', 10016));
OneUpSound.attachSound('oneup');
var SwordNoise = new Sound(createEmptyMovieClip('soundmc17', 10017));
SwordNoise.attachSound('sword');
var unPauseSound = new Sound(createEmptyMovieClip('soundmc18', 100018));
unPauseSound.attachSound('unpause');
var Thud = new Sound(createEmptyMovieClip('soundmc19', 100019));
Thud.attachSound('thud');
var golfCup = new Sound(createEmptyMovieClip('soundmc20', 100020));
golfCup.attachSound('golfCup');
_root.LoadLevel(Load, Door, 'menu');
attachMovie('whatIsThis', 'whatIsThis', getNextHighestDepth(), {'_alpha': 0});
stop();
}