Frame 1
stop();
Instance of Symbol 124 MovieClip in Frame 1
onClipEvent (enterFrame) {
i = _root.getBytesLoaded() / _root.getBytesTotal();
if (i == 1) {
_root.play();
} else {
_yscale = (100 - (i * 100));
}
}
Frame 4
Load = "Level2";
ShowSmoke = false;
vOffset = 260;
theX = 0;
theY = 0;
Mouse.hide();
onMouseDown = function () {
trace(_xmouse);
trace(_ymouse);
};
Fancy_local_data = SharedObject.getLocal("FancyPantsMan");
if (Fancy_local_data.data.TrophyGet == undefined) {
Fancy_local_data.data.TrophyGet = [false, false, false, false, false];
TrophyGet = Fancy_local_data.data.TrophyGet;
} else {
TrophyGet = Fancy_local_data.data.TrophyGet;
}
if (Fancy_local_data.data.LevelSelect == undefined) {
Fancy_local_data.data.LevelSelect = 0;
LevelSelect = Fancy_local_data.data.LevelSelect;
} else {
LevelSelect = Fancy_local_data.data.LevelSelect;
}
var ssN = 0;
var Boxit = false;
var SmoothScroll = 0;
ColorEm = 0;
SnapBack = [0, 0];
Paused = false;
BackgroundVolume = 100;
KillWallJump = false;
oldGridFrame = 0;
tehsnappy = false;
Squiggles = 0;
Lives = 3;
Health = 100;
Level2BadName = ["Snail", "Spider", "Spider", "Spider", "Spider", "Spider", "Spider", "Spider", "Spider", "Spider"];
Level2BaddieX = [550, 1233, 2510, 3453, 3003, 3776, 3550, 3500, 1600, 900];
Level2BaddieY = [67, -41, 9, 172, 164, -651, -1119, -1625, -951, -963];
Level2BaddieS = [1, 1, 1, 1, 1, 1, 1, -1, -1, -1];
Bonus7BadName = ["Spider", "Spider", "Spider", "Spider", "Spider", "Spider", "Spider", "Spider"];
Bonus7BaddieX = [168, 305, 445, 600, 744, 645, 450, 210];
Bonus7BaddieY = [-70, -98, -156, -242, -383, -560, -582, -600];
Bonus7BaddieFreeze = true;
Bonus9BadName = ["Penguin"];
Bonus9BaddieX = [0];
Bonus9BaddieY = [0];
Bonus9BaddieFreeze = false;
Bonus2Setup = function () {
Char.JumpFunc(25);
};
unpausedEnterFrame = function () {
MouseHider();
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;
}
Char.CheckInteractHit(Char._x, Char._y);
Char.CheckBaddieHit();
if (Char._alpha < 100) {
Char._alpha = Char._alpha + 0.5;
if (Char._alpha > 85) {
Char._alpha = 100;
}
}
if ((Char._y > ((-MinY) + 700)) && (Char._currentframe != 21)) {
Char.gotoAndStop("Die");
}
if (SmoothScroll > Char._xscale) {
SmoothScroll = SmoothScroll - 10;
}
if (SmoothScroll < Char._xscale) {
SmoothScroll = SmoothScroll + 10;
}
if (((Char._x + SmoothScroll) - 360) < (-MaxX)) {
SmoothScroll = ((-MaxX) - Char._x) + 360;
}
if (((Char._x + SmoothScroll) - 360) > (-MinX)) {
SmoothScroll = ((-MinX) - Char._x) + 360;
}
theX = theX - ((theX - ((360 - Char._x) - SmoothScroll)) / 5);
if ((vOffset - Char._y) < MinY) {
theY = theY - ((theY - MinY) / 5);
} else if ((vOffset - Char._y) > MaxY) {
theY = theY - ((theY - MaxY) / 5);
} else {
theY = theY - ((theY - (vOffset - Char._y)) / 5);
}
_x = theX;
_y = theY;
Background._x = (-_x) / 1.4;
Background._y = (-_y) / 1.1;
OutPut._x = -_root._x;
OutPut._y = -_root._y;
};
onMouseMove = function () {
HideThatMouse = 40;
Mouse.show();
};
HideThatMouse = 40;
MouseHider = function () {
if (HideThatMouse > 0) {
HideThatMouse--;
}
if (HideThatMouse == 0) {
Mouse.hide();
HideThatMouse = -1;
}
};
LoadLevel = function (LoadIt) {
if (LoadIt == undefined) {
LoadIt = SnapTo;
}
attachMovie("Char", "Char", 1000);
attachMovie("Foreground" + LoadIt, "Foreground", 600);
attachMovie("tehground" + LoadIt, "tehground", 8);
attachMovie("surface" + LoadIt, "surface", 7);
attachMovie("tehwallz" + LoadIt, "tehwallz", 10);
SpringBoardCount = 0;
aPlatzCount = 0;
attachMovie("tehplatformz" + LoadIt, "tehplatformz", 15);
attachMovie("SBLayer" + LoadIt, "SBLayer", 16, {_alpha:0});
attachMovie("tehhangz" + LoadIt, "tehhangz", 17);
JumpPadCount = 0;
attachMovie("BLayer" + LoadIt, "BLayer", 800);
CoinCount = 0;
SwiftCount = 0;
attachMovie("InteractLayer" + LoadIt, "InteractLayer", 500);
MaxX = -InteractLayer.MaxX._x;
MinX = 720 - InteractLayer.MinX._x;
MaxY = -InteractLayer.MaxY._y;
MinY = 480 - InteractLayer.MinY._y;
if (!ShowSmoke) {
tehground._alpha = 0;
tehwallz._alpha = 0;
tehplatformz._alpha = 0;
surface._alpha = 0;
tehhangz._alpha = 0;
}
attachMovie("UberForeground" + LoadIt, "UberForeground", 1050);
attachMovie("Background" + LoadIt, "Background", 2);
createEmptyMovieClip("RotFix", 0);
createEmptyMovieClip("RotFind", 1);
if (LoadIt == "Menus2") {
Squiggles = 0;
Lives = 3;
Health = 100;
}
if ((substring(LoadIt, 1, 5)) == "Bonus") {
}
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") {
temp = substring(LoadIt, 6, 1);
temp++;
temp--;
if (LevelSelect < temp) {
LevelSelect = temp;
Fancy_local_data.data.LevelSelect = LevelSelect;
}
SnapTo = LoadIt;
}
if (tehsnappy) {
tehsnappy = false;
Char._x = SnapBack[0];
Char._y = SnapBack[1];
}
SmoothScroll = 100;
theX = (360 - Char._x) - SmoothScroll;
theY = 300 - Char._y;
if (theX > MaxX) {
theX = MaxX;
}
if (theX < MinX) {
theX = MinX;
}
if (theY < MinY) {
theY = MinY;
}
if (theY > MaxY) {
theY = MaxY;
}
_x = theX;
_y = theY;
Level1Skigs = 5;
attachMovie("OutPut", "OutPut", 100000);
OutPut.HealthBar._xscale = Health;
Char.moveRL = 0;
Char.moveUD = 0;
Char.Jump = 83;
Char.SisDown = false;
Char.yerdown = false;
Char.hurting = false;
Char.friction = 0.88;
Char.temp = false;
Char.thisIs = "Char";
Paused = false;
onEnterFrame = unpausedEnterFrame;
if (LoadIt == "Bonus3") {
Char.RLFunc = BonusPlatRLFunc;
Char.aPlatzOn = -1;
} else {
Char.RLFunc = RLFunc;
}
Char.wallPause = 0;
Char.wallJumped = false;
Char.wallJumpFell = false;
Char.TempStill = false;
Char.Still = false;
Char.canPlatLedge = false;
Char.jpN = 1010;
Char.rpN = 5;
Char.mRL = mRL;
Char.mUD = mUD;
Char.RLx = RLx;
Char.RLy = RLy;
Char.UDx = UDx;
Char.UDy = UDy;
Char.WasSix = WasSix;
Char.spread = 10;
Char.RAnchx = RAnchx;
Char.RAnchy = RAnchy;
Char.LAnchx = LAnchx;
Char.LAnchy = LAnchy;
Char.JumpFunc = JumpFunc;
Char.JumpGuide = JumpGuide;
Char.WraptoGround = WraptoGround;
Char.HeadLand = HeadLand;
Char.CheckHead = CheckHead;
Char.Standing = Standing;
Char.JumpListener = JumpListener;
Char.CheckBaddieHit = CheckBaddieHit;
Char.CheckInteractHit = CheckInteractHit;
Char.Died = Died;
Char.LedgeIt = LedgeIt;
Char.HangIt = HangIt;
Char.testSpringBoard = testSpringBoard;
Char.BonusPlatJumpLand = BonusPlatJumpLand;
Char.BonusPlatFind = BonusPlatFind;
Char.JumpLand = JumpLand;
Char.BonusPlatJumpLand = BonusPlatJumpLand;
RotFind.RLx = RLx;
RotFind.RLy = RLy;
RotFind.UDx = UDx;
RotFind.UDy = UDy;
RotFind.WasSix = WasSix;
RotFind.spread = 10;
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.RLFunc = RLFunc;
tehwallz.Box.WraptoGround = WraptoGround;
Char.EveryFrame = EveryFrame;
ColorEmPants();
tehwallz.movingWallz.gears.smokeRL = 0;
maxBaddies = _root[LoadIt + "BadName"].length;
var _local2 = 0;
while (_local2 < maxBaddies) {
SpawnBaddies(_root[LoadIt + "BaddieX"][_local2], _root[LoadIt + "BaddieY"][_local2], _root[LoadIt + "BadName"][_local2], _root[LoadIt + "BaddieS"][_local2] * -100, _local2, 13);
_local2++;
}
attachMovie("FadeIn", "FadeIn", 100005, {worm:LoadIt, theX:-_x, _y:-_y});
LevelLoaded = LoadIt;
Setup();
Setup = _root[LoadIt + "Setup"];
Setup();
delete Setup;
};
SpawnBaddies = function (ex, ey, ename, exscale, i, ethrust) {
if (ename == "SnailShell") {
spawnWhere = "InteractLayer";
} else {
spawnWhere = "BLayer";
}
_root[spawnWhere].attachMovie(ename, ["Baddie" + i], 805 + i, {_x:ex, _y:ey, moveRL:0, moveUD:0, _xscale:exscale, mRL:mRL, mUD:mUD, RLFunc:RLFunc, RLx:RLx, RLy:RLy, UDx:UDx, UDy:UDy, WasSix:WasSix, ID:i, PwnBaddies:PwnBaddies, JumpFunc:JumpFunc, JumpGuide:JumpGuide, WraptoGround:WraptoGround, JumpLand:JumpLand, spread:20, RAnchx:RAnchx, RAnchy:RAnchy, LAnchx:LAnchx, LAnchy:LAnchy, Thrust:ethrust});
};
EveryFrame = function () {
this.RLFunc();
this.JumpListener();
};
JumpListener = function () {
if (!Key.isDown(this.Jump)) {
this.SisDown = false;
}
if (Key.isDown(this.Jump) && (!this.SisDown)) {
this.moveRL = this.moveRL * 0.7;
this.fliprot = this._rotation / 6;
this.SisDown = true;
this.FloatUp = 6;
CharJump.start();
this.JumpFunc(12);
return(true);
}
};
JumpFunc = function (jumper, still) {
if (this.aPlatzOn > -1) {
if (tehplatformz["aPlatz" + this.aPlatzOn].moving) {
jumper = jumper - tehplatformz["aPlatz" + this.aPlatzOn].smokeUD;
tehplatformz["aPlatz" + this.aPlatzOn].onEnterFrame = BonusPlatMove;
}
this.aPlatzOn = -1;
}
this.wallJumpFell = false;
this._y = this._y - 2;
this.moveUD = this.moveRL * Math.sin(this._rotation * (Math.PI/180));
this.moveRL = this.moveRL * Math.cos(this._rotation * (Math.PI/180));
i = jumper * Math.cos((this._rotation - 90) * (Math.PI/180));
if (Math.abs(i) > 0.1) {
this.moveRL = this.moveRL + i;
}
this.moveUD = this.moveUD + (jumper * Math.sin((this._rotation - 90) * (Math.PI/180)));
if (tehwallz.movingWallz.gears.smokeRL != undefined) {
this.moveRL = this.moveRL + (tehwallz.movingWallz.gears.smokeRL / 2);
tehwallz.movingWallz.gears.smokeRL = 0;
delete tehwallz.movingWallz.gears.onEnterFrame;
}
if (jumper == 0) {
this.gotoAndStop("Jump");
this.CharJump.gotoAndStop(1);
if (Math.abs(this._rotation) > 45) {
this.Still = 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;
if (Math.abs(this._rotation) > 45) {
this.TempStill = true;
}
if ((!this.TempStill) && (((this._xscale > 0) && (Key.isDown(37))) || ((this._xscale < 0) && (Key.isDown(39))))) {
this.CharJump.gotoAndStop(2);
if (Math.abs(this.moveRL) < 2) {
this.moveRL = (-this._xscale) / 100;
}
} else if (((this._xscale < 0) && (Key.isDown(37))) || (((this._xscale > 0) && (Key.isDown(39))) && (Math.abs(this.moveRL) < 4))) {
this.CharJump.gotoAndStop(1);
if (Math.abs(this.moveRL) < 2) {
this.moveRL = this._xscale / 100;
}
} else {
this.CharJump.gotoAndStop(1);
}
}
}
};
JumpGuide = function (hurt) {
if (Math.abs(this._rotation) < 5) {
this._rotation = 0;
}
Math.round(this._rotation);
this.temp = false;
if (this.moveUD > 0) {
this.testSpringBoard();
}
if ((tehwallz.hitTest((this._x + 20) + this.moveRL, this._y - 55, true) && (!tehwallz.hitTest((this._x + 20) + this.moveRL, (this._y - 55) - this.moveUD, true))) && (this.moveUD > 0)) {
this._xscale = 100;
this.LedgeIt();
} else if ((tehwallz.hitTest((this._x - 20) + this.moveRL, this._y - 55, true) && (!tehwallz.hitTest((this._x - 20) + this.moveRL, (this._y - 55) - this.moveUD, true))) && (this.moveUD > 0)) {
this._xscale = -100;
this.LedgeIt();
} else if ((tehhangz.hitTest(this._x + this.moveRL, this._y - 55, true) && (!tehhangz.hitTest(this._x + this.moveRL, (this._y - 55) - this.moveUD, true))) && (this.moveUD > 0)) {
this.HangIt();
} else if (((tehwallz.hitTest((this._x + (this.spread + 1)) + this.moveRL, this._y, true) || (tehwallz.hitTest((this._x - (this.spread + 1)) + this.moveRL, this._y, true))) || (tehwallz.hitTest((this._x + (this.spread + 1)) + this.moveRL, this._y - 50, true))) || (tehwallz.hitTest((this._x - (this.spread + 1)) + this.moveRL, this._y - 50, true))) {
var _local3 = 0;
while (_local3 < Math.abs(this.moveRL)) {
if ((((!tehwallz.hitTest(this._x + (this.spread + 1), this._y, true)) && (!tehwallz.hitTest(this._x - (this.spread + 1), this._y, true))) && (!tehwallz.hitTest(this._x + (this.spread + 1), this._y - 50, true))) && (!tehwallz.hitTest(this._x - (this.spread + 1), this._y - 50, true))) {
this._x = this._x + (this.mRL() / 2);
} else {
break;
}
_local3 = _local3 + 0.1;
}
this.temp = "Wall";
if (((this._currentframe != 9) && (!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))) && ((Key.isDown(39) || (this.wallJumped)) || (this.Still))) {
if (this.moveRL > 0) {
while ((!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))) {
this._x++;
}
this.wallPause = Math.abs(this.moveRL);
this.moveRL = 0;
this._xscale = 100;
this.wallJumped = true;
this.gotoAndStop("WallJump");
}
} else if ((tehwallz.hitTest((this._x - this.spread) + this.moveRL, this._y + this.moveUD, true) && (tehwallz.hitTest((this._x - this.spread) + this.moveRL, (this._y - 65) + this.moveUD, true))) && ((Key.isDown(37) || (this.wallJumped)) || (this.Still))) {
if (this.moveRL < 0) {
while ((!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))) {
this._x--;
}
this.wallPause = Math.abs(this.moveRL);
this.moveRL = 0;
this._xscale = -100;
this.wallJumped = true;
this.gotoAndStop("WallJump");
}
}
}
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();
} else {
_local3 = 0;
while (tehwallz.hitTest(this._x + this.spread, this._y - 2, true) || (tehwallz.hitTest(this._x + this.spread, this._y - 30, true))) {
this._x = this._x - 0.5;
_local3 = _local3 - 0.25;
}
while (tehwallz.hitTest(this._x - this.spread, this._y - 2, true) || (tehwallz.hitTest(this._x - this.spread, this._y - 30, true))) {
this._x = this._x + 0.5;
_local3 = _local3 + 0.25;
}
this.moveRL = _local3;
}
}
if (this.BonusPlatFind()) {
this.BonusPlatJumpLand();
} else 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()) - 2, true)) && (!tehplatformz.hitTest((this._x + this.LAnchx()) + this.moveRL, (this._y + this.LAnchy()) - 2, true))) && (this.moveUD > 0)) {
this._rotation = 0;
this.JumpLand(hurt);
} else {
this._x = this._x + this.moveRL;
this._y = this._y + this.moveUD;
}
} else 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 = _root.Char._x + this.smokeRL;
this.oldx = this._x;
};
}
this._rotation = 0;
this.JumpLand(hurt);
} else 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 (Math.abs(this._rotation) < 100) {
this.JumpLand(hurt);
} else {
this._x = this._x + this.moveRL;
this._y = this._y + this.moveUD;
this.WraptoGround(false, false);
}
} else 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 (Math.abs(this._rotation) < 100) {
this._x = this._x + this.moveRL;
this._y = this._y + this.moveUD;
this.WraptoGround(true, false);
} else {
this._x = this._x + this.moveRL;
this._y = this._y + this.moveUD;
this.WraptoGround(false, false);
}
} else if (testAll((this._x + this.RAnchx()) + this.moveRL, (this._y + this.RAnchy()) + this.moveUD) && (testAll((this._x + this.LAnchx()) + this.moveRL, (this._y + this.LAnchy()) + this.moveUD))) {
if (Math.abs(this._rotation) < 100) {
this.JumpLand(hurt);
} else {
this._x = this._x + this.moveRL;
this._y = this._y + this.moveUD;
this.WraptoGround(false, false);
}
} else 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))) {
while ((!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))) {
this._y--;
}
this.moveUD = -this.moveUD;
this._x = this._x + this.moveRL;
this._y = this._y + this.moveUD;
} else if (tehground.hitTest((this._x + (50 * Math.cos((this._rotation - 90) * (Math.PI/180)))) + this.moveRL, (this._y + (50 * Math.sin((this._rotation - 90) * (Math.PI/180)))) + this.moveUD, true)) {
this.HeadLand(this._x + (50 * Math.cos((this._rotation - 90) * (Math.PI/180))), this._y + (50 * Math.sin((this._rotation - 90) * (Math.PI/180))), this.moveRL, this.moveUD);
} else {
this._x = this._x + this.moveRL;
this._y = this._y + this.moveUD;
}
return(this.temp);
};
JumpLand = function (hurt) {
this.canPlatLedge = false;
this.effingSlide = 0;
if (this.wallJumped) {
this.wallJumped = false;
}
this.jumprot = ((-Math.atan2(this.moveRL, this.moveUD)) / (Math.PI/180)) + 90;
this.nowSpeed = Math.sqrt((this.moveRL * this.moveRL) + (this.moveUD * this.moveUD));
var _local2 = 0;
while (_local2 < this.nowSpeed) {
if ((((!tehground.hitTest((this._x + this.RAnchx()) + this.UDx(), (this._y + this.RAnchy()) + this.UDy(), true)) || (!tehground.hitTest((this._x + this.LAnchx()) + this.g(), (this._y + this.LAnchy()) + this.UDy(), true))) && (!testWallzNPlatz((this._x + this.RAnchx()) + this.UDx(), (this._y + this.RAnchy()) + this.UDy()))) && (!testWallzNPlatz((this._x + this.LAnchx()) + this.UDx(), (this._y + this.LAnchy()) + this.UDy()))) {
this._x = this._x + Math.cos(this.jumprot * (Math.PI/180));
this._y = this._y + Math.sin(this.jumprot * (Math.PI/180));
} else {
break;
}
_local2++;
}
this.WraptoGround(true, false);
_local2 = getNextHighestDepth();
attachMovie("smokeFX", "smokeFX" + _local2, _local2, {_x:this._x, _y:this._y, _rotation:this._rotation});
this.gorot = (2 * this._rotation) - this.jumprot;
this.moveRL = this.nowSpeed * Math.cos(this.gorot * (Math.PI/180));
this.moveUD = this.nowSpeed * Math.sin(this.gorot * (Math.PI/180));
Math.round(this.moveRL);
if (hurt != undefined) {
if (Health == 0) {
this.gotoAndStop("Die");
} else {
this.gotoAndStop("FSGetUp");
}
} else if (((Key.isDown(39) && (this.moveRL < 2)) && (this.thisIs == "Char")) && false) {
this.moveRL = 2;
this._xscale = 100;
this.gotoAndStop("RWalk");
} else if (((Key.isDown(37) && (this.moveRL > -2)) && (this.thisIs == "Char")) && false) {
this.moveRL = -2;
this._xscale = -100;
this.gotoAndStop("RWalk");
} 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 {
this.gotoAndStop("RIdle");
}
} else {
this.gotoAndStop("Land");
this.CharSlide.gotoAndStop(8);
}
};
BonusPlatJumpLand = function () {
this.moveUD = 0;
delete tehplatformz["aPlatz" + this.aPlatzOn].onEnterFrame;
this.onPlatOffset = this._x - tehplatformz["aPlatz" + this.aPlatzOn]._x;
this._y = tehplatformz["aPlatz" + this.aPlatzOn]._y;
if (tehplatformz["aPlatz" + this.aPlatzOn].onlyOnStand) {
tehplatformz["aPlatz" + this.aPlatzOn].moving = true;
tehplatformz["aPlatz" + this.aPlatzOn].onlyOnStand = false;
}
if (hurt != undefined) {
if (Health == 0) {
this.gotoAndStop("Die");
} else {
this.gotoAndStop("FSGetUp");
}
} else if (((Key.isDown(39) && (this.moveRL < 2)) && (this.thisIs == "Char")) && false) {
this.moveRL = 2;
this._xscale = 100;
this.gotoAndStop("RWalk");
} else if (((Key.isDown(37) && (this.moveRL > -2)) && (this.thisIs == "Char")) && false) {
this.moveRL = -2;
this._xscale = -100;
this.gotoAndStop("RWalk");
} 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 {
this.gotoAndStop("RIdle");
}
} else {
this.gotoAndStop("Land");
this.CharSlide.gotoAndStop(8);
}
};
BonusPlatFind = function () {
this.temp = false;
var _local2 = 0;
while (tehplatformz["aPlatz" + _local2]._x != undefined) {
this.tempX = tehplatformz["aPlatz" + _local2]._x;
this.tempY = tehplatformz["aPlatz" + _local2]._y;
if (((((((this._x + this.moveRL) + this.spread) > this.tempX) && (((this._x + this.moveRL) - this.spread) < (this.tempX + tehplatformz["aPlatz" + _local2]._xscale))) && (((this._y + tehplatformz["aPlatz" + _local2].smokeUD) - 5) < this.tempY)) && ((this._y + this.moveUD) > this.tempY)) && ((this.moveUD - tehplatformz["aPlatz" + _local2].smokeUD) > 0)) {
this.aPlatzOn = _local2;
this.temp = true;
}
_local2++;
}
return(this.temp);
};
BonusPlatMove = function () {
if (this.circling) {
this.rotOffset = this.rotOffset + this.accel;
this._x = this.anchorX + (this.anchorDist * Math.sin(this.rotOffset * (Math.PI/180)));
this._y = this.anchorY + ((-this.anchorDist) * Math.cos(this.rotOffset * (Math.PI/180)));
Foreground["aPlatzSmoke" + this.ID]._x = this._x;
Foreground["aPlatzSmoke" + this.ID]._y = this._y;
} else if (this.moving) {
if (this.absoluteRL < this.centerOffset) {
this.moveRL = this.moveRL + this.accel;
}
if (this.absoluteRL > this.centerOffset) {
this.moveRL = this.moveRL - this.accel;
}
if (Math.abs(this.moveRL) > this.maxSpeed) {
this.smokeRLUD = this.maxSpeed * (this.moveRL / Math.abs(this.moveRL));
} else {
this.smokeRLUD = this.moveRL;
}
this.smokeRLUD = Math.round(this.smokeRLUD * 10) / 10;
this.absoluteRL = this.absoluteRL + this.smokeRLUD;
this._x = this.originX + (this.absoluteRL * Math.sin((90 - this.rotOffset) * (Math.PI/180)));
this._y = this.originY + ((-this.absoluteRL) * Math.cos((90 - this.rotOffset) * (Math.PI/180)));
Foreground["aPlatzSmoke" + this.ID]._x = this._x;
Foreground["aPlatzSmoke" + this.ID]._y = this._y;
}
this.smokeUD = this._y - this.oldy;
this.oldy = this._y;
};
HeadLand = function (ex, ey, eRL, eUD) {
HeadHit.start();
this.jumprot = RotFixer(((-Math.atan2(eRL, eUD)) / (Math.PI/180)) + 90);
this.nowSpeed = Math.sqrt((eRL * eRL) + (eUD * eUD));
var _local2 = 0;
while (_local2 < this.nowSpeed) {
if (!testAllBut(this._x + ex, this._y + ey)) {
this._x = this._x + Math.cos(this.jumprot * (Math.PI/180));
this._y = this._y + Math.sin(this.jumprot * (Math.PI/180));
}
_local2++;
}
_local2 = 0;
while (InteractLayer["MarioBlock" + _local2] != undefined) {
if (InteractLayer["MarioBlock" + _local2].hitTest((this._x + (45 * Math.cos((this._rotation - 90) * (Math.PI/180)))) + Math.cos(this.jumprot * (Math.PI/180)), (this._y + (50 * Math.sin((this._rotation - 90) * (Math.PI/180)))) + Math.sin(this.jumprot * (Math.PI/180)))) {
InteractLayer["MarioBlock" + _local2].play();
}
_local2++;
}
this.groundrot = FindRot(this.jumprot - 90, ex, ey);
this.nowSpeed = this.nowSpeed * 0.9;
this.gorot = (2 * this.groundrot) - this.jumprot;
this.moveRL = this.nowSpeed * Math.cos(this.gorot * (Math.PI/180));
this.moveUD = this.nowSpeed * Math.sin(this.gorot * (Math.PI/180));
if (Math.abs(this.groundrot - this.jumprot) < 10) {
this._x = this._x + (50 * Math.cos((this._rotation - 90) * (Math.PI/180)));
this._y = this._y + (50 * Math.sin((this._rotation - 90) * (Math.PI/180)));
this._rotation = this._rotation + 180;
this.WraptoGround(true, true);
this.gotoAndStop("FSRoll");
} else {
this._x = this._x + this.moveRL;
this._y = 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;
RotFind.WraptoGround(true, true);
return(RotFind._rotation);
};
RLx = function () {
return(this.moveRL * Math.cos(this._rotation * (Math.PI/180)));
};
RLy = function () {
return(this.moveRL * Math.sin(this._rotation * (Math.PI/180)));
};
UDx = function () {
return(Math.cos((this._rotation + 90) * (Math.PI/180)));
};
UDy = function () {
return(Math.sin((this._rotation + 90) * (Math.PI/180)));
};
WasSix = function () {
return((Math.abs(this.moveRL) / 10) + 3);
};
LAnchx = function () {
return(this.spread * Math.cos((this._rotation - 180) * (Math.PI/180)));
};
LAnchy = function () {
return(this.spread * Math.sin((this._rotation - 180) * (Math.PI/180)));
};
RAnchx = function () {
return(this.spread * Math.cos(this._rotation * (Math.PI/180)));
};
RAnchy = function () {
return(this.spread * Math.sin(this._rotation * (Math.PI/180)));
};
testAll = function (ex, ey) {
if (tehground.hitTest(ex, ey, true)) {
return(true);
}
if (tehwallz.hitTest(ex, ey, true)) {
return(true);
}
if (tehplatformz.hitTest(ex, ey, true)) {
return(true);
}
return(false);
};
testAllBut = function (ex, ey) {
if (tehwallz.hitTest(ex, ey, true)) {
return(true);
}
if (tehground.hitTest(ex, ey, true)) {
return(true);
}
return(false);
};
testWallzNPlatz = function (ex, ey) {
if (tehwallz.hitTest(ex, ey, true)) {
return(true);
}
if (tehplatformz.hitTest(ex, ey, true)) {
return(true);
}
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 _local3 = 0;
while (SBLayer["SpringBoard" + _local3]._x != undefined) {
if (SBLayer["SpringBoard" + _local3].hitTest((this._x + this.RAnchx()) + this.moveRL, (this._y + this.RAnchy()) + this.moveUD, true) || (SBLayer["SpringBoard" + _local3].hitTest((this._x + this.LAnchx()) + this.moveRL, (this._y + this.LAnchy()) + this.moveUD, true))) {
this.gotoAndStop("ClingBoard");
SBLayer["SpringBoard" + _local3]._y = this._y + this.moveUD;
SBLayer["SpringBoard" + _local3].moveRL = SBLayer["SpringBoard" + _local3].moveRL + (this.moveRL / 2);
SBLayer["SpringBoard" + _local3].moveUD = SBLayer["SpringBoard" + _local3].moveUD + this.moveUD;
SBLayer["SpringBoard" + _local3].flingIt = this.moveUD;
this._rotation = SBLayer["SpringBoard" + _local3]._rotation;
_root.Foreground[("SpringBoard" + _local3) + "Smoke"]._y = this._y + this.moveUD;
SBLayer["SpringBoard" + _local3].onEnterFrame = function () {
this.moveUD++;
this.moveRL = 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.moveUD + this.amoveUD;
this._x = this._x + this.moveRL;
this._y = this._y + this.moveUD;
Char._x = Char._x + this.moveRL;
Char._y = Char._y + this.moveUD;
_root.Foreground[this._name + "Smoke"]._x = this._x;
_root.Foreground[this._name + "Smoke"]._y = this._y;
trace(this.amoveUD);
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 = this.moveUD + 15;
this.onEnterFrame = SpringBoardLeft;
}
Char.SisDown = true;
}
};
SBLayer["SpringBoard" + _local3].onEnterFrame;
}
_local3++;
}
return(true);
}
return(false);
};
SpringBoardLeft = function () {
this.moveRL = this.moveRL + ((this.anchorX - this._x) / 60);
this.moveUD = this.moveUD + ((this.anchorY - this._y) / 20);
this.moveRL = this.moveRL - ((this.moveRL / Math.abs(this.moveRL)) / 5);
this.moveUD = this.moveUD - ((this.moveUD / Math.abs(this.moveUD)) / 5);
this._x = this._x + this.moveRL;
this._y = 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;
}
};
RLFunc = function () {
if (InteractLayer.hitTest(this._x, this._y, true)) {
var _local2 = 0;
while (InteractLayer["swift" + _local2]._x != undefined) {
if ((InteractLayer["swift" + _local2].hitTest(this._x, this._y, true) && (InteractLayer["swift" + _local2]._currentframe == 1)) && (!InteractLayer["swift" + _local2].hitTest(this._x - this.moveRL, this._y, true))) {
this.gotoAndStop("Slide");
this._x = InteractLayer["swift" + _local2]._x;
this._y = InteractLayer["swift" + _local2]._y;
this._xscale = (InteractLayer["swift" + _local2].boost / Math.abs(InteractLayer["swift" + _local2].boost)) * 100;
this.moveRL = InteractLayer["swift" + _local2].boost;
}
_local2++;
}
if (Key.isDown(38)) {
_local2 = 0;
while (_local2 < 6) {
if (InteractLayer["Door" + _local2].hitTest(this._x, this._y, true) && (InteractLayer["Door" + _local2]._currentframe == 1)) {
InteractLayer["Door" + _local2].onEnterFrame = function () {
this.play();
};
this.moveRL = 0;
this.i = _local2;
this.gotoAndStop("DoorIn");
break;
}
_local2++;
}
}
}
this.WallHitLeft = false;
this.WallHitRight = false;
if (this.moveRL > 0) {
this.tempR = this.RLx();
} else {
this.tempR = 0;
}
if (this.moveRL < 0) {
this.tempL = this.RLx();
} else {
this.tempL = 0;
}
if (tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) + this.tempL, (((this._y + this.LAnchy()) + this.RLy()) + (this.UDy() * this.WasSix())) - 20, true) || (this.Standing() && (tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) + this.tempL, (((this._y + this.LAnchy()) + this.RLy()) + (this.UDy() * this.WasSix())) - 50, true)))) {
this.WallHitLeft = true;
}
if (tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + this.tempR, (((this._y + this.RAnchy()) + this.RLy()) + (this.UDy() * this.WasSix())) - 20, true) || (this.Standing() && (tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + this.tempR, (((this._y + this.RAnchy()) + this.RLy()) + (this.UDy() * this.WasSix())) - 50, true)))) {
this.WallHitRight = true;
}
if (this.WallHitLeft && (this.WallHitRight)) {
this.Died();
} else {
if (this.WallHitLeft) {
if (!testAll(this._x + 20, this._y + 6)) {
this.JumpFunc(0);
}
while ((!tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) - 2, ((this._y + this.LAnchy()) + (this.UDy() * this.WasSix())) - 20, true)) && ((!tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) - 2, ((this._y + this.LAnchy()) + (this.UDy() * this.WasSix())) - 50, true)) || (!this.Standing()))) {
this._x--;
}
while (tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) - 1, ((this._y + this.LAnchy()) + (this.UDy() * this.WasSix())) - 20, true) || (tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) - 1, ((this._y + this.LAnchy()) + (this.UDy() * this.WasSix())) - 50, true) && (this.Standing()))) {
this._x++;
}
if (this._currentframe == 12) {
this.moveRL = (-this.moveRL) / 2;
} else {
this.moveRL = 0;
if (Key.isDown(37)) {
this._xscale = -100;
this.gotoAndStop("WallStop");
}
}
return("Wall");
}
if (this.WallHitRight) {
if (!testAll(this._x - 20, this._y + 6)) {
this.JumpFunc(0);
}
while ((!tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + 2, ((this._y + this.RAnchy()) + (this.UDy() * this.WasSix())) - 20, true)) && ((!tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + 2, ((this._y + this.RAnchy()) + (this.UDy() * this.WasSix())) - 50, true)) || (!this.Standing()))) {
this._x++;
}
while (tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + 1, ((this._y + this.RAnchy()) + (this.UDy() * this.WasSix())) - 20, true) || (tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + 1, ((this._y + this.RAnchy()) + (this.UDy() * this.WasSix())) - 50, true) && (this.Standing()))) {
this._x--;
}
if (this._currentframe == 12) {
this.moveRL = (-this.moveRL) / 2;
} else {
this.moveRL = 0;
if (Key.isDown(39)) {
this._xscale = 100;
this.gotoAndStop("WallStop");
}
}
return("Wall");
}
this._x = this._x + this.RLx();
this._y = this._y + this.RLy();
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.fliprot * this._xscale;
} else {
this.fliprot = 0;
}
if (((this._currentframe == 6) && (Math.abs(this.moveRL) < 10)) && (tehwallz.hitTest(this._x - ((this.moveRL / Math.abs(this.moveRL)) * 20), this._y + 6, true) || (tehplatformz.hitTest(this._x - ((this.moveRL / Math.abs(this.moveRL)) * 20), this._y + 6, true)))) {
this._xscale = ((-this.moveRL) / Math.abs(this.moveRL)) * 100;
this.moveUD = 0;
delete this.onEnterFrame;
this.gotoAndStop("LedgeDown");
return("LedgeDown");
}
this.JumpFunc(0);
}
if (this.temp == "Edge") {
return(this.temp);
}
if (this.WallHitLeft || (this.WallHitRight)) {
return("Wall");
}
return("Gravy");
}
};
BonusPlatRLFunc = function () {
if (Key.isDown(38)) {
var _local2 = 0;
while (_local2 < 6) {
if (InteractLayer["Door" + _local2].hitTest(this._x, this._y, true) && (InteractLayer["Door" + _local2]._currentframe == 1)) {
InteractLayer["Door" + _local2].onEnterFrame = function () {
this.play();
};
this.moveRL = 0;
this.i = _local2;
this.gotoAndStop("DoorIn");
break;
}
_local2++;
}
}
this.WallHitLeft = false;
this.WallHitRight = false;
if (this.moveRL > 0) {
this.tempR = this.RLx();
} else {
this.tempR = 0;
}
if (this.moveRL < 0) {
this.tempL = this.RLx();
} else {
this.tempL = 0;
}
if (tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) + this.tempL, (((this._y + this.LAnchy()) + this.RLy()) + (this.UDy() * this.WasSix())) - 20, true) || (this.Standing() && (tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) + this.tempL, (((this._y + this.LAnchy()) + this.RLy()) + (this.UDy() * this.WasSix())) - 50, true)))) {
this.WallHitLeft = true;
}
if (tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + this.tempR, (((this._y + this.RAnchy()) + this.RLy()) + (this.UDy() * this.WasSix())) - 20, true) || (this.Standing() && (tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + this.tempR, (((this._y + this.RAnchy()) + this.RLy()) + (this.UDy() * this.WasSix())) - 50, true)))) {
this.WallHitRight = true;
}
if (this.WallHitLeft && (this.WallHitRight)) {
this.Died();
} else {
if (this.WallHitLeft) {
if (!testAll(this._x + 20, this._y + 6)) {
this.JumpFunc(0);
}
while ((!tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) - 2, ((this._y + this.LAnchy()) + (this.UDy() * this.WasSix())) - 20, true)) && ((!tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) - 2, ((this._y + this.LAnchy()) + (this.UDy() * this.WasSix())) - 50, true)) || (!this.Standing()))) {
this._x--;
}
while (tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) - 1, ((this._y + this.LAnchy()) + (this.UDy() * this.WasSix())) - 20, true) || (tehwallz.hitTest(((this._x + this.LAnchx()) + (this.UDx() * this.WasSix())) - 1, ((this._y + this.LAnchy()) + (this.UDy() * this.WasSix())) - 50, true) && (this.Standing()))) {
this._x++;
}
if (this._currentframe == 12) {
this.moveRL = (-this.moveRL) / 2;
} else {
this.moveRL = 0;
if (Key.isDown(37)) {
this._xscale = -100;
this.gotoAndStop("WallStop");
}
}
return("Wall");
}
if (this.WallHitRight) {
if (!testAll(this._x - 20, this._y + 6)) {
this.JumpFunc(0);
}
while ((!tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + 2, ((this._y + this.RAnchy()) + (this.UDy() * this.WasSix())) - 20, true)) && ((!tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + 2, ((this._y + this.RAnchy()) + (this.UDy() * this.WasSix())) - 50, true)) || (!this.Standing()))) {
this._x++;
}
while (tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + 1, ((this._y + this.RAnchy()) + (this.UDy() * this.WasSix())) - 20, true) || (tehwallz.hitTest(((this._x + this.RAnchx()) + (this.UDx() * this.WasSix())) + 1, ((this._y + this.RAnchy()) + (this.UDy() * this.WasSix())) - 50, true) && (this.Standing()))) {
this._x--;
}
if (this._currentframe == 12) {
this.moveRL = (-this.moveRL) / 2;
} else {
this.moveRL = 0;
if (Key.isDown(39)) {
this._xscale = 100;
this.gotoAndStop("WallStop");
}
}
return("Wall");
}
if (tehplatformz["aPlatz" + this.aPlatzOn].moving) {
tehplatformz["aPlatz" + this.aPlatzOn].BonusPlatMove();
}
this.onPlatOffset = this.onPlatOffset + this.moveRL;
this.tempX = tehplatformz["aPlatz" + this.aPlatzOn]._x;
if ((((this._x + this.moveRL) + this.spread) > this.tempX) && (((this._x + this.moveRL) - this.spread) < (this.tempX + tehplatformz["aPlatz" + this.aPlatzOn]._xscale))) {
this._x = this.tempX + this.onPlatOffset;
this._y = tehplatformz["aPlatz" + this.aPlatzOn]._y;
} else {
this.JumpFunc(0);
}
}
};
WraptoGround = function (pull, anchor) {
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)) {
while ((!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 = this._x + (Math.cos((this._rotation + 90) * (Math.PI/180)) / 10);
this._y = this._y + (Math.sin((this._rotation + 90) * (Math.PI/180)) / 10);
}
while ((!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()))) {
if (!testAll((this._x + this.RAnchx()) + this.UDx(), (this._y + this.RAnchy()) + this.UDy())) {
this.oRAnchx = this.RAnchx();
this.oRAnchy = this.RAnchy();
this._rotation++;
this._x = this._x + (this.RAnchx() - this.oRAnchx);
this._y = this._y + (this.RAnchy() - this.oRAnchy);
}
if (!testAll((this._x + this.LAnchx()) + this.UDx(), (this._y + this.LAnchy()) + this.UDy())) {
this.oLAnchx = this.LAnchx();
this.oLAnchy = this.LAnchy();
this._rotation--;
this._x = this._x + (this.LAnchx() - this.oLAnchx);
this._y = this._y + (this.LAnchy() - this.oLAnchy);
}
}
this.temp = true;
} else if (testWallzNPlatz((this._x + this.RAnchx()) + (this.UDx() * this.WasSix()), (this._y + this.RAnchy()) + (this.UDy() * this.WasSix()))) {
if (this._xscale < 0) {
this.temp = "Edge";
} else {
this.temp = "BackEdge";
}
this._rotation = 0;
} else if (testWallzNPlatz((this._x + this.LAnchx()) + (this.UDx() * this.WasSix()), (this._y + this.LAnchy()) + (this.UDy() * this.WasSix()))) {
if (this._xscale > 0) {
this.temp = "Edge";
} else {
this.temp = "BackEdge";
}
this._rotation = 0;
} else {
this.temp = "Fall";
}
while (testAll(this._x + this.RAnchx(), this._y + this.RAnchy()) && (testAll(this._x + this.LAnchx(), this._y + this.LAnchy()))) {
this._x = this._x + (Math.cos((this._rotation - 90) * (Math.PI/180)) / 10);
this._y = this._y + (Math.sin((this._rotation - 90) * (Math.PI/180)) / 10);
}
while (testAll(this._x + this.RAnchx(), this._y + this.RAnchy()) || (testAll(this._x + this.LAnchx(), this._y + this.LAnchy()))) {
if (testAll(this._x + this.RAnchx(), this._y + this.RAnchy())) {
this.oRAnchx = this.RAnchx();
this.oRAnchy = this.RAnchy();
this._rotation--;
this._x = this._x + (this.RAnchx() - this.oRAnchx);
this._y = 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._x + (this.LAnchx() - this.oLAnchx);
this._y = this._y + (this.LAnchy() - this.oLAnchy);
}
}
if (Math.abs(this._rotation) < 5) {
this._rotation = 0;
}
return(this.temp);
};
RotFixer = function (rot) {
RotFix._rotation = rot;
return(RotFix._rotation);
};
PwnBaddies = function () {
if (BLayer.hitTest(this._x, this._y, true)) {
var _local2 = 0;
while (_local2 < maxBaddies) {
if (BLayer["Baddie" + _local2].hitTest(this._x + this.moveRL, this._y + this.moveUD, true) && (BLayer["Baddie" + _local2]._currentframe < 10)) {
BadStomp.start();
BLayer["Baddie" + _local2].gotoAndPlay("die");
}
_local2++;
}
}
};
CheckBaddieHit = function () {
if (_root.BLayer.hitTest(this._x + this.moveRL, this._y + this.moveUD, true)) {
if (this.moveUD > 0) {
var _local3 = 0;
while (BLayer["JumpPad" + _local3] != undefined) {
if (BLayer["JumpPad" + _local3].hitTest(this._x + this.moveRL, this._y + this.moveUD, true) && (!BLayer["JumpPad" + _local3].hitTest(this._x + this.moveRL, this._y - 2, true))) {
if (this._x > (BLayer["JumpPad" + _local3]._x + ((BLayer["JumpPad" + _local3]._width / 2) - 20))) {
this._x = BLayer["JumpPad" + _local3]._x + ((BLayer["JumpPad" + _local3]._width / 2) - 20);
}
if (this._x < (BLayer["JumpPad" + _local3]._x - ((BLayer["JumpPad" + _local3]._width / 2) + 20))) {
this._x = BLayer["JumpPad" + _local3]._x - ((BLayer["JumpPad" + _local3]._width / 2) + 20);
}
Char._rotation = BLayer["JumpPad" + _local3]._rotation;
BLayer["JumpPad" + _local3]._yscale = BLayer["JumpPad" + _local3].Thrust * 3;
BLayer["JumpPad" + _local3].spring = BLayer["JumpPad" + _local3].Thrust * 0.8;
delete BLayer["JumpPad" + _local3].onEnterFrame;
Char._x = Char._x + Char.moveRL;
Char._y = BLayer["JumpPad" + _local3]._y - (BLayer["JumpPad" + _local3]._yscale * 0.6);
Char.temp = _local3;
Char.moveUD = 0;
this.gotoAndStop("BaddieLand");
this.JumpPadLanded = true;
break;
}
_local3++;
}
}
if (!this.hurting) {
var _local3 = 0;
while (_local3 < maxBaddies) {
if (BLayer["Baddie" + _local3].hitTest(this._x + this.moveRL, this._y + this.moveUD, true) && (BLayer["Baddie" + _local3]._currentframe < 10)) {
if ((this._currentframe == 12) || (this._currentframe == 31)) {
if (BLayer["Baddie" + _local3].Status == "Stuck") {
this.moveRL = (-this.moveRL) * 1.2;
BLayer["Baddie" + _local3].gotoAndPlay("Attack");
} else if (BLayer["Baddie" + _local3].Status == "Horny") {
BLayer["Baddie" + _local3].gotoAndPlay("Attack");
} else {
BadStomp.start();
BLayer["Baddie" + _local3].gotoAndPlay("die");
}
} else {
if (!BLayer["Baddie" + _local3].hitTest(this._x + this.moveRL, this._y - Math.abs(this.moveUD), true)) {
BLayer["Baddie" + _local3]._rotation = 0;
this._rotation = 0;
if (this._x > (BLayer["Baddie" + _local3]._x + 20)) {
this._x = BLayer["Baddie" + _local3]._x + 20;
}
if (this._x < (BLayer["Baddie" + _local3]._x - 20)) {
this._x = BLayer["Baddie" + _local3]._x - 20;
}
BLayer["Baddie" + _local3].gotoAndStop("Hit");
Char.temp = _local3;
BLayer["Baddie" + _local3]._yscale = BLayer["Baddie" + _local3].Thrust * 8;
BLayer["Baddie" + _local3].spring = BLayer["Baddie" + _local3].Thrust * 2.5;
Char._y = BLayer["Baddie" + _local3]._y - (BLayer["Baddie" + _local3]._yscale * 0.4);
Char.moveUD = 0;
_local3 = 0;
while (!BLayer.hitTest(this._x + this.moveRL, this._y, true)) {
this._y++;
_local3++;
if (_root.tehground.hitTest(this._x, this._y, true)) {
this.moveRL = (-this.moveRL) * 2;
break;
}
}
BadStomp.start();
this.gotoAndStop("BaddieLand");
this.JumpPadLanded = false;
break;
}
if ((this._alpha == 100) && (this._currentframe != 16)) {
this.JumpFunc(12);
delete this.onEnterFrame;
if (this._x < BLayer["Baddie" + _local3]._x) {
this.moveRL = -12;
} else {
this.moveRL = 12;
}
this.gotoAndStop("FrontSlam");
this.hurting = true;
BLayer["Baddie" + _local3].gotoAndPlay("Attack");
HurtPants(34);
}
}
}
_local3++;
}
}
}
};
JumpPadReleasedEnterFrame = function () {
this.spring = this.spring - (((this.Thrust * this.yspringy) - this._yscale) / this.springy);
this.spring = this.spring * 0.94;
if (Math.abs(this.spring) < 0.05) {
this.gotoAndStop("RIdle");
delete this.onEnterFrame;
}
this._yscale = this._yscale - this.spring;
};
CheckInteractHit = function (ex, ey) {
if (InteractLayer.hitTest(ex, ey, true)) {
var _local3 = 0;
while (InteractLayer["Coin" + _local3]._x != undefined) {
if (InteractLayer["Coin" + _local3].hitTest(ex, ey, true) && (InteractLayer["Coin" + _local3]._currentframe == 1)) {
InteractLayer["Coin" + _local3].rot = ((_root.Char.moveRL + _root.Char.moveUD) + random(10)) * 2;
InteractLayer["Coin" + _local3].gotoAndPlay("Hit");
CoinVoice.start();
break;
}
_local3++;
}
if (InteractLayer.Trophy.hitTest(ex, ey) && (InteractLayer.Trophy._currentframe == 1)) {
InteractLayer.Trophy.play();
TrophyGetSound.start();
attachMovie("TrophyGett", "TrophyGett", 4000);
TrophyGett.ID = InteractLayer.Trophy.ID;
TrophyGet[InteractLayer.Trophy.ID - 1] = true;
Fancy_local_data.data.TrophyGet = TrophyGet;
}
if ((this.moveUD > 0) && (this._currentframe == 7)) {
if (InteractLayer.GetInBox.hitTest(ex, ey, true)) {
InteractLayer.GetInBox.nextFrame();
}
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 = 0;
this._y = 20;
this._xscale = 100;
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");
};
TestWallz = function () {
if (tehwallz.hitTest((this._x + this.moveRL) + 10, (this._y + Math.abs(this.moveRL)) + 6, true) || (tehwallz.hitTest((this._x + this.moveRL) - 10, (this._y + Math.abs(this.moveRL)) + 6, true))) {
while (tehwallz.hitTest(this._x + 5, this._y, true) || (tehwallz.hitTest(this._x - 5, this._y, true))) {
this._y--;
}
if ((!tehwallz.hitTest(this._x + 10, this._y + 2, true)) && (!tehwallz.hitTest(this._x - 10, this._y + 2, true))) {
this._y++;
}
return(true);
}
return(false);
};
Char.TestPlatz = function () {
if (tehplatformz.hitTest((this._x + this.moveRL) + 10, (this._y + Math.abs(this.moveRL)) + 10, true) || (tehplatformz.hitTest((this._x + this.moveRL) - 10, (this._y + Math.abs(this.moveRL)) + 10, true))) {
while (tehplatformz.hitTest(this._x + 10, this._y, true) || (tehplatformz.hitTest(this._x - 10, this._y, true))) {
this._y--;
}
if ((!tehplatformz.hitTest(this._x + 10, this._y + 1, true)) && (!tehplatformz.hitTest(this._x + -10, this._y + 1, true))) {
this._y++;
}
return(true);
}
return(false);
};
CheckHead = function () {
return(tehwallz.hitTest(this._x + (50 * Math.cos((this._rotation - 90) * (Math.PI/180))), this._y + (50 * Math.sin((this._rotation - 90) * (Math.PI/180))), true) || (tehground.hitTest(this._x + (50 * Math.cos((this._rotation - 90) * (Math.PI/180))), this._y + (50 * Math.sin((this._rotation - 90) * (Math.PI/180))), true)));
};
Standing = function () {
return((this._currentframe != 12) && (this._currentframe != 11));
};
mRL = function () {
if (this.moveRL == 0) {
return(0);
}
return(this.moveRL / Math.abs(this.moveRL));
};
mUD = function () {
if (this.moveUD == 0) {
return(0);
}
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._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.moveRL - this.speedRL;
} else {
this.moveRL = this.moveRL + this.speedRL;
}
if (Math.abs(this.moveRL) > 10) {
this._x = this._x + (10 * (this.moveRL / Math.abs(this.moveRL)));
} else {
this._x = 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.moveRL - this.speedRL;
} else {
this.moveRL = this.moveRL + this.speedRL;
}
if (Math.abs(this.moveRL) > this.maxRL) {
this._x = this._x + (this.maxRL * (this.moveRL / Math.abs(this.moveRL)));
} else {
this._x = this._x + this.moveRL;
}
};
PlatMoveOccupied = function () {
if (!_root.Paused) {
if (this._x > this.centerRL) {
this.moveRL = this.moveRL - this.speedRL;
} else {
this.moveRL = this.moveRL + this.speedRL;
}
if (Math.abs(this.moveRL) > 10) {
this._x = this._x + (10 * (this.moveRL / Math.abs(this.moveRL)));
} else {
this._x = this._x + this.moveRL;
}
this.smokeRL = this._x - this.oldx;
Char._x = 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.moveRL - this.speedRL;
} else {
this.moveRL = this.moveRL + this.speedRL;
}
if (Math.abs(this.moveRL) > this.maxRL) {
this._x = this._x + (this.maxRL * (this.moveRL / Math.abs(this.moveRL)));
} else {
this._x = this._x + this.moveRL;
}
this.smokeRL = this._x - this.oldx;
Char._x = 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) {
_root.attachMovie("FadeOut", "FadeOut", 100005);
FadeOut.worm = LoadIt;
};
EndLevel = function () {
removeMovieClip(Char);
removeMovieClip(tehground);
removeMovieClip(tehwallz);
removeMovieClip(tehplatformz);
removeMovieClip(PlatzSmoke);
removeMovieClip(BLayer);
removeMovieClip(InteractLayer);
removeMovieClip(Foreground);
removeMovieClip(UberForeground);
removeMovieClip(OutPut);
removeMovieClip(Background);
removeMovieClip(PauseMenu);
_root._x = 0;
_root._y = 0;
};
ColorEmPants = function () {
var _local2 = new Color(Char);
if (ColorEm < 0) {
ColorEm = PantsPallet.length - 1;
}
if (ColorEm == PantsPallet.length) {
ColorEm = 0;
}
var _local1 = new Object();
_local1.ra = PantsPallet[ColorEm][0];
_local1.rb = PantsPallet[ColorEm][1];
_local1.ga = PantsPallet[ColorEm][2];
_local1.gb = PantsPallet[ColorEm][3];
_local1.ba = PantsPallet[ColorEm][4];
_local1.bb = PantsPallet[ColorEm][5];
_local2.setTransform(_local1);
};
SkigPop = function (ex, ey, eRL, eUD) {
attachMovie("SquiggleJump", "SquiggleJump", getNextHighestDepth(), {_x:ex, _y:ey, moveRL:eRL, moveUD:(-eUD) / 2});
};
HurtPants = function (ow) {
Health = 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++;
if ((Squiggles / 100) == Math.round(Squiggles / 100)) {
OneUpSound.start();
}
};
PlaceCharBump = function (ex, ey, rot) {
tehground.attachMovie("CharBump", "CharBump", tehground.getNextDepth(), {_x:ex, _y:ey, _rotation:rot});
};
QuittoMenu = function () {
var _local2 = 1;
while (_local2 < 4) {
delete _root[("Level" + _local2) + "DontCheat"];
_local2++;
}
_local2 = 1;
while (_local2 < 10) {
delete _root[("Level" + _local2) + "DontCheat"];
_local2++;
}
Health = 100;
Lives = 3;
SnapBack = [0, 0];
ChangeLevel("Menus2");
};
LedgeIt = function () {
while ((!tehwallz.hitTest(this._x + 12, this._y - 30, true)) && (!tehwallz.hitTest(this._x - 12, this._y - 30, true))) {
this._x = this._x + (this._xscale / 100);
}
while ((!tehwallz.hitTest(this._x + 12, this._y - 61, true)) && (!tehwallz.hitTest(this._x - 12, this._y - 61, true))) {
this._y++;
}
while (tehwallz.hitTest(this._x + 12, this._y - 60, true) || (tehwallz.hitTest(this._x - 12, this._y - 60, true))) {
this._y--;
}
this.moveRL = 0;
this.moveUD = 0;
this._rotation = 0;
this.gotoAndStop("LedgeHang");
};
HangIt = function () {
while ((!tehhangz.hitTest(this._x + 12, this._y - 61, true)) && (!tehhangz.hitTest(this._x - 12, this._y - 61, true))) {
this._y++;
}
while (tehhangz.hitTest(this._x + 12, this._y - 60, true) || (tehhangz.hitTest(this._x - 12, this._y - 60, true))) {
this._y--;
}
this._xscale = (this.moveRL / Math.abs(this.moveRL)) * 100;
this.i = this.moveRL;
this.moveRL = 0;
this.moveUD = 0;
this._rotation = 0;
this.gotoAndStop("HangIt");
};
getFriction = function (ex, ey) {
if (surface.hitTest(ex, ey, true)) {
return(0.99);
}
return(0.88);
};
PantsPallet = [[100, 0, 100, -100, 100, -250], [100, 0, 0, 0, 0, 0], [0, 0, 100, 0, 0, 0], [0, 0, 0, 0, 100, 0]];
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");
_root.LoadLevel(Load);
stop();
Symbol 2 MovieClip [PermaGrid] Frame 1
stop();
Symbol 4 MovieClip [Grid] Frame 1
stop();
Symbol 8 MovieClip 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();
Symbol 8 MovieClip Frame 2
_root[_root.LevelLoaded + "CoinGot"][ID] = true;
_root.PayPants();
_root.HurtPants(-5);
onEnterFrame = function () {
_rotation = (_rotation + rot);
};
Symbol 8 MovieClip Frame 12
delete onEnterFrame;
_visible = false;
stop();
Symbol 10 MovieClip Frame 2
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 20
if (worm == 1) {
_root.Char._x = _parent["Door" + worm]._x;
_root.Char._y = _parent["Door" + worm]._y;
_root.Char.gotoAndStop("RIdle");
} else if (worm == undefined) {
_root.ChangeLevel(SnapTo);
_root.tehsnappy = true;
} else {
_root.SnapBack[0] = _x;
_root.SnapBack[1] = _y;
_root.ChangeLevel(worm);
}
Symbol 44 MovieClip Frame 23
_root.DoorCreak.start();
Symbol 44 MovieClip Frame 49
_root.DoorClose.start();
delete onEnterFrame;
Instance of Symbol 54 MovieClip "surface0" in Symbol 55 MovieClip [surfaceLevel1] Frame 1
onClipEvent (load) {
friction = 0.98;
}
Symbol 62 MovieClip [JumpPad] Frame 1
_name = ("JumpPad" + _root.JumpPadCount);
_root.JumpPadCount++;
Symbol 62 MovieClip [JumpPad] Frame 2
_yscale = (Thrust * 3);
stop();
Symbol 62 MovieClip [JumpPad] Frame 3
onEnterFrame = function () {
play();
};
Symbol 62 MovieClip [JumpPad] Frame 10
_root.Spring.start();
Symbol 62 MovieClip [JumpPad] Frame 13
_root.Char.moveRL = 0;
if (Math.abs(_rotation) > 15) {
_root.Char.TempStill = true;
}
_root.Char.JumpFunc(Thrust);
delete onEnterFrame;
Symbol 62 MovieClip [JumpPad] Frame 28
gotoAndStop (2);
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 63 MovieClip [BLayerLevel1] Frame 1
onClipEvent (load) {
Thrust = 28;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 63 MovieClip [BLayerLevel1] Frame 1
onClipEvent (load) {
Thrust = 10;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 63 MovieClip [BLayerLevel1] Frame 1
onClipEvent (load) {
Thrust = 10;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 63 MovieClip [BLayerLevel1] Frame 1
onClipEvent (load) {
Thrust = 10;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 63 MovieClip [BLayerLevel1] Frame 1
onClipEvent (load) {
Thrust = 10;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 63 MovieClip [BLayerLevel1] Frame 1
onClipEvent (load) {
Thrust = 10;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 63 MovieClip [BLayerLevel1] Frame 1
onClipEvent (load) {
Thrust = 50;
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 7
stop();
Symbol 109 MovieClip Frame 29
_root.Char.hurting = false;
_root.Char.JumpFunc(50);
_root.Char.gotoAndStop("Flying");
Symbol 109 MovieClip Frame 33
_root.attachMovie("boom!shell", "boom!shell", _root.getNextHighestDepth(), {_x:_parent._x, _y:_parent._y, _rotation:_rotation});
Symbol 109 MovieClip Frame 45
_parent.onEnterFrame = function () {
this.Barrel._rotation = this.Barrel._rotation - (this.Barrel._rotation / 6);
if (Math.abs(this.Barrel._rotation) < 1) {
this.Barrel._rotation = 0;
delete this.onEnterFrame;
}
};
Symbol 116 MovieClip 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();
Symbol 116 MovieClip Frame 2
_root[_root.LevelLoaded + "CoinGot"][ID] = true;
onEnterFrame = function () {
_rotation = (_rotation + rot);
_root.PayPants();
_root.HurtPants(-5);
};
Symbol 116 MovieClip Frame 7
onEnterFrame = function () {
_rotation = (_rotation + rot);
};
Symbol 116 MovieClip Frame 12
delete onEnterFrame;
_visible = false;
removeMovieClip(this);
stop();
Instance of Symbol 44 MovieClip "Door0" in Symbol 117 MovieClip [InteractLayerLevel2] Frame 1
onClipEvent (load) {
worm = "Bonus1";
}
Instance of Symbol 44 MovieClip "Door2" in Symbol 117 MovieClip [InteractLayerLevel2] Frame 1
onClipEvent (load) {
worm = "Bonus3";
}
Instance of Symbol 113 MovieClip "WormBox" in Symbol 117 MovieClip [InteractLayerLevel2] Frame 1
onClipEvent (load) {
worm = "Bonus2";
AtIt = "Up";
thrust = 50;
}
Instance of Symbol 44 MovieClip "Door1" in Symbol 117 MovieClip [InteractLayerLevel2] Frame 1
onClipEvent (load) {
worm = "Bonus1";
}
Symbol 121 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 438 MovieClip Frame 73
if (b == 0) {
b = 3;
} else {
b--;
gotoAndPlay (1);
}
Symbol 438 MovieClip Frame 154
gotoAndPlay (192);
Symbol 438 MovieClip Frame 290
gotoAndPlay (244);
Symbol 448 MovieClip Frame 5
_parent.RLing = 1;
Symbol 448 MovieClip Frame 10
_parent.gotoAndStop("RRun");
Symbol 461 MovieClip Frame 4
_parent._xscale = -_parent._xscale;
_parent.gotoAndStop("RWalk");
Symbol 495 MovieClip Frame 8
_parent.moveRL = 0;
_parent.gotoAndStop("RIdle");
Symbol 517 MovieClip Frame 12
stop();
Symbol 524 MovieClip Frame 1
if (_parent.crouchy == true) {
_parent.crouchy = false;
gotoAndStop (10);
}
Symbol 524 MovieClip Frame 10
stop();
onEnterFrame = function () {
temp = false;
if (_root.getFriction(_parent._x, _parent._y) > 0.9) {
if (Math.abs(_parent._rotation) > 20) {
temp = true;
}
} else if (Math.abs(_parent._rotation) > 35) {
temp = true;
}
if ((Math.abs(_parent.moveRL) < 5) && (!temp)) {
_parent.moveRL = _parent.moveRL * 0.9;
play();
} else if (CharBoarding._currentframe < Math.round(Math.abs(_parent.moveRL) / 3)) {
if (CharBoarding._currentframe == 12) {
CharBoarding.stop();
} else {
CharBoarding.play();
}
} else {
CharBoarding.gotoAndStop(Math.round(Math.abs(_parent.moveRL) / 3));
}
};
Symbol 524 MovieClip Frame 17
_parent.moveRL = 0;
_parent.gotoAndStop("RIdle");
Symbol 591 MovieClip Frame 35
stop();
Symbol 617 MovieClip Frame 1
if (_parent._parent.moveUD > -10) {
gotoAndPlay ("Fall");
}
if ((Math.abs(_parent._parent._rotation) > 45) && (_parent._parent.fliprot != 0)) {
gotoAndStop (15);
}
Symbol 617 MovieClip Frame 3
if ((!_parent._parent.Still) && (!_parent._parent.TempStill)) {
if (_parent._parent.Math.abs(_rotation < 45) && (((_parent._parent._xscale > 0) && (Key.isDown(37))) || ((_parent._parent._xscale < 0) && (Key.isDown(39))))) {
if (Math.abs(_parent._parent.moveRL) < 2) {
_parent._parent.moveRL = (-_parent._parent._xscale) / 50;
}
_parent.gotoAndStop(2);
} else if (((_parent._parent._xscale < 0) && (Key.isDown(37))) || ((((_parent._parent._xscale > 0) && (Key.isDown(39))) && (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);
}
Symbol 617 MovieClip Frame 7
stop();
Symbol 617 MovieClip Frame 15
if ((Math.abs(_parent._parent._rotation) > 45) && (_parent._parent.fliprot != 0)) {
stop();
}
Symbol 617 MovieClip Frame 28
_parent.gotoAndStop(3);
Symbol 650 MovieClip Frame 33
_parent._rotation = 0;
_parent.gotoAndStop(3);
Symbol 711 MovieClip Frame 9
_parent.gotoAndStop("RIdle");
Symbol 723 MovieClip Frame 10
stop();
Symbol 723 MovieClip Frame 17
gotoAndPlay (11);
Symbol 752 MovieClip Frame 1
gotoAndPlay (4);
Symbol 752 MovieClip Frame 19
_parent.hurting = false;
_parent.gotoAndStop("RIdle");
Symbol 788 MovieClip Frame 9
gotoAndPlay (4);
Symbol 828 MovieClip Frame 9
stop();
Symbol 839 MovieClip Frame 5
stop();
_parent.moveRL = 0;
if (_root.Health == 0) {
_parent.gotoAndStop("Die");
}
Symbol 839 MovieClip Frame 10
_parent.gotoAndStop("RIdle");
Symbol 879 MovieClip Frame 40
stop();
Symbol 894 MovieClip Frame 5
stop();
Symbol 894 MovieClip Frame 7
stop();
Symbol 961 MovieClip Frame 12
stop();
Symbol 1004 MovieClip Frame 1
onEnterFrame = function () {
if (_root.BackgroundVolume > 0) {
_root.BackgroundVolume = _root.BackgroundVolume - 5;
_root.BackgroundMusic.setVolume(_root.BackgroundVolume);
}
};
Symbol 1004 MovieClip Frame 7
_root.DeathKnell.start();
Symbol 1004 MovieClip Frame 28
stop();
i = 90;
if ((_root.LevelLoaded == "Bonus5") || (_root.LevelLoaded == "Bonus7")) {
_root.LevelLoaded = "Level2";
}
onEnterFrame = function () {
CharAngel._y--;
i--;
if (i == 0) {
if (_root.Lives == 0) {
_root.Setup = function () {
_root.Lives = 3;
};
_root.ChangeLevel("Menus7");
} else {
_root.Health = 100;
_root.Setup = function () {
};
_root.ChangeLevel(_root.LevelLoaded);
}
i = -100;
}
};
Symbol 1108 MovieClip Frame 1
gotoAndPlay (16);
Symbol 1108 MovieClip Frame 100
gotoAndPlay (74);
Symbol 1129 MovieClip Frame 21
_parent.gotoAndStop("RIdle");
_parent.WraptoGround(true, true);
Symbol 1145 MovieClip Frame 20
_parent._parent.gotoAndStop("LedgeHang");
Symbol 1162 MovieClip Frame 20
_parent._parent.gotoAndStop("LedgeHang");
Symbol 1162 MovieClip Frame 31
_parent._parent.gotoAndStop("LedgeHang");
Symbol 1250 MovieClip Frame 109
gotoAndPlay (101);
Symbol 1326 MovieClip Frame 26
if (Math.abs(_parent._rotation) < 20) {
_parent.JumpFunc(-_parent.moveUD);
}
Symbol 1326 MovieClip Frame 49
stop();
Symbol 1326 MovieClip Frame 79
stop();
Symbol 1461 MovieClip [CharPlatHang] Frame 105
gotoAndPlay (43);
Symbol 1461 MovieClip [CharPlatHang] Frame 128
gotoAndPlay (108);
Symbol 1461 MovieClip [CharPlatHang] Frame 136
gotoAndPlay (63);
Symbol 1469 MovieClip [Char] Frame 1
stop();
Idle.b = 1;
onEnterFrame = function () {
if (!_root.Paused) {
_root.PauseListener();
Idle.play();
friction = _root.getFriction(_x, _y);
if (friction > 0.9) {
RLing = 0.5;
} else {
RLing = 2;
}
if (Key.isDown(39) && (!Key.isDown(37))) {
if (moveRL < -4) {
gotoAndStop ("Slide");
} else {
if ((friction > 0.9) && (moveRL > 10)) {
gotoAndStop ("Slide");
} else if (_xscale > 0) {
gotoAndStop ("RWalk");
} else {
gotoAndStop ("Backpeddle");
}
if (moveRL < RLing) {
moveRL = RLing;
}
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if (moveRL > 4) {
gotoAndStop ("Slide");
} else {
if ((friction > 0.9) && (moveRL < -10)) {
gotoAndStop ("Slide");
} else if (_xscale < 0) {
gotoAndStop ("RWalk");
} else {
gotoAndStop ("Backpeddle");
}
if (moveRL > (-RLing)) {
moveRL = -RLing;
}
}
}
if (Math.abs(moveRL) > 0.4) {
if ((Key.isDown(37) && (Key.isDown(39))) || ((!Key.isDown(37)) && (!Key.isDown(39)))) {
crouchy = true;
gotoAndStop ("Slide");
}
} else {
moveRL = 0;
}
temp = false;
if (friction > 0.9) {
if (Math.abs(_rotation) > 20) {
temp = true;
}
} else if (Math.abs(_rotation) > 35) {
temp = true;
}
if (temp) {
if (Math.abs(_rotation) < 90) {
gotoAndStop ("Slide");
} else {
JumpFunc(0);
}
}
if (Key.isDown(40)) {
gotoAndStop ("Duck");
}
if ((this.RLFunc() == "Edge") && (moveRL == 0)) {
gotoAndStop ("Edge");
}
this.JumpListener();
} else {
Idle.stop();
}
};
Symbol 1469 MovieClip [Char] Frame 2
hurting = false;
onEnterFrame = function () {
if (!_root.Paused) {
_root.PauseListener();
CharStartup.play();
friction = _root.getFriction(_x, _y);
if (friction > 0.9) {
RLing = 0.2;
}
if ((((Key.isDown(39) && (moveRL > 0)) && (moveRL < 20)) && (_xscale > 0)) && (!Key.isDown(37))) {
moveRL = moveRL + RLing;
}
if ((((Key.isDown(37) && (moveRL < 0)) && (moveRL > -20)) && (_xscale < 0)) && (!Key.isDown(39))) {
moveRL = moveRL - RLing;
}
if (moveRL == 0) {
if (CharStartup._currentframe > 7) {
gotoAndStop ("RSlow");
}
} else if (((!(Key.isDown(39) && (moveRL > 0))) && (!(Key.isDown(37) && (moveRL < 0)))) || (Key.isDown(39) && (Key.isDown(37)))) {
moveRL = moveRL - (moveRL / Math.abs(moveRL));
if (Math.abs(moveRL) > 8) {
gotoAndStop ("Slide");
} else if (CharStartup._currentframe > 7) {
gotoAndStop ("RSlow");
}
}
if (Math.abs(moveRL) < 6) {
}
if (_rotation > 90) {
i = (180 - _rotation) / 80;
} else if (_rotation < -90) {
i = (-180 - _rotation) / 80;
} else {
i = _rotation / 80;
}
moveRL = moveRL + i;
temp = false;
if (friction > 0.9) {
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);
}
}
EveryFrame();
} else {
CharStartup.stop();
}
};
Symbol 1469 MovieClip [Char] Frame 3
onEnterFrame = function () {
if ((Key.isDown(39) && (moveRL >= 0)) && (moveRL < 20)) {
moveRL++;
}
if ((Key.isDown(37) && (moveRL <= 0)) && (moveRL > -20)) {
moveRL--;
}
if (moveRL == 0) {
}
EveryFrame();
if ((Math.abs(moveRL) < 6) && (Backpeddle._currentframe > 7)) {
_xscale = (-_xscale);
gotoAndStop ("RIdle");
}
};
Symbol 1469 MovieClip [Char] Frame 4
onEnterFrame = function () {
if (!_root.Paused) {
_root.PauseListener();
Run.play();
friction = _root.getFriction(_x, _y);
if (_rotation > 90) {
i = (180 - _rotation) / 80;
} else if (_rotation < -90) {
i = (-180 - _rotation) / 80;
} else {
i = _rotation / 80;
}
if (Key.isDown(39) && (!Key.isDown(37))) {
if (moveRL < 20) {
if (friction > 0.9) {
moveRL = moveRL + 0.2;
} else {
moveRL = moveRL + 2;
}
}
if (((moveRL < 0) || (_xscale < 0)) || (((-i) * 10) > moveRL)) {
gotoAndStop ("Slide");
}
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if (moveRL > -20) {
if (friction > 0.9) {
moveRL = moveRL - 0.2;
} else {
moveRL = moveRL - 2;
}
}
if (((moveRL > 0) || (_xscale > 0)) || (((-i) * 10) < moveRL)) {
gotoAndStop ("Slide");
}
}
if (Key.isDown(40)) {
gotoAndStop ("DownSlide");
}
if (moveRL == 0) {
gotoAndStop ("RIdle");
} else if (((!Key.isDown(39)) && (!Key.isDown(37))) || (Key.isDown(39) && (Key.isDown(37)))) {
moveRL = moveRL - (moveRL / Math.abs(moveRL));
gotoAndStop ("Slide");
}
if (friction > 0.9) {
moveRL = moveRL + i;
} else {
moveRL = moveRL + i;
}
temp = false;
if (_root.getFriction(_x, _y) > 0.9) {
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 (Math.abs(moveRL) > 20) {
moveRL = moveRL * 0.98;
}
EveryFrame();
} else {
Run.stop();
}
};
Symbol 1469 MovieClip [Char] Frame 5
onEnterFrame = function () {
_root.PauseListener();
if ((Key.isDown(39) || (Key.isDown(37))) && (!(Key.isDown(39) && (Key.isDown(37))))) {
gotoAndStop ("RIdle");
}
if (moveRL == 0) {
} else {
moveRL = moveRL - ((moveRL / Math.abs(moveRL)) * 2);
}
EveryFrame();
};
Symbol 1469 MovieClip [Char] Frame 6
CanSlide = false;
loose = false;
smokeN = 0;
onEnterFrame = function () {
if (!_root.Paused) {
if (smokeN > 0) {
smokeN--;
} else {
smokeN = 5;
i = _root.getNextHighestDepth();
_root.attachMovie("smokeFX", "smokeFX" + i, i, {_x:this._x, _y:this._y, _rotation:this._rotation, _xscale:Math.abs(moveRL) * 6, _yscale:Math.abs(moveRL) * 6});
}
temp = false;
friction = _root.getFriction(_x, _y);
if (friction > 0.9) {
if (Math.abs(_rotation) > 20) {
temp = true;
}
} else if (Math.abs(_rotation) > 35) {
temp = true;
}
if (_rotation > 90) {
i = (180 - _rotation) / 35;
} else if (_rotation < -90) {
i = (-180 - _rotation) / 35;
} else {
i = _rotation / 35;
}
if (Math.abs(moveRL + i) < 45) {
moveRL = moveRL + i;
}
if (!temp) {
if (((Key.isDown(39) && (moveRL < 20)) && (!Key.isDown(37))) && (friction < 0.9)) {
if ((moveRL > -2) && (!temp)) {
if (_xscale == 100) {
if (moveRL < 10) {
gotoAndStop ("RIdle");
}
} else {
if (moveRL < 0) {
moveRL = 0;
}
gotoAndStop ("Backpeddle");
}
} else if (!temp) {
moveRL = moveRL + 0.2;
moveRL = moveRL * friction;
if (Math.abs(moveRL) < 0.2) {
moveRL = 0;
}
if (CharSlide._currentframe < 10) {
CharSlide.gotoAndPlay(10);
}
}
}
if (((Key.isDown(37) && (moveRL > -20)) && (!Key.isDown(39))) && (friction < 0.9)) {
if ((moveRL < 2) && (!temp)) {
if (_xscale == -100) {
if (moveRL > -10) {
gotoAndStop ("RIdle");
}
} else {
if (moveRL > 0) {
moveRL = 0;
}
gotoAndStop ("Backpeddle");
}
} else if (!temp) {
moveRL = moveRL - 0.2;
moveRL = moveRL * friction;
if (Math.abs(moveRL) < 0.2) {
moveRL = 0;
}
if (CharSlide._currentframe < 10) {
CharSlide.gotoAndPlay(10);
}
}
}
}
if ((!temp) || (loose)) {
if (moveRL != 0) {
if (Math.abs(moveRL) <= 1) {
moveRL = 0;
}
moveRL = moveRL * friction;
}
}
if (Key.isDown(40)) {
if (Math.abs(_rotation) > 90) {
} else if (Math.abs(moveRL) > 5) {
gotoAndStop ("DownSlide");
} else {
gotoAndStop ("Duck");
}
}
if ((Math.abs(_rotation) > 100) && (Math.abs(moveRL) < 12)) {
JumpFunc(0);
fliprot = -0.08 * _xscale;
if (Math.abs(moveRL) < 5) {
moveRL = (-_xscale) * 0.05;
}
}
EveryFrame();
} else {
CharSlide.stop();
}
};
Symbol 1469 MovieClip [Char] Frame 7
onEnterFrame = function () {
if ((moveUD > -12) && (CharJump.CharRegJump._currentframe < 8)) {
CharJump.CharRegJump.play();
}
if (CharJump._currentframe == 2) {
CharJump._rotation = CharJump._rotation - 11;
}
if ((CharJump.CharRegJump._currentframe < 15) && (moveUD > 4)) {
CharJump.CharRegJump.gotoAndPlay(15);
}
if (Still || (TempStill)) {
if (TempStill && (moveUD > 0)) {
Still = false;
TempStill = false;
}
} else {
if (Key.isDown(39) && (moveRL < 8)) {
if (moveRL < 0) {
moveRL = moveRL * 0.95;
}
moveRL = moveRL + 0.5;
}
if (Key.isDown(37) && (moveRL > -8)) {
if (moveRL > 0) {
moveRL = moveRL * 0.95;
}
moveRL = moveRL - 0.5;
}
}
if (this.moveUD < 25) {
if (((!Key.isDown(Jump)) || (FloatUp <= 0)) || (moveUD > 0)) {
FloatUp = 0;
moveUD = moveUD + 1;
} else {
FloatUp--;
}
}
if (((_root.InteractLayer.WormBox.AtIt == "Up") && (this.moveUD < 0)) || ((_root.InteractLayer.WormBox.AtIt == "Down") && (this.moveUD > 0))) {
if (_root.InteractLayer.WormBox.hitTest(this._x, this._y, this)) {
this.moveRL = 0;
this.moveUD = -_root.InteractLayer.WormBox.thrust;
this.Still = true;
this.gotoAndStop("Null");
if (_root.InteractLayer.WormBox.worm == undefined) {
_root.ChangeLevel(_root.SnapTo);
_root.tehsnappy = true;
} else {
_root.ChangeLevel(_root.InteractLayer.WormBox.worm);
_root.SnapBack[0] = this._x - 200;
_root.SnapBack[1] = this._y;
}
}
}
if ((Math.abs(this._rotation) > 45) && (this.fliprot != 0)) {
this._rotation = this._rotation + this.fliprot;
} else {
this._rotation = this._rotation * 0.8;
}
JumpGuide();
};
Symbol 1469 MovieClip [Char] Frame 8
temp = false;
if (_root.getFriction(_x, _y) > 0.9) {
if (Math.abs(_rotation) > 20) {
temp = true;
}
} else if (Math.abs(_rotation) > 35) {
temp = true;
}
if (temp) {
if (Math.abs(_rotation) < 90) {
gotoAndStop ("Slide");
} else {
JumpFunc(0);
}
}
onEnterFrame = function () {
if (Key.isDown(39) || (Key.isDown(37))) {
gotoAndStop ("RIdle");
}
if (Key.isDown(40)) {
gotoAndStop ("Duck");
}
if (moveRL != 0) {
moveRL = moveRL - (moveRL / Math.abs(moveRL));
if (Math.abs(moveRL) < 0.5) {
moveRL = 0;
}
}
EveryFrame();
};
_root.attachMovie("LandPoof", "LandPoof", jpN);
_root.LandPoof._x = _x;
_root.LandPoof._y = _y;
Symbol 1469 MovieClip [Char] Frame 9
i = 0;
_root.CharHurt.start();
onEnterFrame = function () {
_rotation = (_rotation * 0.9);
if (moveUD < 25) {
moveUD++;
}
CharFrontSlam._rotation = CharFrontSlam._rotation + (((moveRL * 1.5) * _xscale) / 100);
JumpGuide(true);
};
Symbol 1469 MovieClip [Char] Frame 10
moveRL = 0;
moveUD = 0;
delete onEnterFrame;
Symbol 1469 MovieClip [Char] Frame 11
if (yerdown) {
CharDuck.gotoAndStop(6);
yerdown = false;
}
if ((!_root.testAll((_x + RAnchx()) + 10, (_y + 10) + RAnchy())) && (_root.tehwallz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true) || (_root.tehplatformz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true)))) {
_xscale = -100;
gotoAndStop ("LedgeDown");
moveRL = 0;
moveUD = 0;
} else if ((!_root.testAll((_x + LAnchx()) - 10, (_y + 10) + LAnchy())) && (_root.tehwallz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true) || (_root.tehplatformz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true)))) {
_xscale = 100;
gotoAndStop ("LedgeDown");
moveRL = 0;
moveUD = 0;
}
onEnterFrame = function () {
i = 0;
if (Math.abs(moveRL) > 1) {
moveRL = moveRL - ((moveRL / Math.abs(moveRL)) / 2);
} else {
moveRL = 0;
}
moveRL = moveRL + (_rotation / 30);
if (Key.isDown(40) || (CheckHead())) {
if ((!_root.testAll((_x + RAnchx()) + 10, (_y + 10) + RAnchy())) && (_root.tehwallz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true) || (_root.tehplatformz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true)))) {
_xscale = -100;
gotoAndStop ("LedgeDown");
} else if ((!_root.testAll((_x + LAnchx()) - 10, (_y + 10) + LAnchy())) && (_root.tehwallz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true) || (_root.tehplatformz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true)))) {
_xscale = 100;
gotoAndStop ("LedgeDown");
}
CharDuck.nextFrame();
if ((moveRL == 0) || (i == 0)) {
CharDuck.DuckWalk.gotoAndStop(1);
} else {
CharDuck.DuckWalk.gotoAndStop(2);
}
if (((Math.abs(moveRL) < 30) && (Math.abs(_rotation) > 15)) && ((moveRL * _rotation) >= 0)) {
gotoAndStop ("FSRoll");
}
} else {
CharDuck.prevFrame();
if (CharDuck._currentframe == 1) {
gotoAndStop ("RIdle");
}
this.JumpListener();
}
RLFunc();
};
Symbol 1469 MovieClip [Char] Frame 12
onEnterFrame = function () {
if (smokeN > 0) {
smokeN--;
} else {
smokeN = 5;
i = _root.getNextHighestDepth();
_root.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 (_rotation > 90) {
i = (180 - _rotation) / 25;
} else if (_rotation < -90) {
i = (-180 - _rotation) / 25;
} else {
i = _rotation / 25;
}
if (Math.abs(moveRL + i) < 40) {
moveRL = moveRL + i;
}
moveRL = moveRL * 0.98;
FSRoller._rotation = FSRoller._rotation - ((Math.abs(moveRL) * 2) * ((moveRL * _xscale) / (-Math.abs(moveRL * _xscale))));
if (((Math.abs(moveRL) < 1) && (Math.abs(_rotation) < 15)) || ((!Key.isDown(40)) && (!CheckHead()))) {
yerdown = true;
gotoAndStop ("Duck");
}
if (Key.isDown(40)) {
if ((!_root.testAll((_x + RAnchx()) + 10, (_y + 10) + RAnchy())) && (_root.tehwallz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true) || (_root.tehplatformz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true)))) {
_xscale = -100;
gotoAndStop ("LedgeDown");
} else if ((!_root.testAll((_x + LAnchx()) - 10, (_y + 10) + LAnchy())) && (_root.tehwallz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true) || (_root.tehplatformz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true)))) {
_xscale = 100;
gotoAndStop ("LedgeDown");
}
}
RLFunc();
if (!CheckHead()) {
JumpListener();
}
};
Symbol 1469 MovieClip [Char] Frame 13
if (moveRL == 0) {
RL = _xscale / 100;
} else {
RL = moveRL / Math.abs(moveRL);
}
onEnterFrame = function () {
if (RL > 0) {
if (!Key.isDown(39)) {
if (lean._currentframe > 10) {
lean.gotoAndStop(10);
}
lean.prevFrame();
if (lean._currentframe == 1) {
gotoAndStop ("RIdle");
}
} else {
var _local2 = 0;
while (_root.tehwallz["Box" + _local2]._x != undefined) {
if (_root.tehwallz["Box" + _local2].hitTest(_x + 15, _y - 45, true) && (!_root.tehwallz.hitTest(_root.tehwallz["Box" + _local2]._x + 45, _root.tehwallz["Box" + _local2]._y, true))) {
_x = (_x + 2);
_root.tehwallz["Box" + _local2]._x = _root.tehwallz["Box" + _local2]._x + 2;
_root.Foreground[("Box" + _local2) + "Face"]._x = _root.Foreground[("Box" + _local2) + "Face"]._x + 2;
trace(wallJumpFell);
if (!_root.tehwallz.hitTest(_x - 12, _y + 6, true)) {
JumpFunc(0);
}
temp = false;
break;
}
_local2++;
}
lean.nextFrame();
}
} else if (!Key.isDown(37)) {
if (lean._currentframe > 10) {
lean.gotoAndStop(10);
}
lean.prevFrame();
if (lean._currentframe == 1) {
gotoAndStop ("RIdle");
}
} else {
var _local2 = 0;
while (_root.tehwallz["Box" + _local2]._x != undefined) {
if (_root.tehwallz["Box" + _local2].hitTest(_x - 15, _y - 45, true) && (!_root.tehwallz.hitTest(_root.tehwallz["Box" + _local2]._x - 45, _root.tehwallz["Box" + _local2]._y, true))) {
_x = (_x - 2);
_root.tehwallz["Box" + _local2]._x = _root.tehwallz["Box" + _local2]._x - 2;
_root.Foreground[("Box" + _local2) + "Face"]._x = _root.Foreground[("Box" + _local2) + "Face"]._x - 2;
trace(wallJumpFell);
if (!_root.tehwallz.hitTest(_x + 12, _y + 6, true)) {
JumpFunc(0);
}
temp = false;
break;
}
_local2++;
}
lean.nextFrame();
}
if (JumpListener()) {
wallJumpFell = true;
} else {
RLFunc();
}
if (lean._currentframe == 19) {
lean.gotoAndPlay(10);
}
};
Symbol 1469 MovieClip [Char] Frame 14
launch = 0;
step = 0;
if (JumpPadLanded) {
var PadBad = "JumpPad";
var springy = 10;
var yspringy = 3;
var ycharup = 60;
onEnterFrame = function () {
_root.BLayer[PadBad + temp].spring = _root.BLayer[PadBad + temp].spring - (((_root.BLayer[PadBad + temp].Thrust * yspringy) - _root.BLayer[PadBad + temp]._yscale) / springy);
_root.BLayer[PadBad + temp]._yscale = _root.BLayer[PadBad + temp]._yscale - _root.BLayer[PadBad + temp].spring;
if ((_root.BLayer[PadBad + temp].spring < _root.BLayer[PadBad + temp].Thrust) && (_root.BLayer[PadBad + temp]._yscale > (_root.BLayer[PadBad + temp].Thrust * yspringy))) {
_root.Spring.start();
_root.BLayer[PadBad + temp].onEnterFrame = _root.JumpPadReleasedEnterFrame;
_root.BLayer[PadBad + temp].springy = springy;
_root.BLayer[PadBad + temp].yspringy = yspringy;
_root.BLayer[PadBad + temp].ycharup = ycharup;
JumpFunc(_root.BLayer[PadBad + temp].Thrust);
}
_y = (_root.BLayer[PadBad + temp]._y - (_root.BLayer[PadBad + temp]._yscale * (ycharup / 100)));
};
} else {
var PadBad = "Baddie";
var springy = 1.5;
var yspringy = 7;
var ycharup = 35;
onEnterFrame = function () {
_root.BLayer[PadBad + temp].spring = _root.BLayer[PadBad + temp].spring - (((_root.BLayer[PadBad + temp].Thrust * yspringy) - _root.BLayer[PadBad + temp]._yscale) / springy);
_root.BLayer[PadBad + temp]._yscale = _root.BLayer[PadBad + temp]._yscale - _root.BLayer[PadBad + temp].spring;
_root.BLayer[PadBad + temp]._xscale = ((100 - _root.BLayer[PadBad + temp]._yscale) + 100) * (_root.BLayer[PadBad + temp]._xscale / Math.abs(_root.BLayer[PadBad + temp]._xscale));
if ((_root.BLayer[PadBad + temp].spring < _root.BLayer[PadBad + temp].Thrust) && (_root.BLayer[PadBad + temp]._yscale > (_root.BLayer[PadBad + temp].Thrust * yspringy))) {
_root.BLayer[PadBad + temp]._xscale = (_root.BLayer[PadBad + temp]._xscale / Math.abs(_root.BLayer[PadBad + temp]._xscale)) * 100;
_root.BLayer[PadBad + temp]._yscale = 100;
_root.BLayer[PadBad + temp].gotoAndPlay("die");
if (Key.isDown(Jump)) {
JumpFunc(_root.BLayer[PadBad + temp].Thrust * 1.4);
} else {
JumpFunc(_root.BLayer[PadBad + temp].Thrust);
}
}
_y = (_root.BLayer[PadBad + temp]._y - (_root.BLayer[PadBad + temp]._yscale * (ycharup / 100)));
};
}
Symbol 1469 MovieClip [Char] Frame 15
trace(onEnterFrame);
delete onEnterFrame;
stop();
Symbol 1469 MovieClip [Char] Frame 16
this._xscale = 100;
onEnterFrame = function () {
if (_x < _root.InteractLayer["Door" + i]._x) {
_x = (_x + 4);
}
if (_x > _root.InteractLayer["Door" + i]._x) {
_x = (_x - 4);
}
if (Math.abs(_x - InteractLayer["Door" + i]._x) < 4) {
_x = InteractLayer["Door" + i]._x;
}
};
Symbol 1469 MovieClip [Char] Frame 17
onEnterFrame = function () {
moveRL = moveRL * 0.8;
if (moveUD < 35) {
moveUD++;
}
if (_root.tehwallz.hitTest(_x, _y + moveUD, true)) {
JumpLand(true);
} else {
_x = (_x + moveRL);
_y = (_y + moveUD);
}
};
Symbol 1469 MovieClip [Char] Frame 18
moveRL = 0;
moveUD = 0;
_xscale = (-_xscale);
fliprot = 0;
_rotation = 0;
onEnterFrame = function () {
if ((!_root.tehwallz.hitTest(_x + 25, _y - 25, true)) && (!_root.tehwallz.hitTest(_x - 25, _y - 25, true))) {
JumpFunc(0);
}
if (_root.testAll(_x, (_y + moveUD) + 20)) {
wallJumpFell = true;
JumpFunc(0);
}
if (!Key.isDown(this.Jump)) {
this.SisDown = false;
}
if (Key.isDown(this.Jump) && (!this.SisDown)) {
SisDown = true;
CharWallJump.gotoAndPlay("Leap");
} else if (CharWallJump._currentframe > 10) {
moveUD = moveUD + 0.2;
if (moveUD > 3.5) {
JumpFunc(0);
moveUD = 3.6;
wallJumpFell = true;
}
}
if (CharWallJump._currentframe > 28) {
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(15);
}
}
JumpGuide();
};
Symbol 1469 MovieClip [Char] Frame 20
onEnterFrame = function () {
if (Key.isDown(39)) {
_root._x = _root._x - 40;
_x = (_x + 40);
}
if (Key.isDown(37)) {
_root._x = _root._x + 40;
_x = (_x - 40);
}
if (Key.isDown(38)) {
_root._y = _root._y + 40;
_y = (_y - 40);
}
if (Key.isDown(40)) {
_root._y = _root._y - 40;
_y = (_y + 40);
}
};
Symbol 1469 MovieClip [Char] Frame 21
moveRL = 0;
moveUD = 0;
_alpha = 100;
_root.PlaceCharBump(_x, _y, _rotation);
delete onEnterFrame;
Symbol 1469 MovieClip [Char] Frame 22
delete onEnterFrame;
Symbol 1469 MovieClip [Char] Frame 23
CanSlide = false;
loose = false;
onEnterFrame = function () {
if (!_root.Paused) {
EveryFrame();
}
};
Symbol 1469 MovieClip [Char] Frame 24
moveRL = 0;
moveUD = 0;
onEnterFrame = function () {
if (!_root.Paused) {
if (!Key.isDown(Jump)) {
SisDown = false;
}
if (Key.isDown(Jump) && (!SisDown)) {
SisDown = true;
Still = false;
TempStill = false;
FloatUp = 6;
JumpFunc(12);
wallJumpFell = true;
}
if (Key.isDown(40)) {
Still = false;
TempStill = false;
JumpFunc(0);
}
if (Key.isDown(38) && (!_root.testAll(_x + (_xscale / 2), _y - 100))) {
gotoAndStop ("LedgeUp");
}
}
};
Symbol 1469 MovieClip [Char] Frame 25
moveRL = 0;
moveUD = 0;
onEnterFrame = function () {
_x = (_x + ((_xscale / 100) * 1.2));
_y = (_y - 2.9);
CharLedge._x = CharLedge._x - 1.2;
CharLedge._y = CharLedge._y + 2.9;
};
Symbol 1469 MovieClip [Char] Frame 26
if (_currentframe != 26) {
gotoAndStop ("LedgeDown");
}
if (Math.abs(moveRL) > 1) {
LedgeDownHow.gotoAndStop(2);
if (Math.abs(moveRL) < 10) {
LedgeDownHow.CharLedge.gotoAndPlay("slower");
tempX = 3;
tempY = 6;
} else {
tempX = 1.2;
tempY = 3.1;
}
} else {
LedgeDownHow.gotoAndStop(1);
tempX = 1.2;
tempY = 3.1;
}
moveRL = 0;
moveUD = 0;
i = 0;
onEnterFrame = function () {
if (_root.testAll(_x + ((_xscale / 100) * 11), (_y + 6) + i)) {
_x = (_x - (_xscale / 75));
}
if (_root.testAll(_x - ((_xscale / 100) * 20), _y, true)) {
gotoAndStop ("RIdle");
}
_y = (_y + tempY);
i = i - tempY;
LedgeDownHow._x = LedgeDownHow._x + tempX;
LedgeDownHow._y = LedgeDownHow._y - tempY;
};
Symbol 1469 MovieClip [Char] Frame 27
hurting = true;
onEnterFrame = function () {
if (Key.isDown(39) && (_rotation < 30)) {
_rotation = (_rotation+1);
_root.InteractLayer.Cannon.Barrel._rotation++;
}
if (Key.isDown(37) && (_rotation > -30)) {
_rotation = (_rotation-1);
_root.InteractLayer.Cannon.Barrel._rotation--;
}
if (Key.isDown(Jump)) {
if (_rotation < 0) {
_xscale = -100;
} else {
_xscale = 100;
}
_root.InteractLayer.Cannon.Barrel.gotoAndPlay("fire!");
InCannon.gotoAndPlay("fire!");
delete onEnterFrame;
}
};
Symbol 1469 MovieClip [Char] Frame 28
onEnterFrame = function () {
if (this.moveUD < 35) {
moveUD++;
}
JumpGuide();
if (Math.abs(_rotation) > 20) {
Fly._rotation = ((((-Math.atan2(this.moveRL, this.moveUD)) / (Math.PI/180)) - _rotation) - 180) * (_xscale / 100);
} else if (moveUD < 5) {
this._rotation = this._rotation * 0.8;
}
};
Symbol 1469 MovieClip [Char] Frame 29
if ((moveRL * _xscale) < 0) {
CharHang.gotoAndPlay(22);
} else {
CharHang.gotoAndPlay(6);
}
moveRL = i / 2;
onEnterFrame = function () {
if (!_root.Paused) {
if (Key.isDown(39) && (moveRL < 3.5)) {
moveRL = moveRL + 0.5;
_xscale = 100;
}
if (Key.isDown(37) && (moveRL > -3.5)) {
moveRL = moveRL - 0.5;
_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))) {
mRL = moveRL / Math.abs(moveRL);
while ((_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;
}
if (moveRL == 0) {
if ((CharHang._currentframe > 105) && (CharHang._currentframe < 136)) {
CharHang.gotoAndPlay(136);
}
} else {
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
if (Math.abs(moveRL) < 1) {
moveRL = 0;
} else {
moveRL = moveRL - ((moveRL / Math.abs(moveRL)) / 2);
}
}
if ((CharHang._currentframe < 106) && (Math.abs(moveRL) > 1)) {
CharHang.gotoAndPlay(106);
}
}
_x = (_x + moveRL);
if (!Key.isDown(Jump)) {
SisDown = false;
}
if (Key.isDown(Jump) && (!SisDown)) {
SisDown = true;
Still = false;
TempStill = false;
FloatUp = 6;
JumpFunc(12);
}
if (Key.isDown(40)) {
Still = false;
TempStill = false;
JumpFunc(0);
}
}
};
Symbol 1469 MovieClip [Char] Frame 30
FSRoller.stop();
onEnterFrame = function () {
};
Symbol 1469 MovieClip [Char] Frame 31
if (yerdown) {
CharDuck.gotoAndStop(6);
yerdown = false;
}
if ((!_root.testAll((_x + RAnchx()) + 10, (_y + 10) + RAnchy())) && (_root.tehwallz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true) || (_root.tehplatformz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true)))) {
_xscale = -100;
gotoAndStop ("LedgeDown");
} else if ((!_root.testAll((_x + LAnchx()) - 10, (_y + 10) + LAnchy())) && (_root.tehwallz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true) || (_root.tehplatformz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true)))) {
_xscale = 100;
gotoAndStop ("LedgeDown");
}
onEnterFrame = function () {
if (smokeN > 0) {
smokeN--;
} else {
smokeN = 5;
i = _root.getNextHighestDepth();
_root.attachMovie("smokeFX", "smokeFX" + i, i, {_x:this._x, _y:this._y, _rotation:this._rotation, _xscale:Math.abs(moveRL) * 6, _yscale:Math.abs(moveRL) * 6});
}
friction = _root.getFriction(_x, _y);
if (friction > 0.9) {
if (Math.abs(_rotation) > 20) {
temp = true;
}
} else if (Math.abs(_rotation) > 35) {
temp = true;
}
if (_rotation > 90) {
i = (180 - _rotation) / 35;
} else if (_rotation < -90) {
i = (-180 - _rotation) / 35;
} else {
i = _rotation / 35;
}
if (Math.abs(moveRL + i) < 45) {
moveRL = moveRL + i;
}
if ((moveRL * _xscale) < 100) {
gotoAndStop ("FSRoll");
}
i = 0;
if (friction < 0.9) {
if (Math.abs(moveRL) > 0.5) {
moveRL = moveRL - ((moveRL / Math.abs(moveRL)) / 2);
} else {
moveRL = 0;
}
} else if (Math.abs(moveRL) > 0.25) {
moveRL = moveRL - ((moveRL / Math.abs(moveRL)) / 4);
} else {
moveRL = 0;
}
if (Key.isDown(40) || (CheckHead())) {
if ((!_root.testAll((_x + RAnchx()) + 10, (_y + 10) + RAnchy())) && (_root.tehwallz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true) || (_root.tehplatformz.hitTest((_x + LAnchx()) - 10, (_y + 10) + LAnchy(), true)))) {
_xscale = -100;
gotoAndStop ("LedgeDown");
} else if ((!_root.testAll((_x + LAnchx()) - 10, (_y + 10) + LAnchy())) && (_root.tehwallz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true) || (_root.tehplatformz.hitTest((_x + RAnchx()) + 10, (_y + 10) + RAnchy(), true)))) {
_xscale = 100;
gotoAndStop ("LedgeDown");
}
CharDuck.nextFrame();
if ((moveRL == 0) || (i == 0)) {
CharDuck.DuckWalk.gotoAndStop(1);
} else {
CharDuck.DuckWalk.gotoAndStop(2);
}
} else {
CharDuck.prevFrame();
if (CharDuck._currentframe == 1) {
gotoAndStop ("RIdle");
}
this.JumpListener();
}
RLFunc();
};
Symbol 1485 MovieClip [Spider] Frame 1
if (freeze != true) {
onEnterFrame = function () {
if ((Math.abs((_x + _root._x) - 360) < 400) && (Math.abs((_y + _root._y) - 240) < 240)) {
while (!_root.testAll(_x, _y)) {
_y = (_y+1);
}
nextFrame();
}
};
} else {
while (!_root.testAll(_x, _y)) {
_y = (_y+1);
}
Spider.stop();
}
stop();
Symbol 1485 MovieClip [Spider] Frame 2
moveRL = _xscale / 25;
onEnterFrame = function () {
if (_root.Paused) {
Spider.stop();
} else {
Spider.play();
if (Math.abs((_x + _root._x) - 360) > 400) {
prevFrame();
}
temp = RLFunc();
if ((temp == "Wall") || (temp == "Edge")) {
_xscale = (-_xscale);
moveRL = _xscale / 25;
}
}
};
stop();
Symbol 1485 MovieClip [Spider] Frame 3
gotoAndStop ("RIdle");
Symbol 1485 MovieClip [Spider] Frame 4
onEnterFrame = function () {
if (!Paused) {
moveUD++;
JumpGuide();
}
};
stop();
Symbol 1485 MovieClip [Spider] Frame 11
delete onEnterFrame;
Symbol 1485 MovieClip [Spider] Frame 12
moveUD = -10;
if (_x > _root.Char._x) {
moveRL = 5;
} else {
moveRL = -5;
}
onEnterFrame = function () {
if (_root.Paused) {
Spider.stop();
} else {
Spider.play();
_x = (_x + moveRL);
Spider._rotation = Spider._rotation + (moveRL * (_xscale / 25));
moveUD++;
_y = (_y + moveUD);
if (_y > ((-_root._y) + 600)) {
removeMovieClip(this);
}
}
};
stop();
Symbol 1485 MovieClip [Spider] Frame 15
delete onEnterFrame;
Symbol 1485 MovieClip [Spider] Frame 33
gotoAndStop ("RIdle");
Symbol 1495 MovieClip [boom!shell] Frame 10
removeMovieClip(this);
Symbol 1522 MovieClip [Snail] Frame 1
if (freeze != true) {
onEnterFrame = function () {
if ((Math.abs((_x + _root._x) - 360) < 400) && (Math.abs((_y + _root._y) - 240) < 240)) {
while (!_root.testAll(_x, _y)) {
_y = (_y+1);
}
nextFrame();
}
};
} else {
while (!_root.testAll(_x, _y)) {
_y = (_y+1);
}
Spider.stop();
}
stop();
Symbol 1522 MovieClip [Snail] Frame 2
if (shelled) {
gotoAndStop ("shelled");
}
moveRL = _xscale / 50;
onEnterFrame = function () {
if (_root.Paused) {
Spider.stop();
} else {
Spider.play();
if (Math.abs((_x + _root._x) - 360) > 400) {
prevFrame();
}
temp = RLFunc();
if ((temp == "Wall") || (temp == "Edge")) {
_xscale = (-_xscale);
moveRL = _xscale / 50;
}
}
};
stop();
Symbol 1522 MovieClip [Snail] Frame 3
gotoAndStop ("RIdle");
Symbol 1522 MovieClip [Snail] Frame 4
onEnterFrame = function () {
if (!Paused) {
moveUD++;
JumpGuide();
}
};
stop();
Symbol 1522 MovieClip [Snail] Frame 10
delete onEnterFrame;
Symbol 1522 MovieClip [Snail] Frame 35
_root.SpawnBaddies(_x, _y, "SnailShell", _xscale, ID, "InteractLayer");
removeMovieClip(this);
Symbol 1523 MovieClip [SnailShell] Frame 1
if (freeze != true) {
onEnterFrame = function () {
if (Math.abs((_x + _root._x) - 360) < 400) {
while (!_root.testAll(_x, _y)) {
_y = (_y+1);
}
nextFrame();
}
};
} else {
while (!_root.testAll(_x, _y)) {
_y = (_y+1);
}
Spider.stop();
}
stop();
Symbol 1523 MovieClip [SnailShell] Frame 2
if (moveUD < -5) {
JumpFunc((-moveUD) / 2);
}
onEnterFrame = function () {
InShell._rotation = InShell._rotation + (((moveRL * _xscale) / 100) * 1.5);
InShell._y = -22 + Math.abs(InShell._rotation / 15);
if (hitTest(_root.Char._x, _root.Char._y, true)) {
if (_root.Char._x > _x) {
moveRL = -10;
} else {
moveRL = 10;
}
moveRL = moveRL + _root.Char.moveRL;
JumpFunc(Math.abs(moveRL) / 2);
}
if (_rotation > 90) {
i = (180 - _rotation) / 45;
} else if (_rotation < -90) {
i = (-180 - _rotation) / 45;
} else {
i = _rotation / 45;
}
if (Math.abs(moveRL + i) < 45) {
moveRL = moveRL + i;
}
PwnBaddies();
oRL = moveRL;
temp = RLFunc();
if ((temp == "Wall") || (temp == "Edge")) {
moveRL = (-oRL) / 2;
}
};
stop();
Symbol 1523 MovieClip [SnailShell] Frame 3
gotoAndStop ("RIdle");
Symbol 1523 MovieClip [SnailShell] Frame 4
onEnterFrame = function () {
if (!Paused) {
moveUD++;
if (hitTest(_root.Char._x, _root.Char._y, true)) {
if (_root.Char._x > _x) {
moveRL = -5;
} else {
moveRL = 5;
}
moveRL = moveRL + _root.Char.moveRL;
}
InShell._rotation = InShell._rotation + (((moveRL * _xscale) / 100) * 1.5);
oRL = moveRL;
PwnBaddies();
if (JumpGuide() == "Wall") {
moveRL = (-oRL) / 2;
}
}
};
stop();
Symbol 1545 MovieClip [smokeFX] Frame 31
removeMovieClip(this);
Symbol 1557 MovieClip 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});
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 1580 MovieClip [BLayerLevel2] Frame 1
onClipEvent (load) {
Thrust = 35;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 1580 MovieClip [BLayerLevel2] Frame 1
onClipEvent (load) {
Thrust = 26;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 1580 MovieClip [BLayerLevel2] Frame 1
onClipEvent (load) {
Thrust = 33;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 1580 MovieClip [BLayerLevel2] Frame 1
onClipEvent (load) {
Thrust = 18;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 1580 MovieClip [BLayerLevel2] Frame 1
onClipEvent (load) {
Thrust = 22;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 1580 MovieClip [BLayerLevel2] Frame 1
onClipEvent (load) {
Thrust = 32;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 1595 MovieClip [BLayerLevel8] Frame 1
onClipEvent (load) {
Thrust = 40;
}
Instance of Symbol 62 MovieClip [JumpPad] in Symbol 1595 MovieClip [BLayerLevel8] Frame 1
onClipEvent (load) {
Thrust = 35;
}
Instance of Symbol 44 MovieClip "Door0" in Symbol 1596 MovieClip [InteractLayerLevel8] Frame 1
onClipEvent (load) {
worm = "Bonus1";
SnapBack = true;
}
Instance of Symbol 44 MovieClip "Door1" in Symbol 1596 MovieClip [InteractLayerLevel8] Frame 1
onClipEvent (load) {
worm = "Bonus1";
SnapBack = true;
}
Instance of Symbol 44 MovieClip "Door2" in Symbol 1596 MovieClip [InteractLayerLevel8] Frame 1
onClipEvent (load) {
worm = "Level2";
SnapBack = false;
}
Instance of Symbol 113 MovieClip "WormBox" in Symbol 1596 MovieClip [InteractLayerLevel8] Frame 1
onClipEvent (load) {
worm = "Bonus2";
AtIt = "Up";
thrust = 50;
}
Symbol 1598 MovieClip [FadeIn] Frame 36
_root.BackgroundVolume = 100;
_root.BackgroundMusic.setVolume(_root.BackgroundVolume);
removeMovieClip(this);
Symbol 1599 MovieClip [FadeOut] Frame 1
_x = (-_root._x);
_y = (-_root._y);
if ((substring(_root.LevelLoaded, 1, 5)) == (substring(worm, 1, 5))) {
onEnterFrame = function () {
_x = (-_root._x);
_y = (-_root._y);
};
} else {
onEnterFrame = function () {
_x = (-_root._x);
_y = (-_root._y);
if (_root.BackgroundVolume > 0) {
_root.BackgroundVolume = _root.BackgroundVolume - 5;
_root.BackgroundMusic.setVolume(_root.BackgroundVolume);
}
};
}
Symbol 1599 MovieClip [FadeOut] Frame 36
if ((substring(_root.LevelLoaded, 1, 5)) != (substring(worm, 1, 5))) {
_root.BackgroundMusic.stop();
}
_root.EndLevel();
_root.LoadLevel(worm);
removeMovieClip(this);
Symbol 1608 MovieClip [PauseMenu] Frame 6
stop();
Symbol 1608 MovieClip [PauseMenu] Frame 12
_root.onEnterFrame = _root.unpausedEnterFrame;
_root.Paused = false;
removeMovieClip(this);
Symbol 1631 MovieClip Frame 1
ID = _root.aPlatzCount;
_name = ("aPlatz" + ID);
_root.Foreground.attachMovie("aPlatzSmoke", "aPlatzSmoke" + ID, _root.Foreground.getNextHighestDepth(), {_x:_x, _y:_y, _xscale:_xscale});
_root.aPlatzCount++;
if (anchorDist != undefined) {
circling = true;
moving = true;
anchorX = _x + (anchorDist * Math.sin(rotOffset * (Math.PI/180)));
anchorY = _y + ((-anchorDist) * Math.cos(rotOffset * (Math.PI/180)));
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;
}
smokeRL = 0;
smokeUD = 0;
stop();
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = 200;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 2;
anchorDist = 100;
rotOffset = -90;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 2;
anchorDist = 100;
rotOffset = 90;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = -100;
rotOffset = -20;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = 100;
rotOffset = -20;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 0.4;
maxSpeed = 15;
centerOffset = 400;
rotOffset = 90;
onlyOnStand = true;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = 200;
rotOffset = 0;
onlyOnStand = true;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 2;
anchorDist = 200;
rotOffset = -90;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 2;
anchorDist = 200;
rotOffset = 90;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 0.4;
maxSpeed = 15;
centerOffset = 400;
rotOffset = 90;
onlyOnStand = true;
}
Instance of Symbol 1631 MovieClip in Symbol 1632 MovieClip [tehplatformzBonus3] Frame 1
onClipEvent (load) {
accel = 0.2;
maxSpeed = 5;
centerOffset = 100;
onlyOnStand = true;
}
Instance of Symbol 62 MovieClip [JumpPad] "JumpPad0" in Symbol 1640 MovieClip Frame 1
onClipEvent (load) {
Thrust = 28;
}
Instance of Symbol 44 MovieClip "Door0" in Symbol 1641 MovieClip [InteractLayerBonus3] Frame 1
onClipEvent (load) {
worm = "Level8";
SnapBack = false;
}
Instance of Symbol 113 MovieClip "WormBox" in Symbol 1641 MovieClip [InteractLayerBonus3] Frame 1
onClipEvent (load) {
AtIt = "Down";
thrust = -10;
}