Combined Code
frame 1 {
MenNav = false;
EdnaHP = 32;
EdnaAP = 8;
}
movieClip 2 {
}
movieClip 4 {
frame 1 {
stop();
}
}
instance Player of movieClip 4 {
onClipEvent (enterFrame) {
if (Key.isDown(40) && _root.MenNav == false) {
if (_root.BG.hitTest(_x, _y + 5, true)) {
this._y += 5;
} else {}
this.gotoAndStop(2);
}
if (Key.isDown(38) && _root.MenNav == false) {
if (_root.BG.hitTest(_x, _y - 5, true)) {
this._y -= 5;
} else {}
this.gotoAndStop(1);
}
if (Key.isDown(37) && _root.MenNav == false) {
if (_root.BG.hitTest(_x - 5, _y, true)) {
this._x -= 5;
} else {
this.gotoAndStop(3);
}
}
if (Key.isDown(39) && _root.MenNav == false) {
if (_root.BG.hitTest(_x + 5, _y, true)) {
this._x += 5;
} else {}
this.gotoAndStop(4);
}
if (_root.gridUP.hitTest(_x, _y - 20, true) && _root.MenNav == false) {
this._y += 5;
_root.BG._y += 5;
_root.moveUp = true;
} else {
_root.moveUp = false;
}
if (_root.gridDOWN.hitTest(_x, _y + 20, true) && _root.MenNav == false) {
this._y -= 5;
_root.BG._y -= 5;
_root.moveDown = true;
} else {
_root.moveDown = false;
}
if (_root.gridRIGHT.hitTest(_x + 20, _y, true) && _root.MenNav == false) {
this._x -= 5;
_root.BG._x -= 5;
_root.moveRight = true;
} else {
_root.moveRight = false;
}
if (_root.gridLEFT.hitTest(_x - 20, _y, true) && _root.MenNav == false) {
this._x += 5;
_root.BG._x += 5;
_root.moveLeft = true;
} else {
_root.moveLeft = false;
}
}
onClipEvent (load) {
facing = 2;
}
onClipEvent (enterFrame) {
this._x = _root.hero._x;
this._y = _root.hero._y - 30;
if (Key.isDown(40)) {
facing = 2;
this.gotoAndStop(4);
} else {
if (Key.isDown(38)) {
facing = 1;
this.gotoAndStop(2);
} else {
if (Key.isDown(37)) {
facing = 3;
this.gotoAndStop(6);
} else {
if (Key.isDown(39)) {
facing = 4;
this.gotoAndStop(8);
} else {
if (facing == 1) {
this.gotoAndStop(1);
} else {
if (facing == 2) {
this.gotoAndStop(3);
} else {
if (facing == 3) {
this.gotoAndStop(5);
} else {
if (facing == 4) {
this.gotoAndStop(7);
}
}
}
}
}
}
}
}
}
}
movieClip 6 {
}
movieClip 8 {
}
instance mcTele of movieClip 8 {
onClipEvent (enterFrame) {
if (_root.moveLeft == true) {
this._x += 5;
}
if (_root.moveUp == true) {
this._y += 5;
}
if (_root.moveDown == true) {
this._y -= 5;
}
if (_root.moveRight == true) {
this._x -= 5;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.play();
}
}
}
movieClip 10 {
}
frame 19 {
stop();
}
button 12 {
on (release) {
nextFrame();
}
on (keyPress '<Space>') {
nextFrame();
}
}
button 17 {
on (release) {
prevFrame();
}
on (keyPress '<Space>') {
prevFrame();
}
}
// unknown tag 88 length 64
// unknown tag 88 length 62
movieClip 36 {
frame 1 {
txtHP1.text = _root.EdnaHP;
txtHP2.text = _root.EdnaHP;
txtAP1.text = _root.EdnaAP;
txtAP2.text = _root.EdnaAP;
}
}
movieClip 37 {
frame 1 {
stop();
_root.MenNav = false;
}
frame 2 {
_root.MenNav = true;
}
}
movieClip 39 {
}
instance Player of movieClip 4 {
onClipEvent (enterFrame) {
if (Key.isDown(40) && _root.MenNav == false) {
if (_root.BG.hitTest(_x, _y + 5, true)) {
this._y += 5;
} else {}
this.gotoAndStop(2);
}
if (Key.isDown(38) && _root.MenNav == false) {
if (_root.BG.hitTest(_x, _y - 5, true)) {
this._y -= 5;
} else {}
this.gotoAndStop(1);
}
if (Key.isDown(37) && _root.MenNav == false) {
if (_root.BG.hitTest(_x - 5, _y, true)) {
this._x -= 5;
} else {
this.gotoAndStop(3);
}
}
if (Key.isDown(39) && _root.MenNav == false) {
if (_root.BG.hitTest(_x + 5, _y, true)) {
this._x += 5;
} else {}
this.gotoAndStop(4);
}
if (_root.gridUP.hitTest(_x, _y - 20, true) && _root.MenNav == false) {
this._y += 5;
_root.BG._y += 5;
_root.moveUp = true;
} else {
_root.moveUp = false;
}
if (_root.gridDOWN.hitTest(_x, _y + 20, true) && _root.MenNav == false) {
this._y -= 5;
_root.BG._y -= 5;
_root.moveDown = true;
} else {
_root.moveDown = false;
}
if (_root.gridRIGHT.hitTest(_x + 20, _y, true) && _root.MenNav == false) {
this._x -= 5;
_root.BG._x -= 5;
_root.moveRight = true;
} else {
_root.moveRight = false;
}
if (_root.gridLEFT.hitTest(_x - 20, _y, true) && _root.MenNav == false) {
this._x += 5;
_root.BG._x += 5;
_root.moveLeft = true;
} else {
_root.moveLeft = false;
}
}
onClipEvent (load) {
facing = 2;
}
onClipEvent (enterFrame) {
this._x = _root.hero._x;
this._y = _root.hero._y - 30;
if (Key.isDown(40)) {
facing = 2;
this.gotoAndStop(4);
} else {
if (Key.isDown(38)) {
facing = 1;
this.gotoAndStop(2);
} else {
if (Key.isDown(37)) {
facing = 3;
this.gotoAndStop(6);
} else {
if (Key.isDown(39)) {
facing = 4;
this.gotoAndStop(8);
} else {
if (facing == 1) {
this.gotoAndStop(1);
} else {
if (facing == 2) {
this.gotoAndStop(3);
} else {
if (facing == 3) {
this.gotoAndStop(5);
} else {
if (facing == 4) {
this.gotoAndStop(7);
}
}
}
}
}
}
}
}
}
}
instance mcTele of movieClip 8 {
onClipEvent (enterFrame) {
if (_root.moveLeft == true) {
this._x += 5;
}
if (_root.moveUp == true) {
this._y += 5;
}
if (_root.moveDown == true) {
this._y -= 5;
}
if (_root.moveRight == true) {
this._x -= 5;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.play();
_root.TravelVar = 1;
}
}
}
instance mcTele2 of movieClip 8 {
onClipEvent (enterFrame) {
if (_root.moveLeft == true) {
this._x += 5;
}
if (_root.moveUp == true) {
this._y += 5;
}
if (_root.moveDown == true) {
this._y -= 5;
}
if (_root.moveRight == true) {
this._x -= 5;
}
if (_root.Player.hitTest(_x, _y)) {
_root.play();
_root.TravelVar = 2;
}
}
}
frame 49 {
stop();
}
frame 69 {
if (TravelVar == 1) {
gotoAndPlay('Part1');
BG._x = 133.9;
BG._y = 172.4;
mcTele._x = 400;
mcTele._y = 170;
}
}
movieClip 41 {
}
instance Player of movieClip 4 {
onClipEvent (enterFrame) {
if (Key.isDown(40) && _root.MenNav == false) {
if (_root.BG.hitTest(_x, _y + 5, true)) {
this._y += 5;
} else {}
this.gotoAndStop(2);
}
if (Key.isDown(38) && _root.MenNav == false) {
if (_root.BG.hitTest(_x, _y - 5, true)) {
this._y -= 5;
} else {}
this.gotoAndStop(1);
}
if (Key.isDown(37) && _root.MenNav == false) {
if (_root.BG.hitTest(_x - 5, _y, true)) {
this._x -= 5;
} else {
this.gotoAndStop(3);
}
}
if (Key.isDown(39) && _root.MenNav == false) {
if (_root.BG.hitTest(_x + 5, _y, true)) {
this._x += 5;
} else {}
this.gotoAndStop(4);
}
if (_root.gridUP.hitTest(_x, _y - 20, true) && _root.MenNav == false) {
this._y += 5;
_root.BG._y += 5;
_root.moveUp = true;
} else {
_root.moveUp = false;
}
if (_root.gridDOWN.hitTest(_x, _y + 20, true) && _root.MenNav == false) {
this._y -= 5;
_root.BG._y -= 5;
_root.moveDown = true;
} else {
_root.moveDown = false;
}
if (_root.gridRIGHT.hitTest(_x + 20, _y, true) && _root.MenNav == false) {
this._x -= 5;
_root.BG._x -= 5;
_root.moveRight = true;
} else {
_root.moveRight = false;
}
if (_root.gridLEFT.hitTest(_x - 20, _y, true) && _root.MenNav == false) {
this._x += 5;
_root.BG._x += 5;
_root.moveLeft = true;
} else {
_root.moveLeft = false;
}
}
onClipEvent (load) {
facing = 2;
}
onClipEvent (enterFrame) {
this._x = _root.hero._x;
this._y = _root.hero._y - 30;
if (Key.isDown(40)) {
facing = 2;
this.gotoAndStop(4);
} else {
if (Key.isDown(38)) {
facing = 1;
this.gotoAndStop(2);
} else {
if (Key.isDown(37)) {
facing = 3;
this.gotoAndStop(6);
} else {
if (Key.isDown(39)) {
facing = 4;
this.gotoAndStop(8);
} else {
if (facing == 1) {
this.gotoAndStop(1);
} else {
if (facing == 2) {
this.gotoAndStop(3);
} else {
if (facing == 3) {
this.gotoAndStop(5);
} else {
if (facing == 4) {
this.gotoAndStop(7);
}
}
}
}
}
}
}
}
}
}
instance mcTele of movieClip 8 {
onClipEvent (enterFrame) {
if (_root.moveLeft == true) {
this._x += 5;
}
if (_root.moveUp == true) {
this._y += 5;
}
if (_root.moveDown == true) {
this._y -= 5;
}
if (_root.moveRight == true) {
this._x -= 5;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.play();
_root.TravelVar = 1;
}
}
}
movieClip 44 {
}
instance of movieClip 44 {
onClipEvent (enterFrame) {
if (_root.moveLeft == true) {
this._x += 5;
}
if (_root.moveUp == true) {
this._y += 5;
}
if (_root.moveDown == true) {
this._y -= 5;
}
if (_root.moveRight == true) {
this._x -= 5;
}
}
}
instance of movieClip 8 {
onClipEvent (enterFrame) {
if (_root.moveLeft == true) {
this._x += 5;
}
if (_root.moveUp == true) {
this._y += 5;
}
if (_root.moveDown == true) {
this._y -= 5;
}
if (_root.moveRight == true) {
this._x -= 5;
}
if (_root.Player.hitTest(_x, _y)) {
_root.play();
_root.TravelVar = 2;
}
}
}
frame 79 {
stop();
}
frame 99 {
if (TravelVar == 1) {
gotoAndPlay('Part2');
BG._x = -116.6;
BG._y = -298.6;
mcTele._x = -6.1;
mcTele._y = -251.2;
mcTele2._x = 395.9;
mcTele2._y = 437;
}
}