Frame 1 (391 B)
_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 (3.7 KiB) ●
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 (100 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(3);
}
}
Frame 3 (3.69 KiB) ●
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 (148 B)
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 (148 B)
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 (148 B)
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 (148 B)
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 (148 B)
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 (101 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(38);
}
}
Frame 4 (91 B)
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (3);
}
};
stop();
Frame 5 (3.69 KiB) ●
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 (148 B)
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 (148 B)
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 (100 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 180 MovieClip in Frame 5 (148 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(6);
}
}
Frame 6 (91 B)
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (5);
}
};
stop();
Frame 7 (3.69 KiB) ●
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 (148 B)
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 (148 B)
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 (100 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(9);
}
}
Instance of Symbol 180 MovieClip in Frame 7 (148 B)
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 (148 B)
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 (148 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(8);
}
}
Frame 8 (91 B)
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (7);
}
};
stop();
Frame 9 (3.69 KiB) ●
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 (148 B)
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 (148 B)
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 (148 B)
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 (101 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(10);
}
}
Frame 32 (3.69 KiB) ●
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 (149 B)
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 (148 B)
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 (101 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(33);
}
}
Frame 33 (3.69 KiB) ●
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 (149 B)
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 (148 B)
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 (101 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(35);
}
}
Frame 34 (92 B)
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (33);
}
};
stop();
Instance of Symbol 180 MovieClip in Frame 34 (148 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(7);
}
}
Frame 35 (3.69 KiB) ●
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 (101 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(33);
}
}
Instance of Symbol 191 MovieClip in Frame 35 (148 B)
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 (149 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 39;
_global.PLAYERY = 33;
_root.gotoAndStop(36);
}
}
Frame 36 (3.69 KiB) ●
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 (148 B)
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 (101 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(37);
}
}
Frame 37 (3.68 KiB) ●
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 (149 B)
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 (101 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(66);
}
}
Instance of Symbol 87 MovieClip in Frame 37 (149 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndPlay(65);
}
}
Frame 64 (3.69 KiB) ●
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 (100 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(5);
}
}
Instance of Symbol 192 MovieClip in Frame 64 (148 B)
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 (148 B)
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 (148 B)
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 (148 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(4);
}
}
Frame 65 (8 B)
stop();
Frame 102 (3.69 KiB) ●
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 (148 B)
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(103);
}
}
Frame 103 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(104);
}
}
Frame 104 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(105);
}
}
Instance of Symbol 478 MovieClip in Frame 104 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(187);
}
}
Frame 105 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(106);
}
}
Frame 106 (3.69 KiB) ●
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 (149 B)
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(107);
}
}
Frame 181 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(183);
}
}
Instance of Symbol 87 MovieClip in Frame 181 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(182);
}
}
Instance of Symbol 535 MovieClip in Frame 181 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(182);
}
}
Frame 182 (93 B)
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (181);
}
};
Frame 183 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(183);
}
}
Instance of Symbol 87 MovieClip in Frame 183 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(184);
}
}
Frame 184 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Frame 185 (3.69 KiB) ●
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 (150 B)
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 185 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(188);
}
}
Frame 186 (93 B)
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (185);
}
};
Frame 187 (93 B)
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (104);
}
};
Frame 188 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 188 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(189);
}
}
Instance of Symbol 198 MovieClip in Frame 188 (155 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 319.9;
_global.PLAYERY = 82.8;
_root.gotoAndStop(190);
}
}
Frame 189 (93 B)
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (185);
}
};
Frame 190 (8 B)
stop();
Frame 191 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 191 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(189);
}
}
Instance of Symbol 87 MovieClip in Frame 191 (154 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 90.3;
_global.PLAYERY = 94.8;
_root.gotoAndStop(192);
}
}
Frame 192 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 192 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(189);
}
}
Instance of Symbol 87 MovieClip in Frame 192 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(193);
}
}
Frame 193 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(194);
}
}
Frame 194 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(196);
}
}
Frame 196 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(185);
}
}
Instance of Symbol 87 MovieClip in Frame 196 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(197);
}
}
Frame 198 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(200);
}
}
Instance of Symbol 659 MovieClip in Frame 198 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(199);
}
}
Frame 199 (93 B)
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (198);
}
};
Instance of Symbol 659 MovieClip in Frame 199 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(199);
}
}
Frame 200 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(199);
}
}
Instance of Symbol 87 MovieClip in Frame 200 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(201);
}
}
Frame 201 (8 B)
stop();
Frame 202 (93 B)
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop (200);
}
};
Instance of Symbol 659 MovieClip in Frame 202 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndStop(199);
}
}
Frame 203 (8 B)
stop();
Frame 204 (3.69 KiB) ●
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 (102 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_root.gotoAndPlay(205);
}
}
Frame 235 (17 B)
stopAllSounds();
Frame 533 (27 B)
stopAllSounds();
stop();
Symbol 33 MovieClip Frame 1 (8 B)
stop();
Symbol 33 MovieClip Frame 2 (8 B)
stop();
Symbol 68 Button (65 B)
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 77 Button (31 B)
on (release) {
startMovie();
}
Symbol 79 MovieClip Frame 1 (1.53 KiB) ●
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 (8 B)
stop();
Symbol 115 MovieClip Frame 10 (8 B)
stop();
Symbol 118 MovieClip Frame 10 (8 B)
stop();
Symbol 129 MovieClip Frame 6 (8 B)
stop();
Symbol 152 MovieClip Frame 15 (8 B)
stop();
Symbol 156 MovieClip Frame 1 (39 B)
stop();
mcCOLLIDER._visible = false;
Symbol 156 MovieClip Frame 2 (8 B)
stop();
Symbol 156 MovieClip Frame 3 (8 B)
stop();
Symbol 156 MovieClip Frame 4 (8 B)
stop();
Symbol 156 MovieClip Frame 5 (8 B)
stop();
Symbol 156 MovieClip Frame 6 (8 B)
stop();
Symbol 156 MovieClip Frame 7 (8 B)
stop();
Symbol 156 MovieClip Frame 8 (8 B)
stop();
Symbol 156 MovieClip Frame 9 (8 B)
stop();
Symbol 156 MovieClip Frame 10 (8 B)
stop();
Symbol 202 Button (34 B)
on (release) {
gotoAndStop (3);
}
Symbol 209 MovieClip Frame 40 (8 B)
stop();
Symbol 217 Button (34 B)
on (release) {
gotoAndStop (5);
}
Symbol 224 MovieClip Frame 57 (8 B)
stop();
Symbol 234 MovieClip Frame 1 (39 B)
stop();
mcCOLLIDER._visible = false;
Symbol 234 MovieClip Frame 2 (8 B)
stop();
Symbol 234 MovieClip Frame 3 (8 B)
stop();
Symbol 234 MovieClip Frame 4 (8 B)
stop();
Symbol 234 MovieClip Frame 5 (8 B)
stop();
Symbol 234 MovieClip Frame 6 (8 B)
stop();
Symbol 234 MovieClip Frame 7 (8 B)
stop();
Symbol 234 MovieClip Frame 8 (8 B)
stop();
Symbol 234 MovieClip Frame 9 (8 B)
stop();
Symbol 234 MovieClip Frame 10 (8 B)
stop();
Symbol 238 Button (34 B)
on (release) {
gotoAndStop (7);
}
Instance of Symbol 248 MovieClip in Symbol 251 MovieClip Frame 13 (148 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.mcPLAYER) == true) {
_global.PLAYERX = 50;
_global.PLAYERY = 64;
_root.gotoAndStop(7);
}
}
Symbol 257 MovieClip Frame 3 (8 B)
stop();
Symbol 268 MovieClip Frame 30 (8 B)
stop();
Symbol 283 MovieClip Frame 1 (39 B)
stop();
mcCOLLIDER._visible = false;
Symbol 283 MovieClip Frame 2 (8 B)
stop();
Symbol 283 MovieClip Frame 3 (8 B)
stop();
Symbol 283 MovieClip Frame 4 (8 B)
stop();
Symbol 283 MovieClip Frame 5 (8 B)
stop();
Symbol 283 MovieClip Frame 6 (8 B)
stop();
Symbol 283 MovieClip Frame 7 (8 B)
stop();
Symbol 283 MovieClip Frame 8 (8 B)
stop();
Symbol 283 MovieClip Frame 9 (8 B)
stop();
Symbol 283 MovieClip Frame 10 (8 B)
stop();
Symbol 302 Button (35 B)
on (release) {
gotoAndPlay (33);
}
Symbol 359 MovieClip Frame 25 (8 B)
stop();
Symbol 392 MovieClip Frame 1 (896 B)
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 (8 B)
stop();
Symbol 426 MovieClip Frame 40 (8 B)
stop();
Symbol 462 MovieClip Frame 9 (8 B)
stop();
Symbol 540 Button (36 B)
on (release) {
gotoAndPlay (181);
}
Symbol 562 Button (36 B)
on (release) {
gotoAndPlay (185);
}
Symbol 564 Button (36 B)
on (release) {
gotoAndPlay (104);
}
Symbol 572 MovieClip Frame 25 (24 B)
_root.gotoAndStop(191);
Symbol 664 Button (36 B)
on (release) {
gotoAndPlay (198);
}
Symbol 691 MovieClip Frame 69 (24 B)
_root.gotoAndStop(204);
Symbol 692 Button (36 B)
on (release) {
gotoAndPlay (200);
}
Symbol 709 MovieClip Frame 312 (24 B)
_root.gotoAndPlay(527);
Symbol 770 Button (39 B)
on (release) {
_root.gotoAndStop(2);
}
Symbol 771 MovieClip Frame 397 (8 B)
stop();