Frame 1
function itemHandler2(obj, item) {
getURL ("http://www.zero123music.newgrounds.com");
}
stopAllSounds();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item2 = new ContextMenuItem("I Said 'Do Not Right-Click!'", itemHandler2);
myMenu.customItems.push(item2);
_root.menu = myMenu;
Frame 2
stop();
Instance of Symbol 45 MovieClip "player" in Frame 2
onClipEvent (load) {
var grav = 0;
var speed = 10;
var jumpHeight = 10;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
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;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green)) {
gotoAndPlay (4);
}
}
Instance of Symbol 59 MovieClip in Frame 2
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 3
stop();
Instance of Symbol 45 MovieClip "player" in Frame 3
onClipEvent (load) {
var grav = 0;
var speed = 10;
var jumpHeight = 12;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground2.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.ground2.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground2.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground2.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.ground2.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground2.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground2.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground2.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground2.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground2.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground2.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground2.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green2)) {
gotoAndPlay (6);
}
}
Instance of Symbol 59 MovieClip 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 45 MovieClip "player" in Frame 4
onClipEvent (load) {
var grav = 0;
var speed = 10;
var jumpHeight = 12;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground3.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.ground3.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground3.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground3.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.ground3.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground3.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground3.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground3.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground3.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground3.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground3.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground3.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green)) {
gotoAndPlay (7);
}
}
Frame 5
stop();
Instance of Symbol 45 MovieClip "player" in Frame 5
onClipEvent (load) {
var grav = 0;
var speed = 10;
var jumpHeight = 14;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground4.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.ground4.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground4.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground4.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.ground4.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground4.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground4.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground4.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground4.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground4.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground4.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground4.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green3)) {
gotoAndPlay (8);
}
}
Instance of Symbol 59 MovieClip in Frame 5
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 6
stop();
Instance of Symbol 45 MovieClip "player" in Frame 6
onClipEvent (load) {
var grav = 0;
var speed = 10;
var jumpHeight = 12;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 10;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground5.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.ground5.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground5.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground5.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.ground5.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground5.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground5.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground5.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground5.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground5.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground5.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground5.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green5)) {
gotoAndPlay (9);
}
}
Instance of Symbol 59 MovieClip in Frame 6
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 7
stop();
Instance of Symbol 45 MovieClip "player" in Frame 7
onClipEvent (load) {
var grav = 10;
var speed = 10;
var jumpHeight = 28;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 10;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground6.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.ground6.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground6.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground6.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.ground6.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground6.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground6.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground6.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground6.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground6.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground6.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground6.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green6)) {
gotoAndPlay (10);
}
}
Instance of Symbol 59 MovieClip in Frame 7
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 8
stop();
Instance of Symbol 45 MovieClip "player" in Frame 8
onClipEvent (load) {
var grav = 10;
var speed = 10;
var jumpHeight = 50;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 10;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground7.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.ground7.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground7.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground7.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.ground7.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground7.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground7.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground7.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground7.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground7.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground7.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground7.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green7)) {
gotoAndPlay (11);
}
}
Instance of Symbol 59 MovieClip in Frame 8
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 9
stop();
Instance of Symbol 45 MovieClip "player" in Frame 9
onClipEvent (load) {
var grav = 10;
var speed = 50;
var jumpHeight = 10;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 10;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground8.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.ground8.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground8.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground8.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.ground8.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground8.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground8.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground8.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground8.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground8.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground8.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground8.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green8)) {
gotoAndPlay (12);
}
}
Instance of Symbol 59 MovieClip in Frame 9
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 10
stop();
Instance of Symbol 45 MovieClip "player" in Frame 10
onClipEvent (load) {
var grav = 10;
var speed = 11.6;
var jumpHeight = 10;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 10;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground9.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.ground9.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground9.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground9.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.ground9.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground9.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground9.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground9.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground9.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground9.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground9.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground9.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green9)) {
gotoAndPlay (13);
}
}
Instance of Symbol 59 MovieClip in Frame 10
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 11
stop();
Instance of Symbol 45 MovieClip "player" in Frame 11
onClipEvent (load) {
var grav = 10;
var speed = 11.6;
var jumpHeight = 1;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 10;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground10.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.ground10.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground10.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground10.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.ground10.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground10.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground10.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground10.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground10.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground10.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground10.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground10.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green10)) {
gotoAndPlay (14);
}
}
Instance of Symbol 59 MovieClip in Frame 11
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - _y) / 4));
_x = (_x + ((_root.player._x - _x) / 4));
}
Frame 12
stop();
Instance of Symbol 45 MovieClip "player" in Frame 12
onClipEvent (load) {
var grav = 10;
var speed = 11.6;
var jumpHeight = 13;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 10;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground11.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.ground11.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground11.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground11.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.ground11.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground11.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground11.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground11.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground11.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground11.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground11.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground11.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Green11)) {
gotoAndPlay (15);
}
}
Symbol 9 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 14 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._yscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 14 MovieClip Frame 72
startMovie();
Symbol 25 MovieClip Frame 4
stop();
Symbol 44 Button
on (release) {
_root.play();
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 2
stop();
Symbol 45 MovieClip Frame 3
stop();
Symbol 45 MovieClip Frame 4
stop();
stop();
Symbol 55 Button
on (release) {
getURL ("http://www.magnatune.com", "_blank");
}
Symbol 59 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;
}
parentColor.setTransform(camColor.getTransform());
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;