Combined Code
frame 1 {
stop();
}
button 6 {
on (release) {
_root.play();
}
}
movieClip 28 {
}
button 32 {
on (release) {
_root.play();
}
}
frame 1331 {
stop();
}
movieClip 44 {
}
movieClip 65 {
frame 28 {
_root.char.gotoAndStop(1);
}
}
movieClip 90 {
}
movieClip 106 {
frame 16 {
_root.char.gotoAndStop(1);
}
}
movieClip 107 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
instance char of movieClip 107 {
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var maxspeed = 5;
var xspeed = 0;
var acceleration = 2;
var maxJump = -5;
var friction = 0.9;
var touchingGround = false;
}
onClipEvent (enterFrame) {
xspeed *= friction;
if (Math.abs(speed) < 0.3) {
xspeed = 0;
}
_y = _y + grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(39)) {
if (touchingGround) {
this.gotoAndStop(3);
}
} else {
if (Key.isDown(37)) {
if (touchingGround) {
this.gotoAndStop(4);
}
} else {
if (Key.isDown(40)) {
if (touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(7);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(8);
}
}
}
}
}
if (Key.isDown(38)) {
if (!touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(5);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(6);
}
}
}
if (touchingGround) {
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
if (this._currentframe == 6) {
this.gotoAndStop(2);
}
}
if (Key.isDown(39)) {
if (xspeed < maxspeed) {
xspeed += acceleration;
}
}
if (Key.isDown(37)) {
if (Math.abs(xspeed) < maxspeed) {
xspeed -= acceleration;
}
}
if (Key.isDown(38) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x + _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
_x = _x + xspeed;
}
if (ground.hitTest(_x, _y - height, true)) {
grav = 3;
}
_x = _x + xspeed;
}
}
movieClip 109 {
}
movieClip 111 {
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
frame 1360 {
stop();
}
button 115 {
on (release) {
_root.play();
}
}
frame 2546 {
stop();
}
instance char of movieClip 107 {
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var maxspeed = 5;
var xspeed = 0;
var acceleration = 2;
var maxJump = -5;
var friction = 0.9;
var touchingGround = false;
}
onClipEvent (enterFrame) {
xspeed *= friction;
if (Math.abs(speed) < 0.3) {
xspeed = 0;
}
_y = _y + grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(39)) {
if (touchingGround) {
this.gotoAndStop(3);
}
} else {
if (Key.isDown(37)) {
if (touchingGround) {
this.gotoAndStop(4);
}
} else {
if (Key.isDown(40)) {
if (touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(7);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(8);
}
}
}
}
}
if (Key.isDown(38)) {
if (!touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(5);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(6);
}
}
}
if (touchingGround) {
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
if (this._currentframe == 6) {
this.gotoAndStop(2);
}
}
if (Key.isDown(39)) {
if (xspeed < maxspeed) {
xspeed += acceleration;
}
}
if (Key.isDown(37)) {
if (Math.abs(xspeed) < maxspeed) {
xspeed -= acceleration;
}
}
if (Key.isDown(38) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x + _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
_x = _x + xspeed;
}
if (ground.hitTest(_x, _y - height, true)) {
grav = 3;
}
_x = _x + xspeed;
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
frame 2575 {
stop();
}
frame 3024 {
stop();
}
instance char of movieClip 107 {
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var maxspeed = 5;
var xspeed = 0;
var acceleration = 2;
var maxJump = -5;
var friction = 0.9;
var touchingGround = false;
}
onClipEvent (enterFrame) {
xspeed *= friction;
if (Math.abs(speed) < 0.3) {
xspeed = 0;
}
_y = _y + grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(39)) {
if (touchingGround) {
this.gotoAndStop(3);
}
} else {
if (Key.isDown(37)) {
if (touchingGround) {
this.gotoAndStop(4);
}
} else {
if (Key.isDown(40)) {
if (touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(7);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(8);
}
}
}
}
}
if (Key.isDown(38)) {
if (!touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(5);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(6);
}
}
}
if (touchingGround) {
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
if (this._currentframe == 6) {
this.gotoAndStop(2);
}
}
if (Key.isDown(39)) {
if (xspeed < maxspeed) {
xspeed += acceleration;
}
}
if (Key.isDown(37)) {
if (Math.abs(xspeed) < maxspeed) {
xspeed -= acceleration;
}
}
if (Key.isDown(38) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x + _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
_x = _x + xspeed;
}
if (ground.hitTest(_x, _y - height, true)) {
grav = 3;
}
_x = _x + xspeed;
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
frame 3053 {
stop();
}
frame 4131 {
stop();
}
instance char of movieClip 107 {
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var maxspeed = 5;
var xspeed = 0;
var acceleration = 2;
var maxJump = -5;
var friction = 0.9;
var touchingGround = false;
}
onClipEvent (enterFrame) {
xspeed *= friction;
if (Math.abs(speed) < 0.3) {
xspeed = 0;
}
_y = _y + grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(39)) {
if (touchingGround) {
this.gotoAndStop(3);
}
} else {
if (Key.isDown(37)) {
if (touchingGround) {
this.gotoAndStop(4);
}
} else {
if (Key.isDown(40)) {
if (touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(7);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(8);
}
}
}
}
}
if (Key.isDown(38)) {
if (!touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(5);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(6);
}
}
}
if (touchingGround) {
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
if (this._currentframe == 6) {
this.gotoAndStop(2);
}
}
if (Key.isDown(39)) {
if (xspeed < maxspeed) {
xspeed += acceleration;
}
}
if (Key.isDown(37)) {
if (Math.abs(xspeed) < maxspeed) {
xspeed -= acceleration;
}
}
if (Key.isDown(38) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x + _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
_x = _x + xspeed;
}
if (ground.hitTest(_x, _y - height, true)) {
grav = 3;
}
_x = _x + xspeed;
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
frame 4160 {
stop();
}
frame 5029 {
stop();
}
instance char of movieClip 107 {
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var maxspeed = 5;
var xspeed = 0;
var acceleration = 2;
var maxJump = -5;
var friction = 0.9;
var touchingGround = false;
}
onClipEvent (enterFrame) {
xspeed *= friction;
if (Math.abs(speed) < 0.3) {
xspeed = 0;
}
_y = _y + grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(39)) {
if (touchingGround) {
this.gotoAndStop(3);
}
} else {
if (Key.isDown(37)) {
if (touchingGround) {
this.gotoAndStop(4);
}
} else {
if (Key.isDown(40)) {
if (touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(7);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(8);
}
}
}
}
}
if (Key.isDown(38)) {
if (!touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(5);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(6);
}
}
}
if (touchingGround) {
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
if (this._currentframe == 6) {
this.gotoAndStop(2);
}
}
if (Key.isDown(39)) {
if (xspeed < maxspeed) {
xspeed += acceleration;
}
}
if (Key.isDown(37)) {
if (Math.abs(xspeed) < maxspeed) {
xspeed -= acceleration;
}
}
if (Key.isDown(38) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x + _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
_x = _x + xspeed;
}
if (ground.hitTest(_x, _y - height, true)) {
grav = 3;
}
_x = _x + xspeed;
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
frame 5058 {
stop();
}
frame 5880 {
stop();
}
instance char of movieClip 107 {
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var maxspeed = 5;
var xspeed = 0;
var acceleration = 2;
var maxJump = -5;
var friction = 0.9;
var touchingGround = false;
}
onClipEvent (enterFrame) {
xspeed *= friction;
if (Math.abs(speed) < 0.3) {
xspeed = 0;
}
_y = _y + grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(39)) {
if (touchingGround) {
this.gotoAndStop(3);
}
} else {
if (Key.isDown(37)) {
if (touchingGround) {
this.gotoAndStop(4);
}
} else {
if (Key.isDown(40)) {
if (touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(7);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(8);
}
}
}
}
}
if (Key.isDown(38)) {
if (!touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(5);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(6);
}
}
}
if (touchingGround) {
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
if (this._currentframe == 6) {
this.gotoAndStop(2);
}
}
if (Key.isDown(39)) {
if (xspeed < maxspeed) {
xspeed += acceleration;
}
}
if (Key.isDown(37)) {
if (Math.abs(xspeed) < maxspeed) {
xspeed -= acceleration;
}
}
if (Key.isDown(38) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x + _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
_x = _x + xspeed;
}
if (ground.hitTest(_x, _y - height, true)) {
grav = 3;
}
_x = _x + xspeed;
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
frame 5909 {
stop();
}
frame 6524 {
stop();
}
instance char of movieClip 107 {
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var maxspeed = 5;
var xspeed = 0;
var acceleration = 2;
var maxJump = -5;
var friction = 0.9;
var touchingGround = false;
}
onClipEvent (enterFrame) {
xspeed *= friction;
if (Math.abs(speed) < 0.3) {
xspeed = 0;
}
_y = _y + grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(39)) {
if (touchingGround) {
this.gotoAndStop(3);
}
} else {
if (Key.isDown(37)) {
if (touchingGround) {
this.gotoAndStop(4);
}
} else {
if (Key.isDown(40)) {
if (touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(7);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(8);
}
}
}
}
}
if (Key.isDown(38)) {
if (!touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(5);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(6);
}
}
}
if (touchingGround) {
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
if (this._currentframe == 6) {
this.gotoAndStop(2);
}
}
if (Key.isDown(39)) {
if (xspeed < maxspeed) {
xspeed += acceleration;
}
}
if (Key.isDown(37)) {
if (Math.abs(xspeed) < maxspeed) {
xspeed -= acceleration;
}
}
if (Key.isDown(38) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x + _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
_x = _x + xspeed;
}
if (ground.hitTest(_x, _y - height, true)) {
grav = 3;
}
_x = _x + xspeed;
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
frame 6553 {
stop();
}
frame 6924 {
stop();
}
instance char of movieClip 107 {
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var maxspeed = 5;
var xspeed = 0;
var acceleration = 2;
var maxJump = -5;
var friction = 0.9;
var touchingGround = false;
}
onClipEvent (enterFrame) {
xspeed *= friction;
if (Math.abs(speed) < 0.3) {
xspeed = 0;
}
_y = _y + grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(39)) {
if (touchingGround) {
this.gotoAndStop(3);
}
} else {
if (Key.isDown(37)) {
if (touchingGround) {
this.gotoAndStop(4);
}
} else {
if (Key.isDown(40)) {
if (touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(7);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(8);
}
}
}
}
}
if (Key.isDown(38)) {
if (!touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(5);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(6);
}
}
}
if (touchingGround) {
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
if (this._currentframe == 6) {
this.gotoAndStop(2);
}
}
if (Key.isDown(39)) {
if (xspeed < maxspeed) {
xspeed += acceleration;
}
}
if (Key.isDown(37)) {
if (Math.abs(xspeed) < maxspeed) {
xspeed -= acceleration;
}
}
if (Key.isDown(38) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x + _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
_x = _x + xspeed;
}
if (ground.hitTest(_x, _y - height, true)) {
grav = 3;
}
_x = _x + xspeed;
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
frame 6953 {
stop();
}
frame 6986 {
stop();
}
instance char of movieClip 107 {
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var maxspeed = 5;
var xspeed = 0;
var acceleration = 2;
var maxJump = -5;
var friction = 0.9;
var touchingGround = false;
}
onClipEvent (enterFrame) {
xspeed *= friction;
if (Math.abs(speed) < 0.3) {
xspeed = 0;
}
_y = _y + grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(39)) {
if (touchingGround) {
this.gotoAndStop(3);
}
} else {
if (Key.isDown(37)) {
if (touchingGround) {
this.gotoAndStop(4);
}
} else {
if (Key.isDown(40)) {
if (touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(7);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(8);
}
}
}
}
}
if (Key.isDown(38)) {
if (!touchingGround) {
if (this._currentframe == 1 || this._currentframe == 3) {
this.gotoAndStop(5);
}
if (this._currentframe == 2 || this._currentframe == 4) {
this.gotoAndStop(6);
}
}
}
if (touchingGround) {
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
if (this._currentframe == 6) {
this.gotoAndStop(2);
}
}
if (Key.isDown(39)) {
if (xspeed < maxspeed) {
xspeed += acceleration;
}
}
if (Key.isDown(37)) {
if (Math.abs(xspeed) < maxspeed) {
xspeed -= acceleration;
}
}
if (Key.isDown(38) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x + _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x = _x + xspeed;
} else {
acceleration = 2;
}
if (ground.hitTest(_x - _width / 2, _y - _height / 2, true)) {
_x = _x + xspeed;
}
if (ground.hitTest(_x, _y - height, true)) {
grav = 3;
}
_x = _x + xspeed;
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
instance of movieClip 111 {
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.play();
}
}
}
movieClip 119 {
}
frame 7009 {
stop();
}
// unknown tag 88 length 23