Frame 1
function itemHandler1(obj, item) {
getURL ("http://www.newgrounds.com/fan_net/go.php3?id=1333488");
}
function itemHandler2(obj, item) {
getURL ("http://www.newgrounds.com/fan_net/jump.php3?id=1333488");
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem("Fenix Animation", itemHandler1));
myMenu.customItems.push(new ContextMenuItem("Newgrounds.com", itemHandler2));
_root.menu = myMenu;
stop();
onLoad = (HPotion = 0);
MPotion = 0;
Money = 0;
Mission = 0;
Exp = 0;
Wand = 1;
MissionLock = 0;
Teleport = 0;
Instance of Symbol 24 MovieClip "planimation" in Frame 1
onClipEvent (load) {
totalb = _root.getBytesTotal();
totalkb = int(totalb / 1024);
}
onClipEvent (enterFrame) {
var loadedb = _root.getBytesLoaded();
if (loadedb == totalb) {
_root.gotoAndStop(3);
} else {
loadedkb = int(loadedb / 1024);
percent = (loadedb / totalb) * 100;
_root.planimation.gotoAndStop(int(percent));
pl1 = ("" + int(percent)) + "%";
pl2 = ((("" + loadedkb) + " / ") + totalkb) + " kb";
}
}
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (load) {
totalb = _root.getBytesTotal();
totalkb = int(totalb / 1024);
}
onClipEvent (enterFrame) {
var loadedb = _root.getBytesLoaded();
if (loadedb == totalb) {
_root.gotoAndStop(2);
} else {
loadedkb = int(loadedb / 1024);
percent = (loadedb / totalb) * 100;
_root.planimation.gotoAndStop(int(percent));
pl1 = ("" + int(percent)) + "%";
pl2 = ((("" + loadedkb) + " / ") + totalkb) + " kb";
}
}
Instance of Symbol 34 MovieClip "Cursor" in Frame 1
onClipEvent (load) {
startDrag (this, true);
Mouse.hide();
}
Instance of Symbol 80 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.Cursor)) {
_root.Cursor.gotoAndStop(2);
}
if (!this.hitTest(_root.Cursor)) {
_root.Cursor.gotoAndStop(1);
}
}
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Frame 3
_root.Cursor.gotoAndStop(1);
Instance of Symbol 207 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.Cursor)) {
_root.Cursor.gotoAndStop(2);
}
if (!this.hitTest(_root.Cursor)) {
_root.Cursor.gotoAndStop(1);
}
}
on (release) {
getURL ("http://www.fenix.inglor.com/", "_blank");
}
Frame 4
stop();
Instance of Symbol 372 MovieClip "Player" in Frame 6
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 398 MovieClip in Frame 6
on (rollOver) {
gotoAndStop (2);
}
on (press) {
gotoAndStop (3);
}
on (releaseOutside, rollOut) {
gotoAndStop (1);
}
on (release) {
_root.StartMenu._visible = true;
_root.StartMenu._alpha = 100;
gotoAndStop (1);
}
Instance of Symbol 547 MovieClip "MissionS" in Frame 6
onClipEvent (load) {
this._alpha = 0;
this._visible = false;
}
Instance of Symbol 556 MovieClip "StartMenu" in Frame 6
onClipEvent (load) {
this._visible = false;
this._alpha = 0;
}
Instance of Symbol 580 MovieClip "Shop" in Frame 6
onClipEvent (load) {
this._visible = false;
this._alpha = 0;
}
Instance of Symbol 372 MovieClip "Player" in Frame 8
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 16;
jump = 1;
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 10
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 12
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 14
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 16
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 18
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 20
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 700 MovieClip "level" in Frame 22
onClipEvent (enterFrame) {
if (_root.Teleport == 1) {
this._x = -800;
_root.Teleport = 0;
}
if (_root.School == 1) {
this._x = -2500;
_root.School = 0;
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 22
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 24
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
}
Instance of Symbol 710 MovieClip "MPop" in Frame 24
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 712 MovieClip "EPop" in Frame 24
onClipEvent (load) {
this._alpha = 0;
}
Frame 26
if (_root.Mission == 1) {
gotoAndStop ("mission1");
}
if (_root.Mission == 2) {
gotoAndStop ("mission2");
}
if (_root.Mission == 3) {
gotoAndStop ("mission3");
}
if (_root.Mission == 4) {
gotoAndStop ("mission4");
}
if (_root.Mission == 5) {
gotoAndStop ("mission5");
}
if (_root.Mission == 6) {
gotoAndStop ("mission6");
}
if (_root.Mission == 7) {
gotoAndStop ("mission3");
}
if (_root.Mission == 8) {
gotoAndStop ("mission8");
}
if (_root.Mission == 9) {
gotoAndStop ("mission9");
}
if (_root.Mission == 10) {
gotoAndStop ("mission10");
}
if (_root.Mission == 11) {
gotoAndStop ("mission11");
}
if (_root.Mission == 12) {
gotoAndStop ("mission12");
}
if (_root.Mission == 13) {
gotoAndStop ("mission13");
}
if (_root.Mission == 14) {
gotoAndStop ("mission14");
}
if (_root.Mission == 15) {
gotoAndStop ("mission15");
}
if (_root.Mission == 16) {
gotoAndStop ("mission16");
}
Instance of Symbol 372 MovieClip "Player" in Frame 26
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 28
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
_root.Enemy._x = _root.Enemy._x - xSpeed;
_root.Enemy2._x = _root.Enemy2._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 748 MovieClip "Enemy2" in Frame 28
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 5;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 762 MovieClip "Enemy" in Frame 28
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 5;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 30
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 32
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 20) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 812 MovieClip "Enemy3" in Frame 32
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
aSpeed = 0;
Health = 10;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (3);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (2);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (1);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (1);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 812 MovieClip "Enemy2" in Frame 32
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
aSpeed = 0;
Health = 10;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (3);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (2);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (1);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (1);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 812 MovieClip "Enemy4" in Frame 32
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
aSpeed = 0;
Health = 10;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (3);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (2);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (1);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (1);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 812 MovieClip "Enemy5" in Frame 32
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
aSpeed = 0;
Health = 10;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (3);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (2);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (1);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (1);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 812 MovieClip "Enemy6" in Frame 32
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
aSpeed = 0;
Health = 10;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (3);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (2);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (1);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (1);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 812 MovieClip "Enemy7" in Frame 32
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
aSpeed = 0;
Health = 10;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (3);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (2);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (1);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (1);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 812 MovieClip "Enemy1" in Frame 32
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
aSpeed = 0;
Health = 10;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (3);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (2);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (1);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (1);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 34
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 835 MovieClip "Enemy1" in Frame 34
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 5;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 835 MovieClip "Enemy2" in Frame 34
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 5;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 36
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 835 MovieClip "Enemy3" in Frame 36
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 5;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 835 MovieClip "Enemy2" in Frame 36
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 5;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Frame 38
if (_root.Mission == 7) {
gotoAndStop ("mission7");
}
if (_root.Mission == 8) {
gotoAndStop ("mission8");
}
Instance of Symbol 841 MovieClip "level" in Frame 38
onClipEvent (enterFrame) {
if (_root.Teleport == 1) {
this._x = -2500;
_root.Teleport = 0;
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 38
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Frame 40
onLoad = (GoblinCount = 0);
Instance of Symbol 841 MovieClip "level" in Frame 40
onClipEvent (enterFrame) {
if (_root.Teleport == 1) {
this._x = -2500;
_root.Teleport = 0;
}
}
Instance of Symbol 853 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.GoblinCount >= 20) {
_root.Money = _root.Money + 1000;
_root.Exp = _root.Exp + 1000;
_root.MissionLock = 5;
_root.gotoAndStop("school");
} else {
_root.gotoAndStop(40);
}
}
Instance of Symbol 835 MovieClip "Enemy" in Frame 40
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 10;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 40
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 40) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 42
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 906 MovieClip "Enemy1" in Frame 42
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 906 MovieClip "Enemy2" in Frame 42
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 906 MovieClip "Enemy3" in Frame 42
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 44
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 906 MovieClip "Enemy2" in Frame 44
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 906 MovieClip "Enemy3" in Frame 44
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 46
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 906 MovieClip "Enemy1" in Frame 46
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 906 MovieClip "Enemy6" in Frame 46
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 906 MovieClip "Enemy2" in Frame 46
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 906 MovieClip "Enemy3" in Frame 46
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 906 MovieClip "Enemy4" in Frame 46
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 906 MovieClip "Enemy5" in Frame 46
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 25;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 48
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 906 MovieClip "Enemy1" in Frame 48
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 50;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 906 MovieClip "Enemy2" in Frame 48
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 50;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 50
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 835 MovieClip "Enemy" in Frame 50
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 30;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 926 MovieClip in Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 372 MovieClip "Player" in Frame 52
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 835 MovieClip "Enemy" in Frame 52
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 30;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 926 MovieClip in Frame 52
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 372 MovieClip "Player" in Frame 54
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 953 MovieClip "Enemy1" in Frame 54
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 100;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 57
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 1006 MovieClip "Enemy1" in Frame 57
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 1000;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 59
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 1039 MovieClip "Enemy1" in Frame 59
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 2000;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 61
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 1064 MovieClip "Enemy1" in Frame 61
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 4000;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 372 MovieClip "Player" in Frame 63
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 10;
accel = 1;
jumpHeight = 15;
jump = 1;
HealthUp = function () {
if ((_root.HPotion >= 1) && (_root.HealthB._currentframe >= 2)) {
_root.HealthB.gotoAndStop(1);
_root.HPotion = _root.HPotion - 1;
}
};
MagicUp = function () {
if ((_root.MPotion >= 1) && (_root.MagicB._currentframe >= 2)) {
_root.MagicB.gotoAndStop(1);
_root.MPotion = _root.MPotion - 1;
}
};
MagicAttack = function () {
if (_root.MagicB._currentframe <= 10) {
this.gotoAndStop(4);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_root["Enemy" + i]._x = _root["Enemy" + i]._x - xSpeed;
i++;
}
Right = Key.isDown(39);
Left = Key.isDown(37);
Down = Key.isDown(40);
Up = Key.isDown(38);
_y = (_y + ySpeed);
_root.sky._x = _root.sky._x - (xSpeed / 5);
_root.level._x = _root.level._x - xSpeed;
if (jump == 1) {
gotoAndStop (3);
}
if (Key.isDown(65)) {
HealthUp();
}
if (Key.isDown(83)) {
MagicUp();
}
if (Key.isDown(90)) {
MagicAttack();
} else if (Key.isDown(88)) {
gotoAndStop (5);
} else if (Right && (xSpeed < maxSpeed)) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed + accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed + (accel / 5);
}
} else if (Left && (xSpeed > (-maxSpeed))) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
if (jump == 0) {
xSpeed = xSpeed - accel;
} else if (jump == 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
xSpeed = xSpeed - (accel / 5);
}
} else if (jump == 0) {
if (((!_currentframe) == 4) && ((!_currentframe) == 5)) {
gotoAndStop (1);
}
xSpeed = xSpeed / 1.5;
if ((xSpeed < 0.1) && (xSpeed > -0.1)) {
xSpeed = 0;
}
} else if (jump == 1) {
gotoAndStop (3);
xSpeed = xSpeed / 1.05;
}
ySpeed++;
if ((jump == 0) && (Up)) {
gotoAndStop (3);
ySpeed = ySpeed - jumpHeight;
jump = 1;
}
if (ySpeed > 1) {
jump = 1;
}
if (_root.HealthB._currentframe >= 100) {
gotoAndStop (6);
}
}
Instance of Symbol 1093 MovieClip "Enemy" in Frame 63
onClipEvent (load) {
ySpeed = 0;
xSpeed = 0;
maxSpeed = 5;
accel = 2;
jumpHeight = 15;
jump = 1;
Health = 1500;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (Health < 0) {
gotoAndStop (4);
} else {
if (this.hitTest(_root.Player)) {
gotoAndStop (3);
xSpeed = aSpeed;
} else if (this._x <= _root.Player._x) {
gotoAndStop (2);
if (_xscale <= 0) {
_xscale = (_xscale * -1);
}
xSpeed = maxSpeed;
} else if (this._x >= _root.Player._x) {
gotoAndStop (2);
if (_xscale >= 0) {
_xscale = (_xscale * -1);
}
xSpeed = -maxSpeed;
} else {
xSpeed = aSpeed;
gotoAndStop (1);
}
ySpeed++;
if (this.hitTest(_root.Player.Attack1.Hit)) {
Health = Health - ((_root.Exp / 350) * _root.Wand);
} else if (this.hitTest(_root.Player.Attack2.Hit)) {
Health = Health - ((_root.Exp / 500) * _root.Wand);
}
}
}
Instance of Symbol 1094 MovieClip in Frame 63
onClipEvent (load) {
this._visible = false;
}
Symbol 29 Button
on (release) {
_currentframe = (_currentframe + 1);
gotoAndStop(_currentframe + 1);
}
Symbol 30 Button
on (release) {
_currentframe = (_currentframe - 1);
gotoAndStop(_currentframe - 1);
}
Symbol 31 Button
on (release) {
_root.gotoAndStop(57);
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 165
_root.gotoAndStop(3);
Symbol 207 MovieClip Frame 174
_root.gotoAndStop(4);
Symbol 210 Button
on (rollOver) {
gotoAndStop ("roll");
}
on (rollOut) {
gotoAndPlay ("roll");
}
Symbol 213 MovieClip Frame 1
stop();
Symbol 224 Button
on (release) {
_parent.play();
}
Symbol 228 MovieClip Frame 51
stop();
Symbol 233 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 234 Button
on (release) {
_parent.gotoAndPlay("options");
}
Symbol 235 Button
on (release) {
_root.gotoAndStop("save/load");
}
Symbol 236 Button
on (release) {
_parent.gotoAndPlay("name");
}
Symbol 247 Button
on (release) {
_quality = "BEST";
}
Symbol 248 Button
on (release) {
_parent.gotoAndPlay("back");
}
Symbol 249 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 250 Button
on (release) {
_quality = "LOW";
}
Symbol 251 Button
on (release) {
_quality = "HIGH";
}
Symbol 258 Button
on (release) {
_parent.gotoAndPlay("new");
}
Symbol 259 Button
on (release) {
_parent.gotoAndPlay("back2");
}
Symbol 263 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
Symbol 263 MovieClip Frame 9
stop();
Symbol 263 MovieClip Frame 17
stop();
Symbol 263 MovieClip Frame 25
gotoAndStop ("main");
Symbol 263 MovieClip Frame 33
stop();
Symbol 263 MovieClip Frame 40
gotoAndStop ("main");
Symbol 263 MovieClip Frame 48
_root.gotoAndStop("newgame");
Symbol 264 MovieClip Frame 1560
gotoAndPlay (60);
Symbol 276 MovieClip Frame 170
_root.gotoAndStop("level1");
Instance of Symbol 282 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x--;
}
}
Instance of Symbol 296 MovieClip in Symbol 297 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HPotion = _root.HPotion + 1;
this.swapDepths(1000);
this.removeMovieClip();
}
}
Instance of Symbol 280 MovieClip "ground" in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 298 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("cs2");
}
}
Symbol 322 MovieClip Frame 4
_parent.gotoAndStop(1);
Instance of Symbol 317 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
Symbol 324 MovieClip Frame 2
_parent.gotoAndStop(1);
Instance of Symbol 317 MovieClip in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
Symbol 343 MovieClip Frame 7
_root.MagicB.gotoAndStop((_root.MagicB._currentframe = _root.MagicB._currentframe + 1));
Instance of Symbol 332 MovieClip "Hit" in Symbol 343 MovieClip Frame 9
onClipEvent (load) {
this._visible = false;
}
Symbol 343 MovieClip Frame 19
_root.Player.gotoAndStop(1);
Symbol 348 MovieClip Frame 5
stop();
Instance of Symbol 317 MovieClip in Symbol 350 MovieClip Frame 1
onClipEvent (load) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
Instance of Symbol 349 MovieClip "Hit" in Symbol 350 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 350 MovieClip Frame 5
_parent.gotoAndStop(1);
Instance of Symbol 317 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (load) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
Symbol 371 MovieClip Frame 28
_root.gotoAndStop("dead1");
Instance of Symbol 317 MovieClip in Symbol 372 MovieClip Frame 1
onClipEvent (load) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.Wand == 1) {
gotoAndStop (1);
} else if (_root.Wand == 2) {
gotoAndStop (2);
} else if (_root.Wand == 3) {
gotoAndStop (3);
}
}
Symbol 393 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 1
stop();
Instance of Symbol 421 MovieClip in Symbol 424 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = (_root.Exp / 260) - 382.3;
if (this._x > 2.7) {
this._x = 0.285714285714286;
}
}
Symbol 431 Button
on (release) {
_root.gotoAndStop("mission1");
_root.MissionS._visible = false;
_root.MissionS._alpha = 0;
}
Symbol 432 Button
on (release) {
_root.MissionS.gotoAndPlay("missions");
}
Symbol 463 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 516 Button
on (release) {
_root.MissionS._alpha = 0;
_root.MissionS._visible = false;
}
Symbol 517 Button
on (release) {
gotoAndStop (2);
}
Symbol 520 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 1
stop();
Symbol 526 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 1
stop();
Symbol 532 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 545 Button
on (release) {
gotoAndStop (1);
}
Symbol 546 MovieClip Frame 1
stop();
Instance of Symbol 470 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(2);
_root.MissionS.play();
_root.Mission = 2;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 478 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(3);
_root.MissionS.play();
_root.Mission = 3;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 486 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(4);
_root.MissionS.play();
_root.Mission = 4;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 491 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(1);
_root.MissionS.play();
_root.Mission = 1;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 494 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(6);
_root.MissionS.play();
_root.Mission = 6;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 497 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(7);
_root.MissionS.play();
_root.Mission = 7;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 500 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(5);
_root.MissionS.play();
_root.Mission = 5;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 503 MovieClip in Symbol 546 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(8);
_root.MissionS.play();
_root.Mission = 8;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 511 MovieClip in Symbol 546 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MissionLock == 1) {
gotoAndStop (1);
}
if (_root.MissionLock == 2) {
gotoAndStop (2);
}
if (_root.MissionLock == 3) {
gotoAndStop (3);
}
if (_root.MissionLock == 4) {
gotoAndStop (4);
}
if (_root.MissionLock == 5) {
gotoAndStop (5);
}
if (_root.MissionLock == 6) {
gotoAndStop (6);
}
if (_root.MissionLock == 7) {
gotoAndStop (7);
}
if (_root.MissionLock == 8) {
gotoAndStop (8);
}
if (_root.MissionLock == 9) {
gotoAndStop (9);
}
}
Instance of Symbol 520 MovieClip in Symbol 546 MovieClip Frame 2
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(9);
_root.MissionS.play();
_root.Mission = 9;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 523 MovieClip in Symbol 546 MovieClip Frame 2
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(10);
_root.MissionS.play();
_root.Mission = 10;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 526 MovieClip in Symbol 546 MovieClip Frame 2
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(11);
_root.MissionS.play();
_root.Mission = 11;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 529 MovieClip in Symbol 546 MovieClip Frame 2
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(12);
_root.MissionS.play();
_root.Mission = 12;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 532 MovieClip in Symbol 546 MovieClip Frame 2
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(14);
_root.MissionS.play();
_root.Mission = 14;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 535 MovieClip in Symbol 546 MovieClip Frame 2
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(15);
_root.MissionS.play();
_root.Mission = 15;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 538 MovieClip in Symbol 546 MovieClip Frame 2
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(13);
_root.MissionS.play();
_root.Mission = 13;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 541 MovieClip in Symbol 546 MovieClip Frame 2
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
_root.MissionS.rev.gotoAndStop(16);
_root.MissionS.play();
_root.Mission = 16;
}
on (releaseOutside) {
gotoAndStop (1);
}
Instance of Symbol 542 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.MissionLock == 8) {
gotoAndStop (1);
}
if (_root.MissionLock == 9) {
gotoAndStop (2);
}
if (_root.MissionLock == 10) {
gotoAndStop (3);
}
if (_root.MissionLock == 11) {
gotoAndStop (4);
}
if (_root.MissionLock == 12) {
gotoAndStop (5);
}
if (_root.MissionLock == 13) {
gotoAndStop (6);
}
if (_root.MissionLock == 14) {
gotoAndStop (7);
}
if (_root.MissionLock == 15) {
gotoAndStop (8);
}
if (_root.MissionLock == 16) {
gotoAndStop (9);
}
if (_root.MissionLock == 17) {
gotoAndStop (10);
}
}
Symbol 547 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 8
stop();
Symbol 553 Button
on (release) {
_root.gotoAndStop("save/load");
}
Symbol 555 Button
on (release) {
_root.StartMenu._visible = false;
_root.StartMenu._alpha = 0;
}
Symbol 567 Button
on (release) {
if (_root.Money >= 100) {
_root.HPotion = _root.HPotion + 1;
_root.Money = _root.Money - 100;
}
}
Symbol 569 Button
on (release) {
if (_root.Money >= 250) {
_root.MPotion = _root.MPotion + 1;
_root.Money = _root.Money - 250;
}
}
Symbol 571 Button
on (release) {
if (_root.Money >= 100) {
_root.Exp = _root.Exp + 100;
_root.Money = _root.Money - 100;
}
}
Symbol 573 Button
on (release) {
if (((_root.Money >= 0) and (_root.Wand == 2)) or (_root.Wand == 3)) {
_root.Wand = 1;
_root.Money = _root.Money - 0;
}
}
Symbol 574 Button
on (release) {
_root.Shop._visible = false;
_root.Shop._alpha = 0;
}
Symbol 577 Button
on (release) {
if (_root.Money >= 25000) {
if ((_root.Wand == 1) or (_root.Wand == 2)) {
_root.Wand = 3;
_root.Money = _root.Money - 25000;
}
}
}
Symbol 579 Button
on (release) {
if (_root.Money >= 7500) {
if ((_root.Wand == 1) or (_root.Wand == 3)) {
_root.Wand = 2;
_root.Money = _root.Money - 7500;
}
}
}
Symbol 618 MovieClip Frame 385
_root.gotoAndStop("level2");
Instance of Symbol 623 MovieClip in Symbol 624 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Instance of Symbol 622 MovieClip "ground" in Symbol 627 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 626 MovieClip in Symbol 627 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("cs3");
}
}
Symbol 633 MovieClip Frame 110
_root.gotoAndStop("level3");
Symbol 642 MovieClip Frame 9
stop();
Symbol 643 MovieClip Frame 1
stop();
Instance of Symbol 622 MovieClip "ground" in Symbol 643 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 635 MovieClip in Symbol 643 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player.Attack2.Hit)) {
_parent.play();
}
}
Instance of Symbol 642 MovieClip in Symbol 643 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player.Attack2.Hit)) {
_parent.play();
}
}
Symbol 643 MovieClip Frame 10
_root.gotoAndStop("cs4");
Symbol 649 MovieClip Frame 110
_root.gotoAndStop("level4");
Instance of Symbol 280 MovieClip "ground" in Symbol 650 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 298 MovieClip in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("cs5");
}
}
Symbol 659 MovieClip Frame 246
_root.gotoAndStop("level5");
Instance of Symbol 280 MovieClip "ground" in Symbol 660 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 298 MovieClip in Symbol 660 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("cs6");
}
}
Symbol 666 MovieClip Frame 132
_root.gotoAndStop("level6");
Symbol 667 MovieClip Frame 1
stop();
Instance of Symbol 622 MovieClip "ground" in Symbol 667 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 635 MovieClip in Symbol 667 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player.Attack1.Hit)) {
_parent.play();
}
}
Instance of Symbol 642 MovieClip in Symbol 667 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player.Attack1.Hit)) {
_parent.play();
}
}
Symbol 667 MovieClip Frame 10
_root.gotoAndStop("cs7");
Symbol 671 MovieClip Frame 110
_root.gotoAndStop("level7");
Instance of Symbol 280 MovieClip "ground" in Symbol 672 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 298 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("cs8");
}
}
Symbol 683 MovieClip Frame 307
_root.gotoAndStop("level8");
Instance of Symbol 280 MovieClip "ground" in Symbol 684 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 298 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("cs9");
}
}
Symbol 698 MovieClip Frame 509
_root.gotoAndStop("lmain");
_root.Graduation = true;
Instance of Symbol 280 MovieClip "ground" in Symbol 700 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 287 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
if (_root.MissionLock >= 3) {
_root.Pop2._visible = true;
if (Key.isDown(68)) {
_root.Teleport = 1;
_root.gotoAndStop("birchwood");
}
}
} else {
_root.Pop2._visible = false;
}
}
Instance of Symbol 291 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.ShopPop._visible = true;
if (Key.isDown(68)) {
_root.Shop.gotoAndStop(1);
_root.Shop._alpha = 100;
_root.Shop._visible = true;
}
} else {
_root.ShopPop._visible = false;
}
}
Instance of Symbol 298 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("school");
}
}
Instance of Symbol 699 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.Money = _root.Money + 100000;
this.swapDepths(1000);
this.removeMovieClip();
}
}
Instance of Symbol 564 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.Exp = _root.Exp + 1000;
this.swapDepths(1000);
this.removeMovieClip();
}
if (_root.Exp >= 1000) {
this.swapDepths(1000);
this.removeMovieClip();
}
}
Instance of Symbol 705 MovieClip "ground" in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 706 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.MPop._alpha = 100;
if (Key.isDown(68)) {
_root.MissionS.gotoAndStop(1);
_root.MissionS._alpha = 100;
_root.MissionS._visible = true;
}
} else {
_root.MPop._alpha = 0;
}
}
Instance of Symbol 706 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.EPop._alpha = 100;
if (Key.isDown(67)) {
_root.School = 1;
_root.gotoAndStop("lmain");
}
} else {
_root.EPop._alpha = 0;
}
}
Instance of Symbol 280 MovieClip "ground" in Symbol 714 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 298 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("csm1");
}
}
Symbol 732 MovieClip Frame 50
_root.gotoAndStop(_root._currentframe + 1);
Symbol 733 MovieClip Frame 1
onLoad = (DeathCount = 0);
Instance of Symbol 280 MovieClip "ground" in Symbol 733 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.Enemy.ySpeed >= 0) {
while (this.hitTest(_root.Enemy._x + _root.Enemy.GoUP._x, _root.Enemy._y + _root.Enemy.GoUP._y, true)) {
_root.Enemy._y--;
_root.Enemy.ySpeed = 0;
_root.Enemy.jump = 0;
}
if (this.hitTest(_root.Enemy._x + _root.Enemy.Feet._x, _root.Enemy._y + _root.Enemy.Feet._y, true)) {
_root.Enemy.ySpeed = 5;
_root.Enemy.jump = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.Enemy.ySpeed >= 0) {
while (this.hitTest(_root.Enemy2._x + _root.Enemy2.GoUP._x, _root.Enemy2._y + _root.Enemy2.GoUP._y, true)) {
_root.Enemy2._y--;
_root.Enemy2.ySpeed = 0;
_root.Enemy2.jump = 0;
}
if (this.hitTest(_root.Enemy2._x + _root.Enemy2.Feet._x, _root.Enemy2._y + _root.Enemy2.Feet._y, true)) {
_root.Enemy2.ySpeed = 5;
_root.Enemy2.jump = 0;
}
}
}
Instance of Symbol 283 MovieClip in Symbol 733 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x--;
}
}
Instance of Symbol 283 MovieClip in Symbol 733 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Instance of Symbol 298 MovieClip in Symbol 733 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.MissionLock = 2;
_root.Exp = _root.Exp + 500;
_root.Money = _root.Money + 100;
_root.gotoAndStop("donemission");
}
}
Instance of Symbol 738 MovieClip "Hit" in Symbol 740 MovieClip Frame 7
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HealthB.gotoAndStop((_root.HealthB._currentframe = _root.HealthB._currentframe + 1));
}
}
Symbol 740 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 747 MovieClip Frame 24
_root.DeathCount = _root.DeathCount + 1;
Symbol 747 MovieClip Frame 25
stop();
_root.Exp = _root.Exp + 50;
_root.Money = _root.Money + 50;
Instance of Symbol 738 MovieClip "Hit" in Symbol 754 MovieClip Frame 7
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HealthB.gotoAndStop((_root.HealthB._currentframe = _root.HealthB._currentframe + 1));
}
}
Symbol 754 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 761 MovieClip Frame 24
_root.DeathCount = _root.DeathCount + 1;
Symbol 761 MovieClip Frame 25
stop();
_root.Exp = _root.Exp + 50;
_root.Money = _root.Money + 50;
Symbol 768 MovieClip Frame 259
_root.gotoAndStop("school");
Instance of Symbol 770 MovieClip "ground" in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
Instance of Symbol 298 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("csm2");
}
}
Symbol 793 MovieClip Frame 50
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
Instance of Symbol 770 MovieClip "ground" in Symbol 794 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 298 MovieClip in Symbol 794 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.Exp = _root.Exp + 1000;
_root.Money = _root.Money + 500;
_root.MissionLock = 3;
_root.gotoAndStop("school");
}
}
Instance of Symbol 798 MovieClip in Symbol 799 MovieClip Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HealthB.gotoAndStop((_root.HealthB._currentframe = _root.HealthB._currentframe + 1));
}
}
Symbol 811 MovieClip Frame 22
stop();
_root.Exp = _root.Exp + 50;
_root.Money = _root.Money + 50;
Instance of Symbol 770 MovieClip "ground" in Symbol 813 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 298 MovieClip in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop("dead2");
}
}
Symbol 826 MovieClip Frame 5
stop();
Instance of Symbol 826 MovieClip in Symbol 828 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HealthB.gotoAndStop((_root.HealthB._currentframe = _root.HealthB._currentframe + 1));
}
}
Symbol 834 MovieClip Frame 10
stop();
_root.Exp = _root.Exp + 25;
_root.Money = _root.Money + 25;
_root.GoblinCount = _root.GoblinCount + 1;
Symbol 837 MovieClip Frame 1
onLoad = (DeathCount = 0);
Instance of Symbol 280 MovieClip "ground" in Symbol 837 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 283 MovieClip in Symbol 837 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x--;
}
}
Instance of Symbol 283 MovieClip in Symbol 837 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Instance of Symbol 298 MovieClip in Symbol 837 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.Exp = _root.Exp + 1000;
_root.Money = _root.Money + 500;
_root.MissionLock = 4;
_root.gotoAndStop("birchwood");
}
}
Symbol 841 MovieClip Frame 1
onLoad = (DeathCount = 0);
Instance of Symbol 839 MovieClip "ground" in Symbol 841 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 40) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 283 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x--;
}
}
Instance of Symbol 283 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Instance of Symbol 287 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.Pop2._visible = true;
if (Key.isDown(68)) {
_root.Teleport = 1;
_root.gotoAndStop("lmain");
}
} else {
_root.Pop2._visible = false;
}
}
Instance of Symbol 291 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.ShopPop._visible = true;
if (Key.isDown(68)) {
_root.Shop.gotoAndStop(2);
_root.Shop._alpha = 100;
_root.Shop._visible = true;
}
} else {
_root.ShopPop._visible = false;
}
}
Symbol 852 MovieClip Frame 155
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
Symbol 853 MovieClip Frame 120
i = 1;
while (i < 5) {
duplicateMovieClip (_root.Enemy, "Enemy" + i, 1000 + i);
_root["Enemy" + i]._x = random(550);
_root["Enemy" + i]._y = random(400);
i++;
}
Symbol 860 MovieClip Frame 1
onLoad = (DeathCount = 0);
Instance of Symbol 280 MovieClip "ground" in Symbol 860 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 283 MovieClip in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x--;
}
}
Instance of Symbol 283 MovieClip in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Instance of Symbol 298 MovieClip in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop((_root._currentframe = _root._currentframe + 2));
}
}
Instance of Symbol 877 MovieClip in Symbol 887 MovieClip Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HealthB.gotoAndStop((_root.HealthB._currentframe = _root.HealthB._currentframe + 1));
}
}
Symbol 887 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 905 MovieClip Frame 28
stop();
_root.Exp = _root.Exp + 100;
_root.Money = _root.Money + 100;
Instance of Symbol 862 MovieClip "GoUP" in Symbol 906 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 862 MovieClip "Feet" in Symbol 906 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 863 MovieClip in Symbol 906 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 908 MovieClip Frame 1
onLoad = (DeathCount = 0);
Instance of Symbol 280 MovieClip "ground" in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 283 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x--;
}
}
Instance of Symbol 283 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Instance of Symbol 298 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop((_root._currentframe = _root._currentframe + 2));
}
}
Symbol 912 MovieClip Frame 1
onLoad = (DeathCount = 0);
Instance of Symbol 280 MovieClip "ground" in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 283 MovieClip in Symbol 912 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x--;
}
}
Instance of Symbol 283 MovieClip in Symbol 912 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Instance of Symbol 298 MovieClip in Symbol 912 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
}
}
Symbol 921 MovieClip Frame 50
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
Symbol 925 MovieClip Frame 1
onLoad = (DeathCount = 0);
Instance of Symbol 280 MovieClip "ground" in Symbol 925 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 283 MovieClip in Symbol 925 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x--;
}
}
Instance of Symbol 283 MovieClip in Symbol 925 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Instance of Symbol 924 MovieClip in Symbol 925 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.MissionLock = _root.MissionLock + 1;
_root.Money = _root.Money + 2000;
_root.Exp = _root.Exp + 2000;
_root.gotoAndStop("school");
}
}
Symbol 926 MovieClip Frame 1
i = 1;
while (i < 10) {
duplicateMovieClip (_root.Enemy, "Enemy" + i, 1000 + i);
_root["Enemy" + i]._x = this._x + random(2500);
_root["Enemy" + i]._y = this._y;
i++;
}
Symbol 926 MovieClip Frame 2
stop();
Symbol 933 MovieClip Frame 50
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
Symbol 934 MovieClip Frame 1
onLoad = (DeathCount = 0);
Instance of Symbol 280 MovieClip "ground" in Symbol 934 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 283 MovieClip in Symbol 934 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Instance of Symbol 826 MovieClip in Symbol 946 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HealthB.gotoAndStop((_root.HealthB._currentframe = _root.HealthB._currentframe + 5));
}
}
Symbol 952 MovieClip Frame 10
_root.Exp = _root.Exp + 500;
_root.Money = _root.Money + 500;
Symbol 952 MovieClip Frame 30
_root.Money = _root.Money + 2000;
_root.Exp = _root.Exp + 2000;
_root.MissionLock = _root.MissionLock + 1;
_root.gotoAndStop("school");
Symbol 972 MovieClip Frame 369
_root.Money = _root.Money + 1000;
_root.Exp = _root.Exp + 1000;
_root.MissionLock = 8;
_root.gotoAndStop("school");
Symbol 982 MovieClip Frame 336
stop();
Symbol 994 MovieClip Frame 385
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
Symbol 997 MovieClip Frame 1
onLoad = (DeathCount = 0);
Instance of Symbol 995 MovieClip "ground" in Symbol 997 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Player.ySpeed >= 0) {
while (this.hitTest(_root.Player._x + _root.Player.GoUP._x, _root.Player._y + _root.Player.GoUP._y, true)) {
_root.Player._y--;
_root.Player.ySpeed = 0;
_root.Player.jump = 0;
}
if (this.hitTest(_root.Player._x + _root.Player.Feet._x, _root.Player._y + _root.Player.Feet._y, true)) {
_root.Player.ySpeed = 5;
_root.Player.jump = 0;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
if (_root["Enemy" + i].ySpeed >= 0) {
while (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].GoUP._x, _root["Enemy" + i]._y + _root["Enemy" + i].GoUP._y, true)) {
_root["Enemy" + i]._y--;
_root["Enemy" + i].ySpeed = 0;
_root["Enemy" + i].jump = 0;
}
if (this.hitTest(_root["Enemy" + i]._x + _root["Enemy" + i].Feet._x, _root["Enemy" + i]._y + _root["Enemy" + i].Feet._y, true)) {
_root["Enemy" + i].ySpeed = 5;
_root["Enemy" + i].jump = 0;
}
}
i++;
}
}
Instance of Symbol 283 MovieClip in Symbol 997 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.Player)) {
_root.level._x++;
}
}
Symbol 1005 MovieClip Frame 25
stop();
_root.Exp = _root.Exp + 1000;
_root.Money = _root.Money + 1000;
_root.gotoAndStop((_root._currentframe = _root._currentframe + 2));
Instance of Symbol 738 MovieClip "Hit" in Symbol 1022 MovieClip Frame 9
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HealthB.gotoAndStop((_root.HealthB._currentframe = _root.HealthB._currentframe + 3));
}
}
Symbol 1022 MovieClip Frame 23
_parent.gotoAndStop(1);
Symbol 1038 MovieClip Frame 40
_root.gotoAndStop((_root._currentframe = _root._currentframe + 2));
Instance of Symbol 738 MovieClip "Hit" in Symbol 1062 MovieClip Frame 9
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HealthB.gotoAndStop((_root.HealthB._currentframe = _root.HealthB._currentframe + 5));
}
}
Symbol 1062 MovieClip Frame 33
_parent.gotoAndStop(1);
Symbol 1063 MovieClip Frame 25
stop();
_root.Exp = _root.Exp + 10000;
_root.Money = _root.Money + 10000;
_root.gotoAndStop("school");
Instance of Symbol 738 MovieClip in Symbol 1088 MovieClip Frame 10
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HealthB.gotoAndStop((_root.HealthB._currentframe = _root.HealthB._currentframe + 4));
}
}
Symbol 1092 MovieClip Frame 19
stop();
_root.Money = _root.Money + 500;
_root.Exp = _root.Exp + 500;
Symbol 1094 MovieClip Frame 1
i = 1;
while (i < 11) {
duplicateMovieClip (_root.Enemy, "Enemy" + i, 1000 + i);
_root["Enemy" + i]._x = this._x + random(2000);
_root["Enemy" + i]._y = this._y;
i++;
}
Symbol 1094 MovieClip Frame 2
stop();
Symbol 1097 Button
on (release) {
if (_root.Exp >= 1000) {
_root.gotoAndStop("school");
} else {
_root.gotoAndPlay("menu");
_root.Menu.gotoAndStop("main");
}
}
Symbol 1108 Button
on (press) {
var savefile = SharedObject.getLocal("TheAmulet");
savefile.data.Exp = _root.Exp;
savefile.data.Money = _root.Money;
savefile.data.HPotion = _root.HPotion;
savefile.data.MPotion = _root.MPotion;
savefile.data.Wand = _root.Wand;
savefile.data.MissionLock = _root.MissionLock;
savefile.data.PlayerName = _root.PlayerName;
savefile.flush();
play();
}
Symbol 1109 Button
on (press) {
var savefile = SharedObject.getLocal("TheAmulet");
if (savefile.data.Exp == undefined) {
_root.Exp = 0;
_root.Money = 0;
_root.HPotion = 0;
_root.MPotion = 0;
_root.Wand = 1;
_root.MissionLock = 1;
_root.PlayerName = Wizard;
} else {
_root.Exp = savefile.data.Exp;
_root.Money = savefile.data.Money;
_root.HPotion = savefile.data.HPotion;
_root.MPotion = savefile.data.MPotion;
_root.Wand = savefile.data.Wand;
_root.MissionLock = savefile.data.MissionLock;
_root.PlayerName = savefile.data.PlayerName;
}
gotoAndStop (1);
}
Symbol 1117 Button
on (release) {
gotoAndStop (1);
}
Symbol 1118 MovieClip Frame 1
stop();
Symbol 1118 MovieClip Frame 29
stop();
Symbol 1124 Button
on (release) {
getURL ("http://www.newgrounds.com/fan_net/go.php3?id=1333488", "_blank");
}
Symbol 1128 Button
on (release) {
_root.gotoAndStop("school");
}