Frame 1
function deadClick() {
}
function max() {
getURL ("http://www.maxgames.com");
}
function suicide() {
gotoAndStop (2);
}
function quality_low() {
_quality = "low";
}
function quality_med() {
_quality = "medium";
}
function quality_high() {
_quality = "high";
}
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
loader.gotoAndStop(percentbytes);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var qualitylow = new ContextMenuItem("Low Quality", quality_low);
var qualitymed = new ContextMenuItem("Medium Quality", quality_med);
var qualityhigh = new ContextMenuItem("High Quality", quality_high);
var copyrightNotice = new ContextMenuItem("\u00A9 2008 HapPie", deadClick);
var copyrightNotice = new ContextMenuItem("More awesome games at MAXGAMES.COM", max);
var commit = new ContextMenuItem("Commit suicide", suicide);
copyrightNotice.separatorBefore = true;
commit.separatorBefore = true;
myMenu.customItems.push(qualityhigh, qualitymed, qualitylow, commit, copyrightNotice);
_root.menu = myMenu;
score = 0;
function SpawnEnemy() {
duplicateMovieClip (_root.Ene, "Ene" + i, i);
attachMovie("Loader_enemy", "Ene" + i, i);
Dod = _root["Ene" + (i / 10)];
Dod._y = SpawnPointY;
Dod._x = SpawnPointX;
Dod._x = Math.random() * Stage.width;
Dod._y = Math.random() * Stage.height;
i++;
}
var i = 0;
var SpawnPointY = 300;
var SpawnPointX = 450;
onEnterFrame = function () {
SpawnEnemy();
};
Instance of Symbol 55 MovieClip "player" in Frame 1
onClipEvent (load) {
var grav = 0;
var run = 5;
var wlk = 0;
var speed = run;
var jumpHeight = 8;
var dbl = 6;
var tri = 6;
var djump = false;
var tjump = false;
var thro = false;
var slow = 0.7;
var slowspd = (speed / 2);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
if (Key.isDown(65)) {
setspeed = wlk;
} else {
setspeed = run;
}
while (_root.ground.hitTest(_x, _y, true)) {
djump = false;
tjump = false;
_y = (_y-1);
grav = 0;
}
if (_root.water.hitTest(_x, _y, true)) {
grav = grav * (slow * 1.25);
} else {
speed = setspeed;
}
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
}
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
}
} else if ((_root.ground.hitTest(_x, _y + 3, true) && (!Key.isDown(68))) && (!Key.isDown(83))) {
this.gotoAndStop(3);
}
if (((((Key.isDown(68) && (!Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(37))) && (!Key.isDown(83))) && (_root.ground.hitTest(_x, _y + 3, true))) {
this.gotoAndStop(8);
}
if ((((((Key.isDown(83) && (!Key.isDown(39))) && (!Key.isDown(37))) && (!Key.isDown(38))) && (!Key.isDown(68))) && (_root.ground.hitTest(_x, _y + 3, true))) && (_currentframe != 6)) {
this.gotoAndStop(7);
} else if (Key.isDown(83) && (grav > 1)) {
this.gotoAndStop(6);
}
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 2
if (loadedbytes == totalbytes) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 688
health = 100;
stop();
Instance of Symbol 186 MovieClip "player" in Frame 688
onClipEvent (load) {
var grav = 2;
var speed = 10;
var jumpHeight = 12.5;
var slow = 0.7;
var slowspd = (speed / 1.5);
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;
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.enemy)) {
_root.health = _root.health - 40;
this.gotoAndStop(4);
}
if (_root.health <= 0) {
_root.gotoAndPlay("D");
}
}
Instance of Symbol 191 MovieClip in Frame 688
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 738
stop();
Frame 739
function deadClick() {
}
function suicide() {
gotoAndPlay (740);
}
function quality_low() {
_quality = "low";
}
function quality_med() {
_quality = "medium";
}
function quality_high() {
_quality = "high";
}
stop();
health = 100;
score = 0;
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var qualitylow = new ContextMenuItem("Low Quality", quality_low);
var qualitymed = new ContextMenuItem("Medium Quality", quality_med);
var qualityhigh = new ContextMenuItem("High Quality", quality_high);
var copyrightNotice = new ContextMenuItem("\u00A9 2008 HapPie", deadClick);
var commit = new ContextMenuItem("Commit suicide", suicide);
copyrightNotice.separatorBefore = true;
commit.separatorBefore = true;
myMenu.customItems.push(qualityhigh, qualitymed, qualitylow, commit, copyrightNotice);
_root.menu = myMenu;
Instance of Symbol 278 MovieClip in Frame 739
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damage = 75;
}
onClipEvent (enterFrame) {
distance = 100;
dis2 = 35;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damage;
this.gotoAndStop(3);
}
}
Instance of Symbol 186 MovieClip "player" in Frame 739
onClipEvent (load) {
var grav = 2;
var speed = 10;
var jumpHeight = 12.5;
var slow = 0.7;
var slowspd = (speed / 1.5);
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;
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.enemy)) {
_root.health = _root.health - 40;
this.gotoAndStop(4);
}
if (_root.health <= 0) {
_root.gotoAndPlay("D1");
}
}
Instance of Symbol 191 MovieClip in Frame 739
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + (((_root.player._x - _x) / 6) - 20));
}
Frame 789
stop();
Frame 790
function deadClick() {
}
function suicide() {
gotoAndPlay (791);
}
function quality_low() {
_quality = "low";
}
function quality_med() {
_quality = "medium";
}
function quality_high() {
_quality = "high";
}
play();
health = 100;
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var qualitylow = new ContextMenuItem("Low Quality", quality_low);
var qualitymed = new ContextMenuItem("Medium Quality", quality_med);
var qualityhigh = new ContextMenuItem("High Quality", quality_high);
var copyrightNotice = new ContextMenuItem("\u00A9 2008 HapPie", deadClick);
var commit = new ContextMenuItem("Commit suicide", suicide);
copyrightNotice.separatorBefore = true;
commit.separatorBefore = true;
myMenu.customItems.push(qualityhigh, qualitymed, qualitylow, commit, copyrightNotice);
_root.menu = myMenu;
Instance of Symbol 186 MovieClip "player" in Frame 790
onClipEvent (load) {
var grav = 2;
var speed = 10;
var jumpHeight = 12.5;
var slow = 0.7;
var slowspd = (speed / 1.5);
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;
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.enemy)) {
_root.health = _root.health - 40;
this.gotoAndStop(4);
}
if (_root.health <= 0) {
_root.gotoAndPlay("D2");
}
}
Instance of Symbol 191 MovieClip in Frame 790
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Instance of Symbol 464 MovieClip in Frame 887
onClipEvent (load) {
speed = 0;
movespeed = 1;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 100);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.2;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.2;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Frame 889
stop();
Instance of Symbol 464 MovieClip in Frame 889
onClipEvent (load) {
speed = 0;
movespeed = 1;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 100);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.2;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.2;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Frame 1114
stop();
Frame 1115
play();
health = 100;
Instance of Symbol 186 MovieClip "player" in Frame 1115
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D3");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.trap)) {
_root.gotoAndStop("Trap");
}
}
Instance of Symbol 464 MovieClip in Frame 1115
onClipEvent (load) {
speed = 0;
movespeed = 3.5;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 100);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 25, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.1;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.1;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Instance of Symbol 564 MovieClip in Frame 1115
onClipEvent (load) {
espeed = 20;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 20;
distance = 200;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1115
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 200;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1115
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 180;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 191 MovieClip in Frame 1115
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1117
stop();
Instance of Symbol 464 MovieClip in Frame 1117
onClipEvent (load) {
speed = 0;
movespeed = 3;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 100);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 25, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.1;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.1;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Instance of Symbol 565 MovieClip in Frame 1117
onClipEvent (load) {
espeed = 3;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 200;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Frame 1167
stop();
Frame 1168
play();
stop();
health = 100;
Instance of Symbol 186 MovieClip "player" in Frame 1168
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D4");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.trap)) {
_root.gotoAndStop("Trap");
}
}
Instance of Symbol 565 MovieClip in Frame 1168
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 464 MovieClip in Frame 1168
onClipEvent (load) {
speed = 0;
movespeed = 1;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 100);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 35, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.2;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.2;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Instance of Symbol 678 MovieClip in Frame 1168
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 678 MovieClip in Frame 1168
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 191 MovieClip in Frame 1168
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1220
stop();
Frame 1221
play();
stop();
health = 100;
Instance of Symbol 709 MovieClip "player" in Frame 1221
onClipEvent (load) {
var grav = 30;
var speed = 25;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D5");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.wall)) {
_root.gotoAndPlay("D5");
}
}
Instance of Symbol 736 MovieClip "notplayer" in Frame 1221
onClipEvent (load) {
espeed = 5;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 200;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
_root.notplayer;
if (hitTest(_root.door)) {
_root.gotoAndPlay("next");
}
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
if (tx > sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1221
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.notplayer._x;
sy = _root.notplayer._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 678 MovieClip in Frame 1221
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.notplayer._x;
sy = _root.notplayer._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 191 MovieClip in Frame 1221
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1222
stop();
Frame 1272
stop();
Frame 1280
play();
stop();
health = 100;
Instance of Symbol 709 MovieClip "player" in Frame 1280
onClipEvent (load) {
var grav = 30;
var speed = 25;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D55");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.wall)) {
_root.gotoAndPlay("D55");
}
}
Instance of Symbol 736 MovieClip "notplayer" in Frame 1280
onClipEvent (load) {
espeed = 5;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 250;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
_root.notplayer;
if (hitTest(_root.door)) {
_root.gotoAndPlay("next2");
}
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
if (tx > sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1280
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.notplayer._x;
sy = _root.notplayer._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1280
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.notplayer._x;
sy = _root.notplayer._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1280
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.notplayer._x;
sy = _root.notplayer._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 191 MovieClip in Frame 1280
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1331
stop();
Frame 1339
play();
stop();
health = 100;
k = Math.round(Math.random());
Instance of Symbol 786 MovieClip in Frame 1339
onClipEvent (load) {
if (_root.k == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 797 MovieClip in Frame 1339
onClipEvent (load) {
if (_root.k == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 186 MovieClip "player" in Frame 1339
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D5");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.trap)) {
_root.gotoAndStop("Trap");
}
}
Instance of Symbol 191 MovieClip in Frame 1339
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1391
stop();
Frame 1392
play();
stop();
health = 100;
Instance of Symbol 906 MovieClip "player" in Frame 1392
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D7");
}
_root.player;
if (hitTest(_root.wall)) {
_root.gotoAndPlay("D7");
}
}
Instance of Symbol 909 MovieClip in Frame 1392
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1392
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1392
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1392
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 400;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1392
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1392
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 600;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1392
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 600;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 911 MovieClip in Frame 1392
onClipEvent (load) {
speed = 0;
movespeed = 0.5;
damagenumber = 10;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 1000);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 35, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.2;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.2;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Instance of Symbol 911 MovieClip in Frame 1392
onClipEvent (load) {
speed = 0;
movespeed = 1;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 1000);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 35, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.2;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.2;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Instance of Symbol 914 MovieClip in Frame 1392
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1444
stop();
Frame 1445
play();
health = 100;
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 800;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 5;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 600;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1445
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 186 MovieClip "player" in Frame 1445
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D8");
}
_root.player;
if (hitTest(_root.wall)) {
_root.gotoAndPlay("D8");
}
_root.player;
if (hitTest(_root.wall1)) {
_root.gotoAndPlay("D8");
}
_root.player;
if (hitTest(_root.wall2)) {
_root.gotoAndPlay("D8");
}
_root.player;
if (hitTest(_root.wall3)) {
_root.gotoAndPlay("D8");
}
_root.player;
if (hitTest(_root.wall4)) {
_root.gotoAndPlay("D8");
}
_root.player;
if (hitTest(_root.wall5)) {
_root.gotoAndPlay("D8");
}
_root.player;
if (hitTest(_root.wall6)) {
_root.gotoAndPlay("D8");
}
}
Instance of Symbol 930 MovieClip "player" in Frame 1445
onClipEvent (enterFrame) {
_y = (_y + (_root.player._y - _y));
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 914 MovieClip in Frame 1445
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1536
stop();
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 5;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 600;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 200;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1536
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground2.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground2.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground2.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 186 MovieClip "player" in Frame 1537
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D7");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.trap)) {
_root.gotoAndStop("Trap");
}
}
Frame 1586
stop();
Frame 1587
play();
health = 100;
stop();
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 911 MovieClip in Frame 1587
onClipEvent (load) {
speed = 0;
movespeed = 1;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 1000);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 35, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.2;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.2;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Instance of Symbol 911 MovieClip in Frame 1587
onClipEvent (load) {
speed = 0;
movespeed = 1;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 1000);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 35, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.2;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.2;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 500;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 909 MovieClip in Frame 1587
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 300;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(4);
_y = (_y + 1000);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 186 MovieClip "player" in Frame 1587
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D85");
}
}
Instance of Symbol 930 MovieClip "player" in Frame 1587
onClipEvent (enterFrame) {
_y = (_y + (_root.player._y - _y));
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 914 MovieClip in Frame 1587
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Instance of Symbol 186 MovieClip "player" in Frame 1590
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D8.5");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.trap)) {
_root.gotoAndStop("Trap");
}
}
Frame 1639
stop();
Frame 1640
play();
stop();
health = 100;
Instance of Symbol 186 MovieClip "player" in Frame 1640
onClipEvent (load) {
var grav = 40;
var speed = 21;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D9");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.wall)) {
_root.gotoAndPlay("D9");
}
}
Instance of Symbol 564 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 20;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 20;
distance = 200;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 564 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 20;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 20;
distance = 200;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 464 MovieClip in Frame 1640
onClipEvent (load) {
speed = 0;
movespeed = 3;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 100);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 35, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.2;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.2;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Instance of Symbol 464 MovieClip in Frame 1640
onClipEvent (load) {
speed = 0;
movespeed = 1.4;
damagenumber = 20;
grav = 0;
dead = false;
scale = _xscale;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + grav);
grav++;
if (dead == true) {
this.gotoAndStop(3);
_y = (_y + 100);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 35, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
if (_root.player._x > _x) {
speed = speed + 0.2;
_x = (_x + movespeed);
_xscale = scale;
}
if (_root.player._x < _x) {
speed = speed - 0.2;
_x = (_x - movespeed);
_xscale = (-scale);
}
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
_root.health = _root.health - damagenumber;
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.player.att1)) {
this.gotoAndStop(3);
dead = true;
}
if (this.hitTest(_root.player.att2)) {
this.gotoAndStop(3);
dead = true;
}
}
Instance of Symbol 678 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 678 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 678 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 678 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 678 MovieClip in Frame 1640
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 191 MovieClip in Frame 1640
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1692
stop();
Frame 1693
play();
stop();
health = 100;
Instance of Symbol 565 MovieClip in Frame 1693
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 186 MovieClip "player" in Frame 1693
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D11");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.trap)) {
_root.gotoAndStop("Trap");
}
}
Instance of Symbol 191 MovieClip in Frame 1693
onClipEvent (enterFrame) {
_y = (_y + (((_root.player._y - (1.4 * _y)) / 6) - 30));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1745
stop();
Frame 1746
play();
stop();
health = 100;
Instance of Symbol 1074 MovieClip "player" in Frame 1746
onClipEvent (load) {
var speed = 10;
var jumpHeight = 12.5;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
while (_root.ground.hitTest(_x, _y, true)) {
}
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);
_root.c = _root.c - 0.03;
} 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 ((_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 (_root.health <= 0) {
_root.gotoAndPlay("D12");
}
}
Instance of Symbol 191 MovieClip in Frame 1746
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.3 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1798
stop();
Frame 1799
play();
stop();
health = 100;
Instance of Symbol 564 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 20;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 20;
distance = 200;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 186 MovieClip "player" in Frame 1799
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D13");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.wall)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall1)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall2)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall3)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall4)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall5)) {
_root.health = _root.health - 100;
}
}
Instance of Symbol 565 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 565 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 678 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 678 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 678 MovieClip in Frame 1799
onClipEvent (load) {
espeed = 2;
scale = _xscale;
damagenumber = 20;
grav = 0;
dead = false;
}
onClipEvent (enterFrame) {
dis2 = 35;
distance = 260;
_y = (_y + grav);
grav++;
tx = this._x;
ty = this._y;
sx = _root.player._x;
sy = _root.player._y;
if (dead == true) {
this.gotoAndStop(5);
_y = (_y + 100);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + espeed;
this.gotoAndStop(2);
_xscale = scale;
}
if (tx > sx) {
this._x = this._x - espeed;
this.gotoAndStop(2);
_xscale = (-scale);
}
} else {
this.gotoAndStop(1);
}
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < dis2) {
_root.health = _root.health - damagenumber;
this.gotoAndStop(3);
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 12, _y - 18, true)) {
speed = 0;
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 12, _y - 18, true)) {
speed = 0;
_x = (_x+1);
}
}
Instance of Symbol 1207 MovieClip in Frame 1799
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1851
stop();
Frame 1852
play();
health = 100;
Instance of Symbol 1258 MovieClip in Frame 1852
onClipEvent (enterFrame) {
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 186 MovieClip "player" in Frame 1852
onClipEvent (load) {
var grav = 30;
var speed = 4;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D11");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.wall)) {
_root.health = _root.health - 100;
}
}
Instance of Symbol 186 MovieClip "player" in Frame 1852
onClipEvent (load) {
var grav = 30;
var speed = 4;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D11");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.wall)) {
_root.health = _root.health - 100;
}
}
Instance of Symbol 191 MovieClip in Frame 1852
onClipEvent (enterFrame) {
_y = (_y + (((_root.player._y - (1.4 * _y)) / 6) - 30));
_x = (_x + ((_root.player._x - _x) / 6));
}
Instance of Symbol 1261 MovieClip in Frame 7297
onClipEvent (enterFrame) {
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 1261 MovieClip in Frame 7503
onClipEvent (enterFrame) {
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 1261 MovieClip in Frame 7706
onClipEvent (enterFrame) {
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 1261 MovieClip in Frame 7926
onClipEvent (enterFrame) {
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 1261 MovieClip in Frame 8529
onClipEvent (enterFrame) {
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 186 MovieClip "player" in Frame 8607
onClipEvent (load) {
var grav = 30;
var speed = 4;
var jumpHeight = 0;
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 (_root.health <= 0) {
_root.gotoAndPlay("D11");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.wall)) {
_root.health = _root.health - 100;
}
}
Frame 9671
stop();
Frame 9672
play();
health = 100;
play();
health = 100;
Instance of Symbol 1074 MovieClip "player" in Frame 9672
onClipEvent (load) {
var speed = 10;
var jumpHeight = 12.5;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
while (_root.ground.hitTest(_x, _y, true)) {
}
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);
_root.c = _root.c - 0.03;
} 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 ((_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 (_root.health <= 0) {
_root.gotoAndPlay("D12");
}
}
Instance of Symbol 191 MovieClip in Frame 9672
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.3 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Instance of Symbol 186 MovieClip "player" in Frame 10172
onClipEvent (load) {
var grav = 30;
var speed = 10;
var jumpHeight = 12.5;
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 (_root.health <= 0) {
_root.gotoAndPlay("D13");
}
}
onClipEvent (enterFrame) {
_root.player;
if (hitTest(_root.wall)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall1)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall2)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall3)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall4)) {
_root.health = _root.health - 100;
}
_root.player;
if (hitTest(_root.wall5)) {
_root.health = _root.health - 100;
}
}
Frame 10182
stop();
Symbol 8 Button
on (release) {
getURL ("http://www.maxgames.com");
}
Symbol 15 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 32
gotoAndPlay (7);
Symbol 45 MovieClip Frame 7
stop();
Symbol 53 MovieClip Frame 53
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 55 MovieClip Frame 3
stop();
Symbol 55 MovieClip Frame 4
stop();
Symbol 55 MovieClip Frame 5
stop();
Symbol 55 MovieClip Frame 6
stop();
Symbol 55 MovieClip Frame 7
stop();
Symbol 55 MovieClip Frame 8
stop();
Symbol 59 Button
on (release) {
play();
}
Symbol 72 MovieClip Frame 140
stop();
Symbol 97 MovieClip Frame 9
stop();
Symbol 100 Button
on (release) {
gotoAndPlay (1);
}
Symbol 101 MovieClip Frame 903
stop();
Symbol 105 Button
on (release) {
play();
}
Symbol 113 Button
on (release) {
gotoAndPlay (10);
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 472
stop();
Symbol 124 Button
on (release) {
gotoAndPlay (10);
}
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 318
stop();
Symbol 130 Button
on (release) {
gotoAndStop (739);
}
Symbol 141 MovieClip Frame 1
stop();
stop();
Symbol 141 MovieClip Frame 392
stop();
Symbol 147 Button
on (release) {
gotoAndPlay (10);
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 376
stop();
Symbol 154 MovieClip Frame 1
stop();
stop();
Symbol 154 MovieClip Frame 329
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 3
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 3
stop();
Symbol 186 MovieClip Frame 4
stop();
Symbol 191 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 = true;
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;
Instance of Symbol 190 MovieClip "healthBar" in Symbol 191 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _root.health;
}
Symbol 194 MovieClip Frame 9826
gotoAndPlay (1);
Symbol 198 MovieClip Frame 19
stop();
Symbol 205 Button
on (release) {
gotoAndStop ("OMG");
}
Symbol 206 Button
on (release) {
gotoAndStop (790);
}
Symbol 212 Button
on (release) {
gotoAndPlay (10);
}
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 304
stop();
Symbol 222 Button
on (release) {
gotoAndPlay (10);
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 480
stop();
Symbol 226 Button
on (release) {
play();
}
Symbol 233 Button
on (release) {
gotoAndPlay (10);
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 243 Button
on (release) {
gotoAndPlay (10);
}
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 382
stop();
Symbol 253 Button
on (release) {
gotoAndPlay (10);
}
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 184
stop();
Symbol 260 MovieClip Frame 9818
gotoAndPlay (1);
Symbol 270 Button
on (release) {
gotoAndPlay (10);
}
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 484
stop();
Symbol 277 MovieClip Frame 36
gotoAndPlay (6);
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
stop();
Symbol 278 MovieClip Frame 3
stop();
Symbol 285 Button
on (release) {
play();
}
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 139
gotoAndStop (1);
Symbol 289 Button
on (release) {
play();
}
Symbol 291 Button
on (release) {
play();
}
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 117
stop();
Symbol 294 MovieClip Frame 311
stop();
Symbol 302 MovieClip Frame 63
stop();
Symbol 304 Button
on (release) {
gotoAndStop ("OMG1");
}
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 296
stop();
Symbol 311 Button
on (release) {
gotoAndStop (1115);
}
Symbol 317 Button
on (release) {
gotoAndPlay (10);
}
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 389
stop();
Symbol 328 Button
on (release) {
gotoAndPlay (10);
}
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 344
stop();
Symbol 335 Button
on (release) {
gotoAndPlay (10);
}
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 479
stop();
Symbol 345 Button
on (release) {
gotoAndPlay (10);
}
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 416
stop();
Symbol 353 Button
on (release) {
gotoAndPlay (10);
}
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 304
stop();
Symbol 360 Button
on (release) {
gotoAndPlay (10);
}
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 344
stop();
Symbol 372 Button
on (release) {
play();
}
Symbol 375 Button
on (release) {
gotoAndPlay (10);
}
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 214
stop();
Symbol 382 Button
on (release) {
gotoAndPlay (10);
}
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 408
stop();
Symbol 389 Button
on (release) {
gotoAndPlay (10);
}
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 365
stop();
Symbol 395 Button
on (release) {
gotoAndPlay (10);
}
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 365
stop();
Symbol 400 Button
on (release) {
gotoAndPlay (10);
}
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 274
stop();
Symbol 404 Button
on (release) {
play();
}
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 7
stop();
Symbol 414 Button
on (release) {
play();
}
Symbol 418 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 138
stop();
Symbol 420 Button
on (release) {
play();
}
Symbol 423 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 154
gotoAndStop (1);
Symbol 426 Button
on (release) {
gotoAndPlay (1204);
}
Symbol 428 MovieClip Frame 1219
stop();
Symbol 430 Button
on (release) {
play();
}
Symbol 434 MovieClip Frame 1
stop();
Symbol 437 Button
on (release) {
_root.health = _root.health - 25;
play();
}
Symbol 444 MovieClip Frame 1
stop();
Symbol 446 Button
on (release) {
play();
}
Symbol 448 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 64
stop();
Symbol 448 MovieClip Frame 119
stop();
Symbol 449 Button
on (release) {
play();
}
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 22
stop();
Symbol 454 MovieClip Frame 2721
gotoAndPlay (60);
Symbol 460 Button
on (release) {
gotoAndPlay (10);
}
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 344
stop();
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 2
stop();
Symbol 466 Button
on (release) {
gotoAndStop ("OMG2");
}
Symbol 469 Button
on (release) {
gotoAndPlay (10);
}
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 204
stop();
Symbol 476 Button
on (release) {
gotoAndPlay (10);
}
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 376
stop();
Symbol 480 Button
on (release) {
gotoAndPlay (10);
}
Symbol 481 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 268
stop();
Symbol 493 Button
on (release) {
gotoAndPlay (10);
}
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 737
stop();
Symbol 500 Button
on (release) {
gotoAndPlay (10);
}
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 376
stop();
Symbol 502 Button
on (release) {
gotoAndStop (1168);
}
Symbol 527 Button
on (release) {
gotoAndPlay (10);
}
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 224
stop();
Symbol 531 Button
on (release) {
play();
}
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 41
stop();
Symbol 534 MovieClip Frame 71
stop();
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 41
stop();
Symbol 537 MovieClip Frame 71
stop();
Symbol 541 Button
on (release) {
play();
}
Symbol 545 Button
on (release) {
gotoAndPlay (2640);
}
Symbol 551 MovieClip Frame 1
stop();
stop();
Symbol 551 MovieClip Frame 296
stop();
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 32
stop();
Symbol 560 MovieClip Frame 2202
gotoAndPlay (60);
Symbol 563 MovieClip Frame 12
gotoAndPlay (6);
Symbol 564 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 2
stop();
Symbol 564 MovieClip Frame 3
stop();
Symbol 565 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 2
stop();
Symbol 565 MovieClip Frame 3
stop();
Symbol 567 Button
on (release) {
gotoAndStop ("OMG3");
}
Symbol 568 Button
on (release) {
gotoAndStop (1221);
}
Symbol 574 Button
on (release) {
gotoAndPlay (10);
}
Symbol 575 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 276
stop();
Symbol 581 Button
on (release) {
gotoAndPlay (10);
}
Symbol 582 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 291
stop();
Symbol 588 Button
on (release) {
gotoAndPlay (10);
}
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 339
stop();
Symbol 595 Button
on (release) {
gotoAndPlay (10);
}
Symbol 596 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 361
stop();
Symbol 620 Button
on (release) {
gotoAndPlay (10);
}
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 956
stop();
Symbol 630 Button
on (release) {
gotoAndPlay (10);
}
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 571
stop();
Symbol 632 MovieClip Frame 2701
gotoAndPlay (60);
Symbol 635 Button
on (release) {
play();
}
Symbol 638 MovieClip Frame 1
stop();
Symbol 638 MovieClip Frame 37
stop();
Symbol 638 MovieClip Frame 67
stop();
Symbol 640 Button
on (release) {
play();
}
Symbol 642 Button
on (release) {
play();
}
Symbol 644 Button
on (release) {
play();
}
Symbol 646 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 32
stop();
Symbol 646 MovieClip Frame 87
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 32
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 32
stop();
Symbol 676 MovieClip Frame 335
stop();
stop();
_root.dead = true;
_root.gotoAndStop("BYE");
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 2
stop();
Symbol 678 MovieClip Frame 3
stop();
Symbol 678 MovieClip Frame 5
stop();
Symbol 680 Button
on (release) {
gotoAndStop ("OMG4");
}
Symbol 689 Button
on (release) {
gotoAndPlay (10);
}
Symbol 690 MovieClip Frame 1
stop();
Symbol 690 MovieClip Frame 351
stop();
Symbol 696 Button
on (release) {
gotoAndPlay (10);
}
Symbol 697 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 323
stop();
Symbol 703 Button
on (release) {
gotoAndPlay (10);
}
Symbol 704 MovieClip Frame 1
stop();
Symbol 704 MovieClip Frame 292
stop();
Symbol 705 MovieClip Frame 2076
gotoAndPlay (60);
Symbol 707 MovieClip Frame 28
stop();
Symbol 709 MovieClip Frame 1
stop();
Symbol 709 MovieClip Frame 2
stop();
Symbol 709 MovieClip Frame 3
stop();
Symbol 712 Button
on (release) {
play();
}
Symbol 715 MovieClip Frame 1
stop();
Symbol 715 MovieClip Frame 42
stop();
Symbol 723 MovieClip Frame 1
stop();
Symbol 723 MovieClip Frame 71
stop();
Symbol 726 Button
on (release) {
play();
}
Symbol 728 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 57
stop();
Symbol 729 Button
on (release) {
play();
}
Symbol 733 MovieClip Frame 1
stop();
Symbol 733 MovieClip Frame 71
stop();
Symbol 736 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 2
stop();
Symbol 736 MovieClip Frame 3
stop();
Symbol 736 MovieClip Frame 5
stop();
Symbol 737 MovieClip Frame 1
stop();
Symbol 737 MovieClip Frame 2
stop();
Symbol 741 Button
on (release) {
gotoAndStop ("OMG5");
}
Symbol 745 Button
on (release) {
gotoAndPlay (10);
}
Symbol 746 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 197
stop();
Symbol 752 Button
on (release) {
gotoAndPlay (10);
}
Symbol 753 MovieClip Frame 1
stop();
Symbol 753 MovieClip Frame 337
stop();
Symbol 762 Button
on (release) {
gotoAndPlay (10);
}
Symbol 763 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 513
stop();
Symbol 767 Button
on (release) {
play();
}
Symbol 770 MovieClip Frame 1
stop();
Symbol 773 MovieClip Frame 1
stop();
Symbol 773 MovieClip Frame 33
stop();
Symbol 775 MovieClip Frame 5142
gotoAndPlay (60);
Symbol 777 Button
on (release) {
gotoAndStop ("OMG55");
}
Symbol 779 Button
on (release) {
gotoAndStop (1392);
}
Symbol 786 MovieClip Frame 1
stop();
Symbol 803 Button
on (release) {
gotoAndPlay (10);
}
Symbol 804 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 489
stop();
Symbol 805 MovieClip Frame 6484
gotoAndPlay (60);
Symbol 819 MovieClip Frame 1
stop();
Symbol 819 MovieClip Frame 260
stop();
Symbol 822 Button
on (release) {
gotoAndStop ("OMG5");
}
Symbol 823 Button
on (release) {
gotoAndStop (1445);
}
Symbol 826 Button
on (release) {
gotoAndPlay (10);
}
Symbol 827 MovieClip Frame 1
stop();
Symbol 827 MovieClip Frame 171
stop();
Symbol 836 Button
on (release) {
gotoAndPlay (10);
}
Symbol 837 MovieClip Frame 1
stop();
Symbol 837 MovieClip Frame 426
stop();
Symbol 853 MovieClip Frame 11
stop();
Symbol 855 MovieClip Frame 1
stop();
Symbol 855 MovieClip Frame 255
stop();
Symbol 858 Button
on (release) {
gotoAndPlay (10);
}
Symbol 859 MovieClip Frame 1
stop();
Symbol 859 MovieClip Frame 258
stop();
Symbol 868 Button
on (release) {
gotoAndPlay (10);
}
Symbol 869 MovieClip Frame 1
stop();
Symbol 869 MovieClip Frame 611
stop();
Symbol 875 Button
on (release) {
gotoAndPlay (10);
}
Symbol 876 MovieClip Frame 1
stop();
Symbol 876 MovieClip Frame 255
stop();
Symbol 878 MovieClip Frame 1
stop();
Symbol 878 MovieClip Frame 2
stop();
Symbol 885 MovieClip Frame 1
stop();
Symbol 885 MovieClip Frame 30
stop();
Symbol 887 Button
on (release) {
play();
}
Symbol 891 MovieClip Frame 1
stop();
Symbol 903 MovieClip Frame 1
stop();
Symbol 903 MovieClip Frame 304
stop();
Symbol 906 MovieClip Frame 1
stop();
Instance of Symbol 905 MovieClip in Symbol 906 MovieClip Frame 1
on (release) {
_root.health = _root.health - 100;
}
Symbol 906 MovieClip Frame 2
stop();
Symbol 906 MovieClip Frame 3
stop();
Symbol 906 MovieClip Frame 4
stop();
Symbol 907 MovieClip Frame 2918
gotoAndPlay (60);
Symbol 908 Button
on (release) {
gotoAndStop (4);
dead = true;
}
Symbol 909 MovieClip Frame 1
stop();
Symbol 909 MovieClip Frame 2
stop();
Symbol 909 MovieClip Frame 3
stop();
Symbol 909 MovieClip Frame 4
stop();
this.visible = false;
Symbol 910 Button
on (release) {
dead = true;
}
Symbol 911 MovieClip Frame 1
stop();
Symbol 911 MovieClip Frame 2
stop();
Symbol 911 MovieClip Frame 3
stop();
Symbol 914 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 = true;
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;
Instance of Symbol 190 MovieClip "healthBar" in Symbol 914 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _root.health;
}
Symbol 916 Button
on (release) {
gotoAndStop ("OMG7");
}
Symbol 917 Button
on (release) {
gotoAndStop (1587);
}
Symbol 929 Button
on (release) {
_root.health = _root.health - 50;
}
Symbol 930 MovieClip Frame 1
stop();
Symbol 931 MovieClip Frame 6425
gotoAndPlay (60);
Symbol 937 Button
on (release) {
gotoAndStop ("OMG8");
}
Symbol 938 Button
on (release) {
gotoAndStop (1640);
}
Symbol 944 MovieClip Frame 1
stop();
Instance of Symbol 941 MovieClip in Symbol 944 MovieClip Frame 1
on (release) {
play();
}
Symbol 947 MovieClip Frame 1
stop();
Instance of Symbol 941 MovieClip in Symbol 947 MovieClip Frame 1
on (release) {
play();
}
Symbol 947 MovieClip Frame 51
stop();
Instance of Symbol 941 MovieClip in Symbol 947 MovieClip Frame 51
on (release) {
play();
}
Symbol 951 MovieClip Frame 1
stop();
Instance of Symbol 941 MovieClip in Symbol 951 MovieClip Frame 1
on (release) {
play();
}
Instance of Symbol 944 MovieClip in Symbol 952 MovieClip Frame 1
on (release) {
play();
}
Instance of Symbol 947 MovieClip in Symbol 952 MovieClip Frame 1
on (release) {
play();
}
Instance of Symbol 951 MovieClip in Symbol 952 MovieClip Frame 1
on (release) {
play();
}
Symbol 956 Button
on (release) {
gotoAndStop ("OMG85");
}
Symbol 967 Button
on (release) {
gotoAndPlay (10);
}
Symbol 968 MovieClip Frame 1
stop();
Symbol 968 MovieClip Frame 411
stop();
Symbol 974 Button
on (release) {
gotoAndPlay (10);
}
Symbol 975 MovieClip Frame 1
stop();
Symbol 975 MovieClip Frame 259
stop();
Symbol 981 Button
on (release) {
gotoAndPlay (10);
}
Symbol 982 MovieClip Frame 1
stop();
Symbol 982 MovieClip Frame 259
stop();
Symbol 984 Button
on (release) {
gotoAndStop (1693);
}
Symbol 987 MovieClip Frame 4409
gotoAndPlay (60);
Symbol 989 Button
on (release) {
gotoAndStop ("OMG9");
}
Symbol 992 Button
on (release) {
gotoAndPlay (10);
}
Symbol 993 MovieClip Frame 1
stop();
Symbol 993 MovieClip Frame 133
stop();
Symbol 996 MovieClip Frame 6306
stop();
Symbol 997 Button
on (release) {
gotoAndStop (1746);
}
Symbol 1001 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1002 MovieClip Frame 1
stop();
Symbol 1002 MovieClip Frame 271
stop();
Symbol 1007 Button
on (release) {
gotoAndStop ("OMG11");
}
Symbol 1009 Button
on (release) {
gotoAndStop (1799);
}
Symbol 1011 MovieClip Frame 1
stop();
Symbol 1011 MovieClip Frame 2
stop();
Symbol 1012 MovieClip Frame 1
stop();
Symbol 1012 MovieClip Frame 2
stop();
Symbol 1012 MovieClip Frame 3
stop();
Symbol 1014 MovieClip Frame 877
stop();
Symbol 1017 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1018 MovieClip Frame 1
stop();
Symbol 1018 MovieClip Frame 230
stop();
Symbol 1034 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1035 MovieClip Frame 1
stop();
Symbol 1035 MovieClip Frame 899
stop();
Symbol 1044 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1045 MovieClip Frame 1
stop();
Symbol 1045 MovieClip Frame 620
stop();
Symbol 1060 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1061 MovieClip Frame 1
stop();
Symbol 1061 MovieClip Frame 909
stop();
Symbol 1071 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1072 MovieClip Frame 1
stop();
Symbol 1072 MovieClip Frame 511
stop();
Symbol 1073 MovieClip Frame 4203
gotoAndPlay (60);
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1078 MovieClip Frame 260
stop();
Symbol 1080 Button
on (release) {
gotoAndStop ("OMG12");
}
Symbol 1084 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1085 MovieClip Frame 1
stop();
Symbol 1085 MovieClip Frame 240
stop();
Symbol 1088 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1089 MovieClip Frame 1
stop();
Symbol 1089 MovieClip Frame 240
stop();
Symbol 1094 Button
on (release) {
gotoAndStop (1852);
}
Symbol 1207 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 = true;
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;
Instance of Symbol 190 MovieClip "healthBar" in Symbol 1207 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _root.health;
}
Symbol 1207 MovieClip Frame 41
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 = true;
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 1209 Button
on (release) {
gotoAndStop ("OMG13");
}
Symbol 1257 Button
on (release) {
gotoAndStop (1);
}
Symbol 1258 MovieClip Frame 7912
stop();
Symbol 1268 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1269 MovieClip Frame 1
stop();
Symbol 1269 MovieClip Frame 511
stop();
Symbol 1273 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1274 MovieClip Frame 1
stop();
Symbol 1274 MovieClip Frame 687
stop();
Symbol 1278 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1279 MovieClip Frame 1
stop();
Symbol 1279 MovieClip Frame 687
stop();
Symbol 1281 Button
on (release) {
gotoAndStop (9672);
}
Symbol 1283 MovieClip Frame 242
stop();
Symbol 1287 MovieClip Frame 394
stop();
Symbol 1292 Button
on (release) {
gotoAndPlay (688);
}
Symbol 1293 MovieClip Frame 5263
gotoAndPlay (60);