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 = 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 36 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 57 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 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 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 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.removeMovieClip();
}
}
Instance of Symbol 36 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 57 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.nextFrame();
}
}
Frame 5
stop();
Instance of Symbol 57 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 36 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 52 MovieClip Frame 1
stop();
Instance of Symbol 52 MovieClip in Symbol 55 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 52 MovieClip in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Instance of Symbol 52 MovieClip in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.nextFrame();
}
}
Symbol 65 Button
on (press) {
gotoAndPlay (2);
}