Frame 1
_root._currentframe;
stop();
load.movie;
function goToThisURL() {
getURL (linkURL, "_blank");
}
var linkURL = "http://KamikazePanda.newgrounds.com/";
var linkText = "(c) KamikazePanda Inc";
var myMenu = new ContextMenu();
var copyright = new ContextMenuItem(linkText, goToThisURL);
myMenu.customItems.push(copyright);
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stop();
Frame 2
stop();
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(3);
}
}
Frame 3
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 180 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Instance of Symbol 192 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Instance of Symbol 192 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Instance of Symbol 192 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Instance of Symbol 192 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Instance of Symbol 198 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(38);
}
}
Frame 4
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (3);
}
};
stop();
Frame 5
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 180 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(6);
}
}
Instance of Symbol 191 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(3);
}
}
Instance of Symbol 87 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 180 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(6);
}
}
Frame 6
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (5);
}
};
stop();
Frame 7
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 180 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(8);
}
}
Instance of Symbol 191 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(3);
}
}
Instance of Symbol 87 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(9);
}
}
Instance of Symbol 180 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(8);
}
}
Instance of Symbol 227 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(7);
}
}
Instance of Symbol 227 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(8);
}
}
Frame 8
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (7);
}
};
stop();
Frame 9
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 180 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(7);
}
}
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(8);
}
}
Instance of Symbol 191 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(3);
}
}
Instance of Symbol 87 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(10);
}
}
Frame 32
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 180 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(33);
}
}
Instance of Symbol 191 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(3);
}
}
Instance of Symbol 87 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(33);
}
}
Frame 33
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 295 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(34);
}
}
Instance of Symbol 191 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(3);
}
}
Instance of Symbol 87 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(35);
}
}
Frame 34
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (33);
}
};
stop();
Instance of Symbol 180 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(7);
}
}
Frame 35
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 180 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(33);
}
}
Instance of Symbol 191 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(3);
}
}
Instance of Symbol 87 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 39;
_global.PLAYERY = 33;
_root.gotoAndStop(36);
}
}
Frame 36
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 191 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(3);
}
}
Instance of Symbol 87 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(37);
}
}
Frame 37
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndPlay(36);
}
}
Instance of Symbol 87 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(66);
}
}
Instance of Symbol 87 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndPlay(65);
}
}
Frame 64
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 64
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(5);
}
}
Instance of Symbol 192 MovieClip in Frame 64
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Instance of Symbol 192 MovieClip in Frame 64
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Instance of Symbol 192 MovieClip in Frame 64
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Instance of Symbol 192 MovieClip in Frame 64
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Frame 65
stop();
Frame 102
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 191 MovieClip in Frame 102
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(3);
}
}
Instance of Symbol 87 MovieClip in Frame 102
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(103);
}
}
Frame 103
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 103
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(104);
}
}
Frame 104
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 104
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(105);
}
}
Instance of Symbol 478 MovieClip in Frame 104
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(187);
}
}
Frame 105
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(106);
}
}
Frame 106
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 180 MovieClip in Frame 106
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(33);
}
}
Instance of Symbol 87 MovieClip in Frame 106
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(107);
}
}
Frame 181
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(183);
}
}
Instance of Symbol 87 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(182);
}
}
Instance of Symbol 535 MovieClip in Frame 181
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(182);
}
}
Frame 182
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (181);
}
};
Frame 183
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 183
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(183);
}
}
Instance of Symbol 87 MovieClip in Frame 183
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(184);
}
}
Frame 184
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 184
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Frame 185
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 180 MovieClip in Frame 185
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(186);
}
}
Instance of Symbol 87 MovieClip in Frame 185
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 185
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(188);
}
}
Frame 186
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (185);
}
};
Frame 187
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (104);
}
};
Frame 188
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 188
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 188
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(189);
}
}
Instance of Symbol 198 MovieClip in Frame 188
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 319.9;
_global.PLAYERY = 82.8;
_root.gotoAndStop(190);
}
}
Frame 189
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (185);
}
};
Frame 190
stop();
Frame 191
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 191
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 191
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(189);
}
}
Instance of Symbol 87 MovieClip in Frame 191
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 90.3;
_global.PLAYERY = 94.8;
_root.gotoAndStop(192);
}
}
Frame 192
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 192
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 192
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(189);
}
}
Instance of Symbol 87 MovieClip in Frame 192
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(193);
}
}
Frame 193
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 193
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(194);
}
}
Frame 194
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 194
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(196);
}
}
Frame 196
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 196
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 196
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(197);
}
}
Frame 198
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 198
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(200);
}
}
Instance of Symbol 659 MovieClip in Frame 198
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(199);
}
}
Frame 199
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (198);
}
};
Instance of Symbol 659 MovieClip in Frame 199
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(199);
}
}
Frame 200
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 665 MovieClip in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(199);
}
}
Instance of Symbol 87 MovieClip in Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(201);
}
}
Frame 201
stop();
Frame 202
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (200);
}
};
Instance of Symbol 659 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(199);
}
}
Frame 203
stop();
Frame 204
stop();
stop();
_root.mcPLAYER._x = _global.PLAYERX;
_root.mcPLAYER._y = _global.PLAYERY;
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER.XMOVEMENT = 0;
_root.mcPLAYER.JUMPPOWER = 20;
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.FALLING = false;
_root.mcPLAYER.GRAVITY = 1.2;
_root.mcPLAYER.INVERSEGRAVITY = 0.8;
_root.mcPLAYER.DIRECTION = "R";
_root.JUMPKEY = 38;
_root.CROUCHKEY = 40;
_root.RUNLEFTKEY = 37;
_root.RUNRIGHTKEY = 39;
a = 1;
while (a <= 10) {
_root["mcWALL" + a]._visible = true;
_root["mcCEILING" + a]._visible = true;
_root["mcPLATFORM" + a]._visible = true;
a++;
}
onEnterFrame = function () {
if (Key.isDown(_root.JUMPKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
_root.mcPLAYER.GROUNDED = false;
_root.mcPLAYER.YMOVEMENT = -_root.mcPLAYER.JUMPPOWER;
_root.mcPLAYER.FALLING = false;
}
}
if (_root.mcPLAYER.GROUNDED == false) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.INVERSEGRAVITY;
} else {
_root.mcPLAYER.YMOVEMENT = _root.mcPLAYER.YMOVEMENT * _root.mcPLAYER.GRAVITY;
}
if (_root.mcPLAYER.YMOVEMENT > -1) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.FALLING = true;
_root.mcPLAYER.YMOVEMENT = 1;
}
}
}
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT * 0.9;
tempX = _root.mcPLAYER._x;
tempY = _root.mcPLAYER._y;
_root.mcPLAYER._y = _root.mcPLAYER._y + _root.mcPLAYER.YMOVEMENT;
_root.mcPLAYER._x = _root.mcPLAYER._x + _root.mcPLAYER.XMOVEMENT;
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcWALL" + a]) == true) {
_root.mcPLAYER._x = tempX;
_root.mcPLAYER.XMOVEMENT = 0;
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcCEILING" + a]) == true) {
if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER._y = tempY;
_root.mcPLAYER.YMOVEMENT = 2;
_root.mcPLAYER.FALLING = true;
}
}
a++;
}
a = 1;
while (a <= 10) {
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
if (_root.mcPLAYER.FALLING == true) {
_root.mcPLAYER.YMOVEMENT = 0;
_root.mcPLAYER._y = _root["mcPLATFORM" + a]._y;
_root.mcPLAYER.GROUNDED = true;
}
}
a++;
}
if (_root.mcPLAYER.GROUNDED == true) {
nohit = false;
a = 1;
while (a <= 10) {
_root.mcPLAYER._y = _root.mcPLAYER._y + 2;
if (_root.mcPLAYER.mcCOLLIDER.hitTest(_root["mcPLATFORM" + a]) == true) {
nohit = true;
}
_root.mcPLAYER._y = _root.mcPLAYER._y - 2;
a++;
}
if (nohit == false) {
_root.mcPLAYER.YMOVEMENT = 1;
_root.mcPLAYER.GROUNDED = false;
}
}
if (_root.mcPLAYER.GROUNDED == true) {
if ((_root.mcPLAYER.XMOVEMENT < 0.5) and (_root.mcPLAYER.XMOVEMENT > -0.5)) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(1);
} else {
_root.mcPLAYER.gotoAndStop(2);
}
} else if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(3);
} else {
_root.mcPLAYER.gotoAndStop(4);
}
} else if (_root.mcPLAYER.FALLING == false) {
_root.mcPLAYER.gotoAndStop(5);
} else {
_root.mcPLAYER.gotoAndStop(6);
}
if (Key.isDown(_root.CROUCHKEY)) {
if (_root.mcPLAYER.GROUNDED == true) {
if (_root.mcPLAYER.DIRECTION == "R") {
_root.mcPLAYER.gotoAndStop(8);
} else {
_root.mcPLAYER.gotoAndStop(9);
}
}
} else {
if (Key.isDown(_root.RUNRIGHTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT + 1;
_root.mcPLAYER.DIRECTION = "R";
}
if (Key.isDown(_root.RUNLEFTKEY)) {
_root.mcPLAYER.XMOVEMENT = _root.mcPLAYER.XMOVEMENT - 1;
_root.mcPLAYER.DIRECTION = "L";
}
}
};
Instance of Symbol 87 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(205);
}
}
Frame 235
stopAllSounds();
Frame 533
stopAllSounds();
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
stop();
Symbol 68 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 77 Button
on (release) {
startMovie();
}
Symbol 79 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 79 MovieClip Frame 2
stop();
Symbol 115 MovieClip Frame 10
stop();
Symbol 118 MovieClip Frame 10
stop();
Symbol 129 MovieClip Frame 6
stop();
Symbol 152 MovieClip Frame 15
stop();
Symbol 156 MovieClip Frame 1
stop();
mcCOLLIDER._visible = false;
Symbol 156 MovieClip Frame 2
stop();
Symbol 156 MovieClip Frame 3
stop();
Symbol 156 MovieClip Frame 4
stop();
Symbol 156 MovieClip Frame 5
stop();
Symbol 156 MovieClip Frame 6
stop();
Symbol 156 MovieClip Frame 7
stop();
Symbol 156 MovieClip Frame 8
stop();
Symbol 156 MovieClip Frame 9
stop();
Symbol 156 MovieClip Frame 10
stop();
Symbol 202 Button
on (release) {
gotoAndStop (3);
}
Symbol 209 MovieClip Frame 40
stop();
Symbol 217 Button
on (release) {
gotoAndStop (5);
}
Symbol 224 MovieClip Frame 57
stop();
Symbol 234 MovieClip Frame 1
stop();
mcCOLLIDER._visible = false;
Symbol 234 MovieClip Frame 2
stop();
Symbol 234 MovieClip Frame 3
stop();
Symbol 234 MovieClip Frame 4
stop();
Symbol 234 MovieClip Frame 5
stop();
Symbol 234 MovieClip Frame 6
stop();
Symbol 234 MovieClip Frame 7
stop();
Symbol 234 MovieClip Frame 8
stop();
Symbol 234 MovieClip Frame 9
stop();
Symbol 234 MovieClip Frame 10
stop();
Symbol 238 Button
on (release) {
gotoAndStop (7);
}
Instance of Symbol 248 MovieClip in Symbol 251 MovieClip Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(7);
}
}
Symbol 257 MovieClip Frame 3
stop();
Symbol 268 MovieClip Frame 30
stop();
Symbol 283 MovieClip Frame 1
stop();
mcCOLLIDER._visible = false;
Symbol 283 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 3
stop();
Symbol 283 MovieClip Frame 4
stop();
Symbol 283 MovieClip Frame 5
stop();
Symbol 283 MovieClip Frame 6
stop();
Symbol 283 MovieClip Frame 7
stop();
Symbol 283 MovieClip Frame 8
stop();
Symbol 283 MovieClip Frame 9
stop();
Symbol 283 MovieClip Frame 10
stop();
Symbol 302 Button
on (release) {
gotoAndPlay (33);
}
Symbol 359 MovieClip Frame 25
stop();
Symbol 392 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 420 MovieClip Frame 41
stop();
Symbol 426 MovieClip Frame 40
stop();
Symbol 462 MovieClip Frame 9
stop();
Symbol 540 Button
on (release) {
gotoAndPlay (181);
}
Symbol 562 Button
on (release) {
gotoAndPlay (185);
}
Symbol 564 Button
on (release) {
gotoAndPlay (104);
}
Symbol 572 MovieClip Frame 25
_root.gotoAndStop(191);
Symbol 664 Button
on (release) {
gotoAndPlay (198);
}
Symbol 691 MovieClip Frame 69
_root.gotoAndStop(204);
Symbol 692 Button
on (release) {
gotoAndPlay (200);
}
Symbol 709 MovieClip Frame 312
_root.gotoAndPlay(527);
Symbol 770 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 771 MovieClip Frame 397
stop();