Instance of Symbol 11 MovieClip "player" in Frame 1
onClipEvent (load) {
speed = 60;
isJumping = false;
jumpSpeed = 0;
startY = _y;
}
onClipEvent (enterFrame) {
if (isJumping) {
this.gotoAndStop("facewest");
_y = (_y + jumpSpeed);
jumpSpeed = jumpSpeed + 1;
if (_y >= startY) {
_y = startY;
isJumping = false;
speed = 60;
}
} else if (Key.isDown(38)) {
isJumping = true;
jumpSpeed = -8;
speed = 60;
}
if (Key.isDown(39)) {
this.walk = true;
this.walkdir = "east";
this.gotoAndStop("walkeast");
this._x = this._x + 7;
} else if (Key.isDown(37)) {
this.walk = true;
this.walkdir = "west";
this.gotoAndStop("walkwest");
this._x = this._x - 7;
} else if (this.walkdir == "west") {
this.walk = false;
this.gotoAndStop("facewest");
} else if (this.walkdir == "east") {
this.walk = false;
this.gotoAndStop("faceeast");
}
if (this._x < -30) {
this._x = 430;
}
if (this._x > 430) {
this._x = -30;
}
}
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 500) {
this._x = -30;
}
}
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 500) {
this._x = -30;
}
}
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 500) {
this._x = -30;
}
}
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 500) {
this._x = -30;
}
}
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 2
stop();
Symbol 11 MovieClip Frame 3
stop();
Symbol 11 MovieClip Frame 4
stop();
Symbol 17 Button
on (release) {
stopAllSounds();
gotoAndStop (2);
}
Symbol 21 Button
on (release) {
gotoAndStop (1);
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 526
gotoAndPlay ("go");