Frame 1
function deadClick() {
}
function max() {
getURL ("http://www.newgrounds.com/collection/halloween2008.html");
}
function suicide() {
_root.gotoAndStop("D");
}
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 'scary' movies and games at Newgrounds", max);
copyrightNotice.separatorBefore = true;
commit.separatorBefore = true;
myMenu.customItems.push(qualityhigh, qualitymed, qualitylow, 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++;
}
k = Math.round(Math.random());
var i = 0;
var SpawnPointY = 300;
var SpawnPointX = 450;
onEnterFrame = function () {
SpawnEnemy();
};
Instance of Symbol 88 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
play();
Frame 211
play();
Frame 687
health = 100;
function deadClick() {
}
function max() {
getURL ("http://www.newgrounds.com/collection/halloween2008.html");
}
function suicide() {
_root.gotoAndStop("D");
}
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 'scary' movies and games at Newgrounds", 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;
stop();
Instance of Symbol 230 MovieClip "player" in Frame 687
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 235 MovieClip in Frame 687
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 737
stop();
Frame 738
stop();
health = 100;
Instance of Symbol 322 MovieClip in Frame 738
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 230 MovieClip "player" in Frame 738
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 235 MovieClip in Frame 738
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + (((_root.player._x - _x) / 6) - 20));
}
Frame 788
stop();
Frame 789
play();
health = 100;
Instance of Symbol 230 MovieClip "player" in Frame 789
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 235 MovieClip in Frame 789
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Instance of Symbol 499 MovieClip in Frame 886
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 888
stop();
Instance of Symbol 499 MovieClip in Frame 888
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 1113
stop();
Frame 1114
play();
health = 100;
Instance of Symbol 230 MovieClip "player" in Frame 1114
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 499 MovieClip in Frame 1114
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 599 MovieClip in Frame 1114
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 600 MovieClip in Frame 1114
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 600 MovieClip in Frame 1114
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 235 MovieClip in Frame 1114
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1116
stop();
Instance of Symbol 499 MovieClip in Frame 1116
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 600 MovieClip in Frame 1116
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 1166
stop();
Frame 1167
play();
stop();
health = 100;
Instance of Symbol 230 MovieClip "player" in Frame 1167
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 600 MovieClip in Frame 1167
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 499 MovieClip in Frame 1167
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 713 MovieClip in Frame 1167
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 713 MovieClip in Frame 1167
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 235 MovieClip in Frame 1167
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1219
stop();
Frame 1220
play();
stop();
health = 100;
Instance of Symbol 744 MovieClip "player" in Frame 1220
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 771 MovieClip "notplayer" in Frame 1220
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 600 MovieClip in Frame 1220
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 713 MovieClip in Frame 1220
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 235 MovieClip in Frame 1220
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1221
stop();
Frame 1271
stop();
Frame 1279
play();
stop();
health = 100;
Instance of Symbol 744 MovieClip "player" in Frame 1279
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 771 MovieClip "notplayer" in Frame 1279
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 600 MovieClip in Frame 1279
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 600 MovieClip in Frame 1279
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 600 MovieClip in Frame 1279
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 235 MovieClip in Frame 1279
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1330
stop();
Frame 1338
play();
stop();
health = 100;
k = Math.round(Math.random());
Instance of Symbol 821 MovieClip in Frame 1338
onClipEvent (load) {
if (_root.k == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 832 MovieClip in Frame 1338
onClipEvent (load) {
if (_root.k == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 230 MovieClip "player" in Frame 1338
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 235 MovieClip in Frame 1338
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1390
stop();
Frame 1391
play();
stop();
health = 100;
Instance of Symbol 940 MovieClip "player" in Frame 1391
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 943 MovieClip in Frame 1391
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 943 MovieClip in Frame 1391
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 943 MovieClip in Frame 1391
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 943 MovieClip in Frame 1391
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 943 MovieClip in Frame 1391
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 943 MovieClip in Frame 1391
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 943 MovieClip in Frame 1391
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 945 MovieClip in Frame 1391
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 945 MovieClip in Frame 1391
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 948 MovieClip in Frame 1391
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1443
stop();
Frame 1444
play();
health = 100;
Instance of Symbol 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 943 MovieClip in Frame 1444
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 230 MovieClip "player" in Frame 1444
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 964 MovieClip "player" in Frame 1444
onClipEvent (enterFrame) {
_y = (_y + (_root.player._y - _y));
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 948 MovieClip in Frame 1444
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1535
stop();
Instance of Symbol 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 943 MovieClip in Frame 1535
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 230 MovieClip "player" in Frame 1536
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 1585
stop();
Frame 1586
play();
health = 100;
stop();
Instance of Symbol 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 945 MovieClip in Frame 1586
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 945 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 943 MovieClip in Frame 1586
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 230 MovieClip "player" in Frame 1586
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 964 MovieClip "player" in Frame 1586
onClipEvent (enterFrame) {
_y = (_y + (_root.player._y - _y));
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 948 MovieClip in Frame 1586
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Instance of Symbol 230 MovieClip "player" in Frame 1589
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 1638
stop();
Frame 1639
play();
stop();
health = 100;
Instance of Symbol 230 MovieClip "player" in Frame 1639
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 599 MovieClip in Frame 1639
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 600 MovieClip in Frame 1639
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 600 MovieClip in Frame 1639
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 600 MovieClip in Frame 1639
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 600 MovieClip in Frame 1639
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 599 MovieClip in Frame 1639
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 499 MovieClip in Frame 1639
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 713 MovieClip in Frame 1639
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 713 MovieClip in Frame 1639
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 713 MovieClip in Frame 1639
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 713 MovieClip in Frame 1639
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 713 MovieClip in Frame 1639
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 235 MovieClip in Frame 1639
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1691
stop();
Frame 1692
play();
stop();
health = 100;
Instance of Symbol 1090 MovieClip "player" in Frame 1692
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 235 MovieClip in Frame 1692
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.3 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1744
stop();
Frame 1745
play();
stop();
health = 100;
Instance of Symbol 599 MovieClip in Frame 1745
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 230 MovieClip "player" in Frame 1745
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 600 MovieClip in Frame 1745
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 600 MovieClip in Frame 1745
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 600 MovieClip in Frame 1745
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 600 MovieClip in Frame 1745
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 600 MovieClip in Frame 1745
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 600 MovieClip in Frame 1745
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 713 MovieClip in Frame 1745
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 713 MovieClip in Frame 1745
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 713 MovieClip in Frame 1745
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 1218 MovieClip in Frame 1745
onClipEvent (enterFrame) {
_y = (_y + ((_root.player._y - (1.4 * _y)) / 6));
_x = (_x + ((_root.player._x - _x) / 6));
}
Frame 1797
stop();
Frame 1798
play();
health = 100;
Instance of Symbol 1234 MovieClip in Frame 1798
onClipEvent (enterFrame) {
_x = (_x + (_root.player._x - _x));
}
Instance of Symbol 600 MovieClip in Frame 1798
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 600 MovieClip in Frame 1798
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 600 MovieClip in Frame 1798
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 600 MovieClip in Frame 1798
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 600 MovieClip in Frame 1798
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 499 MovieClip in Frame 1798
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 713 MovieClip in Frame 1798
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 713 MovieClip in Frame 1798
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 713 MovieClip in Frame 1798
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 713 MovieClip in Frame 1798
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 600 MovieClip in Frame 1798
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 600 MovieClip in Frame 1798
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 600 MovieClip in Frame 1798
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 600 MovieClip in Frame 1798
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 713 MovieClip in Frame 1798
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 713 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 322 MovieClip in Frame 1798
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 230 MovieClip "player" in Frame 1798
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 235 MovieClip in Frame 1798
onClipEvent (enterFrame) {
_y = (_y + (((_root.player._y - (1.4 * _y)) / 6) - 30));
_x = (_x + ((_root.player._x - _x) / 6));
}
Instance of Symbol 230 MovieClip "player" in Frame 10483
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 11029
stop();
Symbol 37 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 39 MovieClip Frame 40
stop();
Symbol 51 Button
on (release) {
startMovie();
}
Symbol 52 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 52 MovieClip Frame 51
stop();
Symbol 74 MovieClip Frame 32
gotoAndPlay (7);
Symbol 78 MovieClip Frame 7
stop();
Symbol 86 MovieClip Frame 53
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 3
stop();
Symbol 88 MovieClip Frame 4
stop();
Symbol 88 MovieClip Frame 5
stop();
Symbol 88 MovieClip Frame 6
stop();
Symbol 88 MovieClip Frame 7
stop();
Symbol 88 MovieClip Frame 8
stop();
Symbol 141 MovieClip Frame 9
stop();
Symbol 143 Button
on (release) {
gotoAndPlay (1);
}
Symbol 144 MovieClip Frame 918
stop();
Symbol 148 Button
on (release) {
play();
}
Symbol 156 Button
on (release) {
gotoAndPlay (10);
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 472
stop();
Symbol 167 Button
on (release) {
gotoAndPlay (10);
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 318
stop();
Symbol 173 Button
on (release) {
gotoAndStop (738);
}
Symbol 184 MovieClip Frame 1
stop();
stop();
Symbol 184 MovieClip Frame 392
stop();
Symbol 190 Button
on (release) {
gotoAndPlay (10);
}
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 376
stop();
Symbol 197 MovieClip Frame 1
stop();
stop();
Symbol 197 MovieClip Frame 329
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 3
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 2
stop();
Symbol 230 MovieClip Frame 3
stop();
Symbol 230 MovieClip Frame 4
stop();
Symbol 235 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 234 MovieClip "healthBar" in Symbol 235 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _root.health;
}
Symbol 238 MovieClip Frame 9826
gotoAndPlay (1);
Symbol 242 MovieClip Frame 19
stop();
Symbol 249 Button
on (release) {
gotoAndStop ("OMG");
}
Symbol 250 Button
on (release) {
gotoAndStop (789);
}
Symbol 256 Button
on (release) {
gotoAndPlay (10);
}
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 304
stop();
Symbol 266 Button
on (release) {
gotoAndPlay (10);
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 480
stop();
Symbol 270 Button
on (release) {
play();
}
Symbol 277 Button
on (release) {
gotoAndPlay (10);
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 287 Button
on (release) {
gotoAndPlay (10);
}
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 382
stop();
Symbol 297 Button
on (release) {
gotoAndPlay (10);
}
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 184
stop();
Symbol 304 MovieClip Frame 9818
gotoAndPlay (1);
Symbol 314 Button
on (release) {
gotoAndPlay (10);
}
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 484
stop();
Symbol 321 MovieClip Frame 36
gotoAndPlay (6);
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 3
stop();
Symbol 329 Button
on (release) {
play();
}
Symbol 332 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 139
gotoAndStop (1);
Symbol 333 Button
on (release) {
play();
}
Symbol 335 Button
on (release) {
play();
}
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 117
stop();
Symbol 338 MovieClip Frame 311
stop();
Symbol 346 MovieClip Frame 63
stop();
Symbol 348 Button
on (release) {
gotoAndStop ("OMG1");
}
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 296
stop();
Symbol 355 Button
on (release) {
gotoAndStop (1114);
}
Symbol 361 Button
on (release) {
gotoAndPlay (10);
}
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 389
stop();
Symbol 372 Button
on (release) {
gotoAndPlay (10);
}
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 344
stop();
Symbol 379 Button
on (release) {
gotoAndPlay (10);
}
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 479
stop();
Symbol 389 Button
on (release) {
gotoAndPlay (10);
}
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 416
stop();
Symbol 397 Button
on (release) {
gotoAndPlay (10);
}
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 304
stop();
Symbol 404 Button
on (release) {
gotoAndPlay (10);
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 344
stop();
Symbol 409 Button
on (release) {
gotoAndPlay (10);
}
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 214
stop();
Symbol 416 Button
on (release) {
gotoAndPlay (10);
}
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 408
stop();
Symbol 423 Button
on (release) {
gotoAndPlay (10);
}
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 365
stop();
Symbol 429 Button
on (release) {
gotoAndPlay (10);
}
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 365
stop();
Symbol 434 Button
on (release) {
gotoAndPlay (10);
}
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 274
stop();
Symbol 439 Button
on (release) {
play();
}
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 7
stop();
Symbol 449 Button
on (release) {
play();
}
Symbol 453 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 138
stop();
Symbol 455 Button
on (release) {
play();
}
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 154
gotoAndStop (1);
Symbol 461 Button
on (release) {
gotoAndPlay (1204);
}
Symbol 463 MovieClip Frame 1219
stop();
Symbol 465 Button
on (release) {
play();
}
Symbol 469 MovieClip Frame 1
stop();
Symbol 471 Button
on (release) {
_root.health = _root.health - 25;
play();
}
Symbol 478 MovieClip Frame 1
stop();
Symbol 480 Button
on (release) {
play();
}
Symbol 482 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 64
stop();
Symbol 482 MovieClip Frame 119
stop();
Symbol 483 Button
on (release) {
play();
}
Symbol 485 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 22
stop();
Symbol 489 MovieClip Frame 2721
gotoAndPlay (60);
Symbol 495 Button
on (release) {
gotoAndPlay (10);
}
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 344
stop();
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 2
stop();
Symbol 501 Button
on (release) {
gotoAndStop ("OMG2");
}
Symbol 504 Button
on (release) {
gotoAndPlay (10);
}
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 204
stop();
Symbol 511 Button
on (release) {
gotoAndPlay (10);
}
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 376
stop();
Symbol 515 Button
on (release) {
gotoAndPlay (10);
}
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 268
stop();
Symbol 528 Button
on (release) {
gotoAndPlay (10);
}
Symbol 529 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 737
stop();
Symbol 535 Button
on (release) {
gotoAndPlay (10);
}
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 376
stop();
Symbol 537 Button
on (release) {
gotoAndStop (1167);
}
Symbol 562 Button
on (release) {
gotoAndPlay (10);
}
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 224
stop();
Symbol 566 Button
on (release) {
play();
}
Symbol 569 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 41
stop();
Symbol 569 MovieClip Frame 71
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 41
stop();
Symbol 572 MovieClip Frame 71
stop();
Symbol 576 Button
on (release) {
play();
}
Symbol 580 Button
on (release) {
gotoAndPlay (2640);
}
Symbol 586 MovieClip Frame 1
stop();
stop();
Symbol 586 MovieClip Frame 296
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 32
stop();
Symbol 595 MovieClip Frame 2202
gotoAndPlay (60);
Symbol 598 MovieClip Frame 12
gotoAndPlay (6);
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 2
stop();
Symbol 599 MovieClip Frame 3
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 2
stop();
Symbol 600 MovieClip Frame 3
stop();
Symbol 602 Button
on (release) {
gotoAndStop ("OMG3");
}
Symbol 603 Button
on (release) {
gotoAndStop (1220);
}
Symbol 609 Button
on (release) {
gotoAndPlay (10);
}
Symbol 610 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 276
stop();
Symbol 616 Button
on (release) {
gotoAndPlay (10);
}
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 291
stop();
Symbol 623 Button
on (release) {
gotoAndPlay (10);
}
Symbol 624 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 339
stop();
Symbol 630 Button
on (release) {
gotoAndPlay (10);
}
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 361
stop();
Symbol 655 Button
on (release) {
gotoAndPlay (10);
}
Symbol 656 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 956
stop();
Symbol 665 Button
on (release) {
gotoAndPlay (10);
}
Symbol 666 MovieClip Frame 1
stop();
Symbol 666 MovieClip Frame 571
stop();
Symbol 667 MovieClip Frame 2701
gotoAndPlay (60);
Symbol 670 Button
on (release) {
play();
}
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 37
stop();
Symbol 673 MovieClip Frame 67
stop();
Symbol 675 Button
on (release) {
play();
}
Symbol 677 Button
on (release) {
play();
}
Symbol 679 Button
on (release) {
play();
}
Symbol 681 MovieClip Frame 1
stop();
Symbol 681 MovieClip Frame 32
stop();
Symbol 681 MovieClip Frame 87
stop();
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 32
stop();
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 32
stop();
Symbol 711 MovieClip Frame 335
stop();
stop();
_root.dead = true;
_root.gotoAndStop("BYE");
Symbol 713 MovieClip Frame 1
stop();
Symbol 713 MovieClip Frame 2
stop();
Symbol 713 MovieClip Frame 3
stop();
Symbol 713 MovieClip Frame 5
stop();
Symbol 715 Button
on (release) {
gotoAndStop ("OMG4");
}
Symbol 724 Button
on (release) {
gotoAndPlay (10);
}
Symbol 725 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 351
stop();
Symbol 731 Button
on (release) {
gotoAndPlay (10);
}
Symbol 732 MovieClip Frame 1
stop();
Symbol 732 MovieClip Frame 323
stop();
Symbol 738 Button
on (release) {
gotoAndPlay (10);
}
Symbol 739 MovieClip Frame 1
stop();
Symbol 739 MovieClip Frame 292
stop();
Symbol 740 MovieClip Frame 2076
gotoAndPlay (60);
Symbol 742 MovieClip Frame 28
stop();
Symbol 744 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 2
stop();
Symbol 744 MovieClip Frame 3
stop();
Symbol 747 Button
on (release) {
play();
}
Symbol 750 MovieClip Frame 1
stop();
Symbol 750 MovieClip Frame 42
stop();
Symbol 758 MovieClip Frame 1
stop();
Symbol 758 MovieClip Frame 71
stop();
Symbol 761 Button
on (release) {
play();
}
Symbol 763 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 57
stop();
Symbol 764 Button
on (release) {
play();
}
Symbol 768 MovieClip Frame 1
stop();
Symbol 768 MovieClip Frame 71
stop();
Symbol 771 MovieClip Frame 1
stop();
Symbol 771 MovieClip Frame 2
stop();
Symbol 771 MovieClip Frame 3
stop();
Symbol 771 MovieClip Frame 5
stop();
Symbol 772 MovieClip Frame 1
stop();
Symbol 772 MovieClip Frame 2
stop();
Symbol 776 Button
on (release) {
gotoAndStop ("OMG5");
}
Symbol 780 Button
on (release) {
gotoAndPlay (10);
}
Symbol 781 MovieClip Frame 1
stop();
Symbol 781 MovieClip Frame 197
stop();
Symbol 787 Button
on (release) {
gotoAndPlay (10);
}
Symbol 788 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 337
stop();
Symbol 797 Button
on (release) {
gotoAndPlay (10);
}
Symbol 798 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 513
stop();
Symbol 802 Button
on (release) {
play();
}
Symbol 805 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 33
stop();
Symbol 810 MovieClip Frame 5142
gotoAndPlay (60);
Symbol 812 Button
on (release) {
gotoAndStop ("OMG55");
}
Symbol 814 Button
on (release) {
gotoAndStop (1391);
}
Symbol 821 MovieClip Frame 1
stop();
Symbol 838 Button
on (release) {
gotoAndPlay (10);
}
Symbol 839 MovieClip Frame 1
stop();
Symbol 839 MovieClip Frame 489
stop();
Symbol 840 MovieClip Frame 6484
gotoAndPlay (60);
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 260
stop();
Symbol 856 Button
on (release) {
gotoAndStop ("OMG5");
}
Symbol 857 Button
on (release) {
gotoAndStop (1444);
}
Symbol 860 Button
on (release) {
gotoAndPlay (10);
}
Symbol 861 MovieClip Frame 1
stop();
Symbol 861 MovieClip Frame 171
stop();
Symbol 870 Button
on (release) {
gotoAndPlay (10);
}
Symbol 871 MovieClip Frame 1
stop();
Symbol 871 MovieClip Frame 426
stop();
Symbol 887 MovieClip Frame 11
stop();
Symbol 889 MovieClip Frame 1
stop();
Symbol 889 MovieClip Frame 255
stop();
Symbol 892 Button
on (release) {
gotoAndPlay (10);
}
Symbol 893 MovieClip Frame 1
stop();
Symbol 893 MovieClip Frame 258
stop();
Symbol 902 Button
on (release) {
gotoAndPlay (10);
}
Symbol 903 MovieClip Frame 1
stop();
Symbol 903 MovieClip Frame 611
stop();
Symbol 909 Button
on (release) {
gotoAndPlay (10);
}
Symbol 910 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 255
stop();
Symbol 912 MovieClip Frame 1
stop();
Symbol 912 MovieClip Frame 2
stop();
Symbol 919 MovieClip Frame 1
stop();
Symbol 919 MovieClip Frame 30
stop();
Symbol 921 Button
on (release) {
play();
}
Symbol 925 MovieClip Frame 1
stop();
Symbol 937 MovieClip Frame 1
stop();
Symbol 937 MovieClip Frame 304
stop();
Symbol 940 MovieClip Frame 1
stop();
Instance of Symbol 939 MovieClip in Symbol 940 MovieClip Frame 1
on (release) {
_root.health = _root.health - 100;
}
Symbol 940 MovieClip Frame 2
stop();
Symbol 940 MovieClip Frame 3
stop();
Symbol 940 MovieClip Frame 4
stop();
Symbol 941 MovieClip Frame 2918
gotoAndPlay (60);
Symbol 942 Button
on (release) {
gotoAndStop (4);
dead = true;
}
Symbol 943 MovieClip Frame 1
stop();
Symbol 943 MovieClip Frame 2
stop();
Symbol 943 MovieClip Frame 3
stop();
Symbol 943 MovieClip Frame 4
stop();
this.visible = false;
Symbol 944 Button
on (release) {
dead = true;
}
Symbol 945 MovieClip Frame 1
stop();
Symbol 945 MovieClip Frame 2
stop();
Symbol 945 MovieClip Frame 3
stop();
Symbol 948 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 234 MovieClip "healthBar" in Symbol 948 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _root.health;
}
Symbol 950 Button
on (release) {
gotoAndStop ("OMG7");
}
Symbol 951 Button
on (release) {
gotoAndStop (1586);
}
Symbol 963 Button
on (release) {
_root.health = _root.health - 50;
}
Symbol 964 MovieClip Frame 1
stop();
Symbol 965 MovieClip Frame 6425
gotoAndPlay (60);
Symbol 971 Button
on (release) {
gotoAndStop ("OMG8");
}
Symbol 972 Button
on (release) {
gotoAndStop (1639);
}
Symbol 978 MovieClip Frame 1
stop();
Instance of Symbol 975 MovieClip in Symbol 978 MovieClip Frame 1
on (release) {
play();
}
Symbol 981 MovieClip Frame 1
stop();
Instance of Symbol 975 MovieClip in Symbol 981 MovieClip Frame 1
on (release) {
play();
}
Symbol 981 MovieClip Frame 51
stop();
Instance of Symbol 975 MovieClip in Symbol 981 MovieClip Frame 51
on (release) {
play();
}
Symbol 985 MovieClip Frame 1
stop();
Instance of Symbol 975 MovieClip in Symbol 985 MovieClip Frame 1
on (release) {
play();
}
Instance of Symbol 978 MovieClip in Symbol 986 MovieClip Frame 1
on (release) {
play();
}
Instance of Symbol 981 MovieClip in Symbol 986 MovieClip Frame 1
on (release) {
play();
}
Instance of Symbol 985 MovieClip in Symbol 986 MovieClip Frame 1
on (release) {
play();
}
Symbol 990 Button
on (release) {
gotoAndStop ("OMG85");
}
Symbol 1001 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1002 MovieClip Frame 1
stop();
Symbol 1002 MovieClip Frame 411
stop();
Symbol 1008 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1009 MovieClip Frame 1
stop();
Symbol 1009 MovieClip Frame 259
stop();
Symbol 1015 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1016 MovieClip Frame 1
stop();
Symbol 1016 MovieClip Frame 259
stop();
Symbol 1018 Button
on (release) {
gotoAndStop (1692);
}
Symbol 1021 MovieClip Frame 4409
gotoAndPlay (60);
Symbol 1023 Button
on (release) {
gotoAndStop ("OMG9");
}
Symbol 1025 Button
on (release) {
gotoAndStop (1745);
}
Symbol 1027 MovieClip Frame 1
stop();
Symbol 1027 MovieClip Frame 2
stop();
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 2
stop();
Symbol 1028 MovieClip Frame 3
stop();
Symbol 1030 MovieClip Frame 877
stop();
Symbol 1033 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1034 MovieClip Frame 1
stop();
Symbol 1034 MovieClip Frame 230
stop();
Symbol 1050 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 899
stop();
Symbol 1060 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1061 MovieClip Frame 1
stop();
Symbol 1061 MovieClip Frame 620
stop();
Symbol 1076 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1077 MovieClip Frame 1
stop();
Symbol 1077 MovieClip Frame 909
stop();
Symbol 1087 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1088 MovieClip Frame 1
stop();
Symbol 1088 MovieClip Frame 511
stop();
Symbol 1089 MovieClip Frame 4203
gotoAndPlay (60);
Symbol 1090 MovieClip Frame 1
stop();
Symbol 1094 MovieClip Frame 260
stop();
Symbol 1096 Button
on (release) {
gotoAndStop ("OMG12");
}
Symbol 1100 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1101 MovieClip Frame 1
stop();
Symbol 1101 MovieClip Frame 240
stop();
Symbol 1104 Button
on (release) {
gotoAndPlay (10);
}
Symbol 1105 MovieClip Frame 1
stop();
Symbol 1105 MovieClip Frame 240
stop();
Symbol 1110 Button
on (release) {
gotoAndStop (1798);
}
Symbol 1218 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 234 MovieClip "healthBar" in Symbol 1218 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _root.health;
}
Symbol 1218 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 1220 Button
on (release) {
gotoAndStop ("OMG13");
}
Symbol 1234 MovieClip Frame 9243
stop();