Frame 1
stop();
fscommand ("showmenu", "false");
Frame 2
_root.ground.car = false;
_root.ground.car2 = false;
_root.ground.car3 = false;
_root.ground.car4 = false;
_root.ground.car5 = false;
play();
Frame 3
stop();
_root.ground.car = false;
_root.ground.car2 = false;
_root.ground.car3 = false;
_root.ground.car4 = false;
_root.ground.car5 = false;
hero.walkdir = "east";
_root.ATKEY = 65;
Instance of Symbol 78 MovieClip "hero" in Frame 3
onClipEvent (enterFrame) {
_root.jumpkey = Key.isDown(32);
_root.hitground = _root.ground.hitTest(_x, _y, true);
if (!_root.hitground) {
gravity = gravity + 2;
} else if (_root.jumpkey) {
gravity = -10;
} else {
gravity = 0;
}
_y = (_y + gravity);
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._x = this._x + 4;
this.walk = true;
this.walkdir = "east";
this.gotoAndStop("walkeast");
} else if (Key.isDown(37)) {
this._x = this._x - 4;
this.walk = true;
this.walkdir = "west";
this.gotoAndStop("walkwest");
} else if (Key.isDown(_root.ATKEY)) {
if (this.walkdir == "west") {
this.gotoAndStop("attackwest");
} else if (this.walkdir == "east") {
this.gotoAndStop("attackeast");
}
} else if (this.walkdir == "west") {
this.walk = false;
this.gotoAndStop("facewest");
} else if (this.walkdir == "east") {
this.walk = false;
this.gotoAndStop("faceeast");
}
}
onClipEvent (enterFrame) {
if (_x < 200) {
this._x = this._x + 2;
_root.ground._x = _root.ground._x + 2;
}
if (_x < 150) {
this._x = this._x + 2;
_root.ground._x = _root.ground._x + 2;
}
if (_x < 100) {
this._x = this._x + 2.5;
_root.ground._x = _root.ground._x + 2.5;
}
if (_x > 300) {
this._x = this._x - 2;
_root.ground._x = _root.ground._x - 2;
}
if (_x > 350) {
this._x = this._x - 2;
_root.ground._x = _root.ground._x - 2;
}
if (_x > 450) {
this._x = this._x - 2.5;
_root.ground._x = _root.ground._x - 2.5;
}
if (_y < 50) {
this._y = this._y + 2.5;
_root.ground._y = _root.ground._y + 2.5;
}
if (_y < 100) {
this._y = this._y + 2;
_root.ground._y = _root.ground._y + 2;
}
if (_y < 150) {
this._y = this._y + 2;
_root.ground._y = _root.ground._y + 2;
}
if (_y > 250) {
this._y = this._y - 2;
_root.ground._y = _root.ground._y - 2;
}
if (_y > 300) {
this._y = this._y - 2;
_root.ground._y = _root.ground._y - 2;
}
if (_y > 350) {
this._y = this._y - 2.5;
_root.ground._y = _root.ground._y - 2.5;
}
if (_x < 200) {
this._x = this._x + 2;
_root.back._x = _root.back._x + 1;
}
if (_x < 150) {
this._x = this._x + 2;
_root.back._x = _root.back._x + 1;
}
if (_x < 100) {
this._x = this._x + 2.5;
_root.back._x = _root.back._x + 1;
}
if (_x > 300) {
this._x = this._x - 2;
_root.back._x = _root.back._x - 1;
}
if (_x > 350) {
this._x = this._x - 2;
_root.back._x = _root.back._x - 1;
}
if (_x > 450) {
this._x = this._x - 2.5;
_root.back._x = _root.back._x - 1;
}
if (_y < 50) {
this._y = this._y + 2.5;
_root.back._y = _root.back._y + 1;
}
if (_y < 100) {
this._y = this._y + 2;
_root.back._y = _root.back._y + 1;
}
if (_y < 150) {
this._y = this._y + 2;
_root.back._y = _root.back._y + 1;
}
if (_y > 250) {
this._y = this._y - 2;
_root.back._y = _root.back._y - 1;
}
if (_y > 300) {
this._y = this._y - 2;
_root.back._y = _root.back._y - 1;
}
if (_y > 350) {
this._y = this._y - 2.5;
_root.back._y = _root.back._y - 1;
}
if (this.hitTest(_root.ground.wall)) {
this._x = oldXPosition;
_root.ground._x = oldXPos;
this._x = BoldXPosition;
_root.back._x = BoldXPos;
}
if (this.hitTest(_root.ground.wall2)) {
this._x = oldXPosition;
_root.ground._x = oldXPos;
this._x = BoldXPosition;
_root.back._x = BoldXPos;
}
if (this.hitTest(_root.ground.wall3)) {
this._x = oldXPosition;
_root.ground._x = oldXPos;
this._x = BoldXPosition;
_root.back._x = BoldXPos;
}
if (this.hitTest(_root.ground.ender)) {
_root.nextFrame();
}
if (this.hitTest(_root.pit)) {
_root.gotoAndPlay(1);
}
oldXPosition = this._x;
oldYPosition = this._y;
oldXPos = _root.ground._x;
oldYPos = _root.ground._y;
BoldXPosition = this._x;
BoldYPosition = this._y;
BoldXPos = _root.back._x;
BoldYPos = _root.back._y;
}
Frame 20
_root.ground.car = false;
_root.ground.car2 = false;
_root.ground.car3 = false;
_root.ground.car4 = false;
_root.ground.car5 = false;
play();
Frame 21
stop();
_root.ground.car = false;
_root.ground.car2 = false;
_root.ground.car3 = false;
_root.ground.car4 = false;
_root.ground.car5 = false;
hero.walkdir = "east";
_root.ATKEY = 65;
Instance of Symbol 78 MovieClip "hero" in Frame 21
onClipEvent (enterFrame) {
_root.jumpkey = Key.isDown(32);
_root.hitground = _root.ground.hitTest(_x, _y, true);
if (!_root.hitground) {
gravity = gravity + 2;
} else if (_root.jumpkey) {
gravity = -10;
} else {
gravity = 0;
}
_y = (_y + gravity);
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._x = this._x + 4;
this.walk = true;
this.walkdir = "east";
this.gotoAndStop("walkeast");
} else if (Key.isDown(37)) {
this._x = this._x - 4;
this.walk = true;
this.walkdir = "west";
this.gotoAndStop("walkwest");
} else if (Key.isDown(_root.ATKEY)) {
if (this.walkdir == "west") {
this.gotoAndStop("attackwest");
} else if (this.walkdir == "east") {
this.gotoAndStop("attackeast");
}
} else if (this.walkdir == "west") {
this.walk = false;
this.gotoAndStop("facewest");
} else if (this.walkdir == "east") {
this.walk = false;
this.gotoAndStop("faceeast");
}
}
onClipEvent (enterFrame) {
if (_x < 200) {
this._x = this._x + 2;
_root.ground._x = _root.ground._x + 2;
}
if (_x < 150) {
this._x = this._x + 2;
_root.ground._x = _root.ground._x + 2;
}
if (_x < 100) {
this._x = this._x + 2.5;
_root.ground._x = _root.ground._x + 2.5;
}
if (_x > 300) {
this._x = this._x - 2;
_root.ground._x = _root.ground._x - 2;
}
if (_x > 350) {
this._x = this._x - 2;
_root.ground._x = _root.ground._x - 2;
}
if (_x > 450) {
this._x = this._x - 2.5;
_root.ground._x = _root.ground._x - 2.5;
}
if (_y < 50) {
this._y = this._y + 2.5;
_root.ground._y = _root.ground._y + 2.5;
}
if (_y < 100) {
this._y = this._y + 2;
_root.ground._y = _root.ground._y + 2;
}
if (_y < 150) {
this._y = this._y + 2;
_root.ground._y = _root.ground._y + 2;
}
if (_y > 250) {
this._y = this._y - 2;
_root.ground._y = _root.ground._y - 2;
}
if (_y > 300) {
this._y = this._y - 2;
_root.ground._y = _root.ground._y - 2;
}
if (_y > 350) {
this._y = this._y - 2.5;
_root.ground._y = _root.ground._y - 2.5;
}
if (_x < 200) {
this._x = this._x + 2;
_root.back._x = _root.back._x + 1;
}
if (_x < 150) {
this._x = this._x + 2;
_root.back._x = _root.back._x + 1;
}
if (_x < 100) {
this._x = this._x + 2.5;
_root.back._x = _root.back._x + 1;
}
if (_x > 300) {
this._x = this._x - 2;
_root.back._x = _root.back._x - 1;
}
if (_x > 350) {
this._x = this._x - 2;
_root.back._x = _root.back._x - 1;
}
if (_x > 450) {
this._x = this._x - 2.5;
_root.back._x = _root.back._x - 1;
}
if (_y < 50) {
this._y = this._y + 2.5;
_root.back._y = _root.back._y + 1;
}
if (_y < 100) {
this._y = this._y + 2;
_root.back._y = _root.back._y + 1;
}
if (_y < 150) {
this._y = this._y + 2;
_root.back._y = _root.back._y + 1;
}
if (_y > 250) {
this._y = this._y - 2;
_root.back._y = _root.back._y - 1;
}
if (_y > 300) {
this._y = this._y - 2;
_root.back._y = _root.back._y - 1;
}
if (_y > 350) {
this._y = this._y - 2.5;
_root.back._y = _root.back._y - 1;
}
if (this.hitTest(_root.ground.wall)) {
this._x = oldXPosition;
_root.ground._x = oldXPos;
this._x = BoldXPosition;
_root.back._x = BoldXPos;
}
if (this.hitTest(_root.ground.wall2)) {
this._x = oldXPosition;
_root.ground._x = oldXPos;
this._x = BoldXPosition;
_root.back._x = BoldXPos;
}
if (this.hitTest(_root.ground.wall3)) {
this._x = oldXPosition;
_root.ground._x = oldXPos;
this._x = BoldXPosition;
_root.back._x = BoldXPos;
}
if (this.hitTest(_root.ground.ender)) {
_root.nextFrame();
}
if (this.hitTest(_root.pit)) {
_root.gotoAndPlay(1);
}
oldXPosition = this._x;
oldYPosition = this._y;
oldXPos = _root.ground._x;
oldYPos = _root.ground._y;
BoldXPosition = this._x;
BoldYPosition = this._y;
BoldXPos = _root.back._x;
BoldYPos = _root.back._y;
}
Symbol 16 Button
on (press) {
nextFrame();
}
Symbol 26 Button
on (press) {
gotoAndPlay ("LOW RES");
}
Symbol 32 Button
on (press) {
gotoAndPlay ("Reset");
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 16
stop();
Symbol 47 MovieClip Frame 44
stop();
Symbol 47 MovieClip Frame 74
stop();
Instance of Symbol 47 MovieClip "car" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.stomp) == true) {
if (_root.ground.car == false) {
this.gotoAndPlay(2);
_root.ground.car = true;
}
} else if (this.hitTest(_root.hero.swipe) == true) {
if (_root.ground.car == false) {
this.gotoAndPlay(20);
}
_root.ground.car = true;
} else if (this.hitTest(_root.hero.swipe2) == true) {
if (_root.ground.car == false) {
this.gotoAndPlay(50);
}
_root.ground.car = true;
}
}
Instance of Symbol 47 MovieClip "car2" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.stomp) == true) {
if (_root.ground.car2 == false) {
this.gotoAndPlay(2);
_root.ground.car2 = true;
}
} else if (this.hitTest(_root.hero.swipe) == true) {
if (_root.ground.car2 == false) {
this.gotoAndPlay(20);
}
_root.ground.car2 = true;
} else if (this.hitTest(_root.hero.swipe2) == true) {
if (_root.ground.car2 == false) {
this.gotoAndPlay(50);
}
_root.ground.car2 = true;
}
}
Instance of Symbol 47 MovieClip "car3" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.stomp) == true) {
if (_root.ground.car3 == false) {
this.gotoAndPlay(2);
_root.ground.car3 = true;
}
} else if (this.hitTest(_root.hero.swipe) == true) {
if (_root.ground.car3 == false) {
this.gotoAndPlay(20);
}
_root.ground.car3 = true;
} else if (this.hitTest(_root.hero.swipe2) == true) {
if (_root.ground.car3 == false) {
this.gotoAndPlay(50);
}
_root.ground.car3 = true;
}
}
Instance of Symbol 47 MovieClip "car4" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.stomp) == true) {
if (_root.ground.car4 == false) {
this.gotoAndPlay(2);
_root.ground.car4 = true;
}
} else if (this.hitTest(_root.hero.swipe) == true) {
if (_root.ground.car4 == false) {
this.gotoAndPlay(20);
}
_root.ground.car4 = true;
} else if (this.hitTest(_root.hero.swipe2) == true) {
if (_root.ground.car4 == false) {
this.gotoAndPlay(50);
}
_root.ground.car4 = true;
}
}
Instance of Symbol 47 MovieClip "car5" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.stomp) == true) {
if (_root.ground.car5 == false) {
this.gotoAndPlay(2);
_root.ground.car5 = true;
}
} else if (this.hitTest(_root.hero.swipe) == true) {
if (_root.ground.car5 == false) {
this.gotoAndPlay(20);
}
_root.ground.car5 = true;
} else if (this.hitTest(_root.hero.swipe2) == true) {
if (_root.ground.car5 == false) {
this.gotoAndPlay(50);
}
_root.ground.car5 = true;
}
}
Symbol 77 MovieClip Frame 43
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 78 MovieClip Frame 3
stop();
Symbol 78 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 6
stop();
Symbol 78 MovieClip Frame 7
stop();
Symbol 79 Button
on (press) {
gotoAndPlay ("LOW RES");
}