Frame 40
stop();
Frame 58
stopAllSounds();
Frame 61
stop();
counter = 0;
count = 0;
gameOver = false;
this.onEnterFrame = function () {
if (!gameOver) {
count++;
if (count > 20) {
counter++;
count = 0;
}
}
};
Instance of Symbol 25 MovieClip "hero" in Frame 61
onClipEvent (enterFrame) {
run = 5.8;
if (Key.isDown(37)) {
_x = (_x - run);
this._xscale = 100;
this.gotoAndStop(2);
}
if (Key.isDown(37) && (Key.isDown(39))) {
_x = (_x + run);
this._xscale = -100;
this.gotoAndStop(2);
}
if ((air == true) && (Key.isDown(37))) {
this.gotoAndStop(3);
}
if (Key.isDown(39)) {
_x = (_x + run);
this._xscale = -100;
this.gotoAndStop(2);
}
if ((air == true) && (Key.isDown(39))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
_root.hero.gotoAndPlay(2);
}
gotoAndStop(state +60);
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this.gotoAndStop(2);
}
if (Key.isDown(37)) {
this.gotoAndStop(2);
}
if (Key.isDown(83)) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65) && (air == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
}
onClipEvent (enterFrame) {
this._y = this._y + 10;
_root.jumpkey = Key.isDown(83);
_root.hitground = _root.ground.hitTest(_x, _y, true);
if (!_root.hitground) {
gravity = gravity + 1;
} else if (_root.jumpkey) {
gravity = -20;
} else {
gravity = 0;
}
_y = (_y + gravity);
}
onClipEvent (enterFrame) {
if (air == true) {
this.gotoAndStop(3);
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
this.gotoAndStop(3);
}
if (air == false) {
this.gotoAndStop(1);
}
if (_x < 0) {
_x = 700;
_root.gotoAndStop(_root._currentframe - 1);
}
if (_x > 700) {
_x = 0;
_root.gotoAndStop(_root._currentframe + 1);
}
}
onClipEvent (enterFrame) {
if (_y > 500) {
_root.hero._x = 10;
_root.hero._y = 10;
}
}
Instance of Symbol 39 MovieClip "wall" in Frame 61
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x - 1;
}
}
Instance of Symbol 39 MovieClip in Frame 61
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x + 1;
}
}
Instance of Symbol 34 MovieClip "ground" in Frame 61
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Instance of Symbol 43 MovieClip "ground" in Frame 62
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Instance of Symbol 39 MovieClip in Frame 62
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x + 1;
}
}
Instance of Symbol 39 MovieClip in Frame 62
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x - 1;
}
}
Instance of Symbol 45 MovieClip "ground" in Frame 63
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Instance of Symbol 39 MovieClip in Frame 63
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x + 1;
}
}
Instance of Symbol 39 MovieClip in Frame 63
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x - 1;
}
}
Instance of Symbol 51 MovieClip "ground" in Frame 64
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Instance of Symbol 39 MovieClip "wall" in Frame 64
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x - 1;
_root.red._x = _root.red._x - 1;
}
}
Instance of Symbol 39 MovieClip in Frame 64
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x + 1;
_root.red._x = _root.red._x - 1;
}
}
Instance of Symbol 57 MovieClip "ground" in Frame 65
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Instance of Symbol 61 MovieClip "ground" in Frame 66
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Instance of Symbol 67 MovieClip "ground" in Frame 67
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Instance of Symbol 25 MovieClip "hero" in Frame 67
onClipEvent (enterFrame) {
run = 5.8;
if (Key.isDown(37)) {
_x = (_x - run);
this._xscale = 100;
this.gotoAndStop(2);
}
if (Key.isDown(37) && (Key.isDown(39))) {
_x = (_x + run);
this._xscale = -100;
this.gotoAndStop(2);
}
if ((air == true) && (Key.isDown(37))) {
this.gotoAndStop(3);
}
if (Key.isDown(39)) {
_x = (_x + run);
this._xscale = -100;
this.gotoAndStop(2);
}
if ((air == true) && (Key.isDown(39))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
_root.hero.gotoAndPlay(2);
}
gotoAndStop(state +60);
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this.gotoAndPlay(2);
}
if (Key.isDown(37)) {
this.gotoAndStop(2);
}
if (Key.isDown(83)) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65) && (air == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
}
onClipEvent (enterFrame) {
this._y = this._y + 10;
_root.jumpkey = Key.isDown(83);
_root.hitground = _root.ground.hitTest(_x, _y, true);
if (!_root.hitground) {
gravity = gravity + 1;
} else if (_root.jumpkey) {
gravity = -20;
} else {
gravity = 0;
}
_y = (_y + gravity);
}
onClipEvent (enterFrame) {
if (air == true) {
this.gotoAndStop(3);
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
this.gotoAndStop(3);
}
if (air == false) {
this.gotoAndStop(1);
}
if (_x < 0) {
_x = 700;
_root.gotoAndStop(_root._currentframe - 1);
}
if (_x > 700) {
_x = 0;
_root.gotoAndStop(_root._currentframe + 1);
}
}
onClipEvent (enterFrame) {
if (_y > 500) {
_root.hero._x = 10;
_root.hero._y = 10;
}
}
Instance of Symbol 73 MovieClip "ground" in Frame 68
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Instance of Symbol 25 MovieClip "hero" in Frame 68
onClipEvent (enterFrame) {
run = 5.8;
if (Key.isDown(37)) {
_x = (_x - run);
this._xscale = 100;
this.gotoAndStop(2);
}
if (Key.isDown(37) && (Key.isDown(39))) {
_x = (_x + run);
this._xscale = -100;
this.gotoAndStop(2);
}
if ((air == true) && (Key.isDown(37))) {
this.gotoAndStop(3);
}
if (Key.isDown(39)) {
_x = (_x + run);
this._xscale = -100;
this.gotoAndStop(2);
}
if ((air == true) && (Key.isDown(39))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
_root.hero.gotoAndPlay(2);
}
gotoAndStop(state +60);
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this.gotoAndPlay(2);
}
if (Key.isDown(37)) {
this.gotoAndStop(2);
}
if (Key.isDown(83)) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65) && (air == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
}
onClipEvent (enterFrame) {
this._y = this._y + 10;
_root.jumpkey = Key.isDown(83);
_root.hitground = _root.ground.hitTest(_x, _y, true);
if (!_root.hitground) {
gravity = gravity + 1;
} else if (_root.jumpkey) {
gravity = -20;
} else {
gravity = 0;
}
_y = (_y + gravity);
}
onClipEvent (enterFrame) {
if (air == true) {
this.gotoAndStop(3);
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
this.gotoAndStop(3);
}
if (air == false) {
this.gotoAndStop(1);
}
if (_x < 0) {
_x = 700;
_root.gotoAndStop(_root._currentframe - 1);
}
if (_x > 700) {
_x = 0;
_root.gotoAndStop(_root._currentframe + 1);
}
}
onClipEvent (enterFrame) {
if (_y > 500) {
_root.hero._x = 10;
_root.hero._y = 10;
}
}
Instance of Symbol 39 MovieClip in Frame 69
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x + 1;
}
}
Instance of Symbol 39 MovieClip in Frame 69
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x - 1;
}
}
Instance of Symbol 39 MovieClip in Frame 69
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x + 1;
}
}
Instance of Symbol 39 MovieClip in Frame 69
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x - 1;
}
}
Instance of Symbol 39 MovieClip in Frame 69
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x + 1;
}
}
Instance of Symbol 39 MovieClip in Frame 69
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._x = _root.hero._x - 1;
}
}
Instance of Symbol 78 MovieClip "ground" in Frame 69
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Instance of Symbol 83 MovieClip "ground" in Frame 70
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
Frame 71
stopAllSounds();
nextFrame();
gameOver = true;
Frame 75
stop();
Symbol 14 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._yscale = PercentLoaded;
} else {
gotoAndPlay ("LOADED");
}
Symbol 14 MovieClip Frame 2
gotoAndPlay (1);
Symbol 14 MovieClip Frame 75
_root.play();
Symbol 24 MovieClip Frame 2
stop();
Symbol 35 Button
on (release) {
play();
}
Symbol 61 MovieClip Frame 20
stop();
Symbol 84 MovieClip Frame 20
stop();