Frame 1
stop();
Instance of Symbol 8 MovieClip "player" in Frame 1
onClipEvent (load) {
var grav = 0;
var speed = 6;
var jumpHeight = 14;
var slow = 0.5;
var slowspd = (speed / 2);
var setspeed = speed;
var scale = _xscale;
var ex = 2;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.water.hitTest(_x, _y, true)) {
if (grav > 0) {
grav = grav * slow;
}
speed = slowspd;
} else {
speed = setspeed;
}
if (Key.isDown(68)) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
Instance of Symbol 48 MovieClip "lol" in Frame 1
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 2
stopAllSounds();
Frame 3
stop();
Instance of Symbol 8 MovieClip "player" in Frame 3
onClipEvent (load) {
var grav = 0;
var speed = 6;
var jumpHeight = 14;
var slow = 0.5;
var slowspd = (speed / 2);
var setspeed = speed;
var scale = _xscale;
var ex = 3;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.water.hitTest(_x, _y, true)) {
if (grav > 0) {
grav = grav * slow;
}
speed = slowspd;
} else {
speed = setspeed;
}
if (Key.isDown(68)) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
_root.score = _root.score + 1;
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
_root.score = _root.score + 1;
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 48 MovieClip "lol" in Frame 3
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 4
stop();
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.nextFrame();
}
}
Frame 5
stop();
Instance of Symbol 69 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.nextFrame();
}
}
Instance of Symbol 8 MovieClip "player" in Frame 5
onClipEvent (load) {
var grav = 0;
var speed = 6;
var jumpHeight = 14;
var slow = 0.5;
var slowspd = (speed / 2);
var setspeed = speed;
var scale = _xscale;
var ex = 4;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.water.hitTest(_x, _y, true)) {
if (grav > 0) {
grav = grav * slow;
}
speed = slowspd;
} else {
speed = setspeed;
}
if (Key.isDown(68)) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
Frame 6
stop();
Instance of Symbol 8 MovieClip "player" in Frame 6
onClipEvent (load) {
var grav = 0;
var speed = 6;
var jumpHeight = 14;
var slow = 0.5;
var slowspd = (speed / 2);
var setspeed = speed;
var scale = _xscale;
var ex = 3;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.water.hitTest(_x, _y, true)) {
if (grav > 0) {
grav = grav * slow;
}
speed = slowspd;
} else {
speed = setspeed;
}
if (Key.isDown(68)) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
Frame 7
stop();
Frame 8
stop();
Instance of Symbol 8 MovieClip "player" in Frame 8
onClipEvent (load) {
var grav = 0;
var speed = 6;
var jumpHeight = 14;
var slow = 0.5;
var slowspd = (speed / 2);
var setspeed = speed;
var scale = _xscale;
var ex = 4;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.water.hitTest(_x, _y, true)) {
if (grav > 0) {
grav = grav * slow;
}
speed = slowspd;
} else {
speed = setspeed;
}
if (Key.isDown(68)) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
Frame 14
stop();
Instance of Symbol 8 MovieClip "player" in Frame 14
onClipEvent (load) {
var grav = 0;
var speed = 6;
var jumpHeight = 14;
var slow = 0.5;
var slowspd = (speed / 2);
var setspeed = speed;
var scale = _xscale;
var ex = 0;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.water.hitTest(_x, _y, true)) {
if (grav > 0) {
grav = grav * slow;
}
speed = slowspd;
} else {
speed = setspeed;
}
if (Key.isDown(68)) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && (_root.ground.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
Frame 15
stop();
Symbol 32 Button
on (release) {
gotoAndPlay (4);
}
Symbol 33 Button
on (release) {
gotoAndPlay (2);
}
Symbol 43 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 46 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local2 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local2;
if (_local2 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
}
function startMovie() {
_root.play();
}
_root.stop();
stop();
var AUTO_PLAY = false;
var loadingComplete = false;
timerHandler();
Instance of Symbol 44 MovieClip in Symbol 46 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.timerHandler();
}
Symbol 46 MovieClip Frame 2
stop();
Symbol 48 MovieClip Frame 1
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 64 MovieClip Frame 1
stop();
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Symbol 77 Button
on (press) {
gotoAndPlay (2);
}