Frame 3
stop();
Frame 4
stop();
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
var hp = 100;
var maxhp = 100;
var grav = 0;
var speed = 5;
var jumpHeight = 12;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
var dam = 25;
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) * 4), 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) * 4), true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, _y - _height, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.goal)) {
this._parent.gotoAndPlay(5);
}
}
Frame 5
stop();
Instance of Symbol 33 MovieClip in Frame 5
onClipEvent (load) {
var hp = 100;
var maxhp = 100;
var grav = 0;
var speed = 5;
var jumpHeight = 12;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
var dam = 25;
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) * 4), 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) * 4), true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, _y - _height, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.goal)) {
this._parent.gotoAndPlay(6);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.fire)) {
this._parent.gotoAndPlay(5);
}
}
Frame 6
stop();
Instance of Symbol 33 MovieClip in Frame 6
onClipEvent (load) {
var hp = 100;
var maxhp = 100;
var grav = 0;
var speed = 5;
var jumpHeight = 12;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
var dam = 25;
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) * 4), 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) * 4), true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, _y - _height, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.goal)) {
this._parent.gotoAndPlay(7);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy)) {
this._parent.gotoAndPlay(8);
}
}
Frame 7
stop();
goal._visible = false;
Instance of Symbol 33 MovieClip in Frame 7
onClipEvent (load) {
var hp = 100;
var maxhp = 100;
var grav = 0;
var speed = 5;
var jumpHeight = 12;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
var dam = 25;
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) * 4), 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) * 4), true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, _y - _height, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.goal)) {
this._parent.gotoAndPlay(9);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy)) {
this._parent.gotoAndPlay(8);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.lol)) {
_root.goal._visible = !_root.goal._visible;
}
}
Frame 8
stop();
Frame 9
stop();
Instance of Symbol 33 MovieClip in Frame 9
onClipEvent (load) {
var hp = 100;
var maxhp = 100;
var grav = 0;
var speed = 5;
var jumpHeight = 12;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
var dam = 25;
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) * 4), 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) * 4), true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, _y - _height, true)) {
grav = 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.goal)) {
this._parent.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy)) {
this._parent.gotoAndPlay(8);
}
}
Symbol 16 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 21 Button
on (release) {
_root.play();
}
Symbol 22 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 22 MovieClip Frame 2
gotoAndPlay (1);
Symbol 27 Button
on (release) {
gotoAndPlay (4);
}
Symbol 62 Button
on (release) {
_root.goal._visible = !_root.goal._visible;
}
Symbol 72 Button
on (release) {
gotoAndPlay (4);
}