Frame 1
stop();
onLoad = function () {
var _local1 = _root;
_local1.attachMovie("gogbtn", "gogbtn", 999999999);
_local1.gogbtn._x = _local1.vCam._x + 375;
_local1.gogbtn._y = _local1.vCam._y - 200;
_local1.attachMovie("sd", "sd", 999999998);
_local1.sd._x = _local1.vCam._x + 375;
_local1.sd._y = _local1.vCam._y - 173;
_local1.attachMovie("timeBox", "timeBox", 10000);
h = 8;
m = 10;
s = 30;
msTimer = 0;
dayornight = "am";
dayCount = 0;
dir = "right";
down = 40;
action = 32;
block = 83;
left = 37;
jump = 68;
right = 39;
attack = 65;
currentSound = null;
menu = true;
levelComplete = false;
worldMap = false;
Level = "Level1";
LastLevel = "";
LevelLoaded = false;
MSGtxt = "";
MSGopen = false;
stageChangeFade = false;
stageChange = false;
faderAttached = false;
messageTimer = 0;
music = new Sound(this);
music.attachSound("complete.mp3");
music.start(0, 99);
music.setVolume(10);
currentSound = music;
lifeShow = false;
life = 5;
hSpeed = 6;
hGrav = 0;
ySpeed = 0;
die = false;
attackTimer = 0;
jumping = false;
falling = false;
jumpTimer = 0;
blocking = false;
blockTimer = 100;
bossXpos = null;
bossDead = false;
arrowShooting = false;
currentArcher = null;
vsBoss = false;
arrowDir = "";
eKills = 0;
e1Hit = false;
e2Hit = false;
e3Hit = false;
bossHit = false;
};
onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
function reset() {
currentSound.stop();
levelComplete = false;
arrowShooting = false;
currentArcher = null;
arrowDir = "";
_root.vCam._x = 375;
_root.vCam._y = 200;
removeMovieClip("backGround");
removeMovieClip("ground");
removeMovieClip("hero");
worldMap = false;
stageChange = false;
faderAttached = false;
hSpeed = 6;
die = false;
hGrav = 0;
ySpeed = 0;
jumping = false;
}
if (_local1._currentframe == 1) {
menu = true;
} else if (_local1._currentframe == 2) {
menu = false;
}
if (menu == false) {
_local1.gogbtn._x = _local1.vCam._x + 375;
_local1.gogbtn._y = _local1.vCam._y - 200;
_local1.sd._x = _local1.vCam._x + 375;
_local1.sd._y = _local1.vCam._y - 173;
_local1.timeBox._x = _local1.vCam._x - 370;
_local1.timeBox._y = _local1.vCam._y - 200;
if (lifeShow == false) {
_local1.attachMovie("lives", "lives", 10000);
lifeShow = true;
}
_local1.lives._x = _local1.vCam._x - 370;
_local1.lives._y = _local1.vCam._y - 200;
if (messageTimer > 0) {
messageTimer = messageTimer - 1;
}
if (messageTimer <= 0) {
messageTimer = 0;
}
if ((MSGopen == false) && (stageChangeFade == false)) {
if (attackTimer > 0) {
attackTimer = attackTimer - 1;
}
if (attackTimer <= 0) {
attackTimer = 0;
}
if (blockTimer >= 100) {
blockTimer == 100;
}
if ((blockTimer <= 100) && (blocking == false)) {
blockTimer = blockTimer + 1;
}
if (jumpTimer > 0) {
jumpTimer = jumpTimer - 1;
}
if (jumpTimer <= 0) {
jumpTimer = 0;
}
}
_local1.Fader._x = _local1.vCam._x - 375;
_local1.Fader._y = _local1.vCam._y - 200;
if ((stageChangeFade == true) && (faderAttached == false)) {
_local1.attachMovie("Fader", "Fader", 6000);
_local1.Fader._x = _local1.vCam._x - 375;
_local1.Fader._y = _local1.vCam._y - 200;
faderAttached = true;
}
if (_local1.Fader._currentframe == 68) {
_local1.Fader.removeMovieClip();
} else if (_local1.Fader._currentframe == 35) {
stageChange = true;
} else if (_local1.Fader._currentframe == 36) {
_local1.Fader._x = _local1.vCam._x - 375;
_local1.Fader._y = _local1.vCam._y - 200;
}
if (stageChange == true) {
LevelLoaded = false;
stageChange = false;
stageChangeFade = false;
if (Level == "Level1") {
Level = "Level2";
} else if (Level == "Level2") {
Level = "Level3";
} else if (Level == "Level3") {
Level = "Complete";
} else if (Level == "Gameover") {
Level = "Level1";
}
}
if (LevelLoaded == false) {
if (Level == "Level1") {
reset();
if (life <= 0) {
life = 3;
}
LastLevel = "Level1";
_local1.attachMovie("Level1", "backGround", 1000);
_local1.attachMovie("Level1Ground", "ground", 2000);
_local1.attachMovie("hero", "hero", 3000);
_local1.ground._visible = false;
_local1.hero._x = 50;
_local1.hero._y = 300;
LevelLoaded = true;
music = new Sound(_local2);
music.attachSound("level1.mp3");
music.start(0, 99);
music.setVolume(40);
currentSound = music;
} else if (Level == "Level2") {
reset();
if (life <= 0) {
life = 3;
}
LastLevel = "Level2";
_local1.attachMovie("Level2", "backGround", 1000);
_local1.attachMovie("Level2Ground", "ground", 2000);
_local1.attachMovie("hero", "hero", 3000);
_local1.ground._visible = false;
_local1.hero._x = 50;
_local1.hero._y = 200;
LevelLoaded = true;
music = new Sound(_local2);
music.attachSound("level2.mp3");
music.start(0, 99);
music.setVolume(40);
currentSound = music;
} else if (Level == "Level3") {
reset();
if (life <= 0) {
life = 3;
}
LastLevel = "Level3";
_local1.attachMovie("Level3", "backGround", 1000);
_local1.attachMovie("Level3Ground", "ground", 2000);
_local1.attachMovie("hero", "hero", 3000);
_local1.ground._visible = false;
_local1.hero._x = 50;
_local1.hero._y = 200;
LevelLoaded = true;
music = new Sound(_local2);
music.attachSound("level3.mp3");
music.start(0, 99);
music.setVolume(40);
currentSound = music;
} else if (Level == "Gameover") {
reset();
LastLevel = "Gameover";
_local1.attachMovie("gameoverscreen", "gameover", 1000);
gameover._x = 375;
gameover._y = 200;
LevelLoaded = true;
music = new Sound(_local2);
music.attachSound("gameover");
music.start(0, 99);
music.setVolume(40);
currentSound = music;
} else if (Level == "Complete") {
reset();
LastLevel = "Complete";
_local1.attachMovie("complete", "complete", 1000);
complete._x = 375;
complete._y = 200;
LevelLoaded = true;
music = new Sound(_local2);
music.attachSound("complete.mp3");
music.start(0, 99);
music.setVolume(10);
currentSound = music;
}
}
if ((eKills == 5) && (Level == "Level1")) {
levelComplete = true;
} else if ((eKills == 12) && (Level == "Level2")) {
levelComplete = true;
} else if ((eKills == 20) && (Level == "Level3")) {
levelComplete = true;
}
if (_local1.hero.hitTest(_local1.backGround.spike) && (life > 0)) {
life = 0;
_local1.hero.gotoAndStop("hurt");
}
if (jumping == false) {
if ((!_local1.ground.hitTest(_local1.hero._x, _local1.hero._y + 1, true)) && (stageChangeFade == false)) {
_local1.hero._y = _local1.hero._y + hGrav;
hGrav = hGrav + 1;
} else {
hGrav = 0;
}
while (_local1.ground.hitTest(_local1.hero._x, _local1.hero._y, true)) {
jumping = false;
hGrav = 0;
_local1.hero._y = _local1.hero._y - 1;
}
}
if (_local1.hero._y >= 450) {
life = 0;
_local1.hero.gotoAndStop("die");
}
if (_local1.hero._x <= 20) {
_local1.hero._x = _local1.hero._x + hSpeed;
} else if (((_local1.hero._x >= (_local1.ground._width - 20)) && (stageChangeFade == false)) && (levelComplete == false)) {
_local1.hero._x = _local1.hero._x - hSpeed;
} else if (((_local1.hero._x >= (_local1.ground._width - 20)) && (stageChangeFade == false)) && (levelComplete == true)) {
hSpeed = 0;
stageChangeFade = true;
}
time();
}
};
Instance of Symbol 377 MovieClip "vCam" in Frame 1
onClipEvent (enterFrame) {
if (_root.vsBoss == false) {
if ((_root.hero._x > (this._width / 2)) && (_root.hero._x < (_root.backGround._width - (this._width / 2)))) {
this._x = _root.hero._x;
}
}
}
Instance of Symbol 37 MovieClip "eSword" in Symbol 40 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.blocking == true)) {
_root.hero.gotoAndStop("shieldHit");
}
if ((this.hitTest(_root.hero) && (_root.die == false)) && (_root.blocking == false)) {
_root.e1Hit = true;
_root.hero.gotoAndStop("hurt");
}
}
Symbol 69 MovieClip Frame 16
if (_parent.eLife == 0) {
_parent.gotoAndStop("die");
} else if (_parent.hitTest(_root.hero)) {
_parent.gotoAndStop("attack");
} else {
_parent.gotoAndStop("stand");
}
Symbol 102 MovieClip Frame 50
_root.dTotal = _root.dTotal + 1;
Symbol 102 MovieClip Frame 51
stop();
Symbol 103 MovieClip [enemy1] Frame 1
stop();
Instance of Symbol 23 MovieClip "stand" in Symbol 103 MovieClip [enemy1] Frame 1
onClipEvent (load) {
rNumTimer = 0;
rNum = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_root.hSpeed / 2;
}
rNumTimer = rNumTimer + 1;
if (rNumTimer >= 40) {
rNum = random(100) + 1;
rNumTimer = 0;
}
if ((_parent.hitTest(_root.hero) && (_root.attacking == false)) && (_parent.EAattack == 0)) {
_parent.gotoAndStop("attack");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum > 50)) {
_parent.gotoAndStop("shieldHit");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum < 50)) {
_parent.gotoAndStop("hurt");
} else if ((Math.abs(_root.hero._x - _parent._x) < 300) && (Math.abs(_root.hero._y - _parent._y) < 60)) {
if ((!_parent.hitTest(_root.hero)) && (Math.abs(_root.hero._x - _parent._x) > 40)) {
_parent.gotoAndStop("walk");
}
}
if (_parent._y >= 450) {
_parent.gotoAndStop("die");
}
if (_root.hero.slash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.stab.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.jumpSlash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.die == true) {
_parent.gotoAndStop("walkAway");
}
}
Instance of Symbol 30 MovieClip in Symbol 103 MovieClip [enemy1] Frame 7
onClipEvent (load) {
rNum = 0;
}
onClipEvent (enterFrame) {
rNumTimer = rNumTimer + 1;
if (rNumTimer >= 40) {
rNum = random(100) + 1;
rNumTimer = 0;
}
if ((Math.abs(_root.hero._x - _parent._x) < 10) && (Math.abs(_root.hero._x - _parent._y) > 1)) {
_parent.gotoAndStop("stand");
}
if ((_parent.hitTest(_root.hero) && (_root.attacking == false)) && (_parent.EAtimer == 0)) {
_parent.gotoAndStop("attack");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum > 40)) {
_parent.gotoAndStop("shieldHit");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum < 40)) {
_parent.gotoAndStop("attack");
} else if (((_parent.hitTest(_root.hero) && (_root.attacking == false)) && (_parent.EAtimer >= 0)) && (rNum < 50)) {
_parent.gotoAndStop("stand");
}
if (!_parent.hitTest(_root.hero._x)) {
if (_root.hero._x > _parent._x) {
_parent._x = _parent._x + 2.3;
_parent._xscale = 100;
} else if (_root.hero._x < _parent._x) {
_parent._x = _parent._x - 2.3;
_parent._xscale = -100;
}
}
if (_parent._y >= 450) {
_parent.gotoAndStop("die");
} else if (_root.die == true) {
_parent.gotoAndStop("walkAway");
}
}
Instance of Symbol 40 MovieClip in Symbol 103 MovieClip [enemy1] Frame 12
onClipEvent (enterFrame) {
if (this._currentframe == 10) {
_root.e1Hit = false;
_parent.EAtimer = 20;
_parent.gotoAndStop("walk");
}
if (_root.hero._x > _parent._x) {
_parent._xscale = 100;
} else if (_root.hero._x < _parent._x) {
_parent._xscale = -100;
}
if (_root.hero.slash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.stab.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.jumpSlash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_parent._y >= 450) {
_parent.gotoAndStop("die");
}
}
Instance of Symbol 53 MovieClip in Symbol 103 MovieClip [enemy1] Frame 18
onClipEvent (load) {
_root.xSpeed / 2;
}
onClipEvent (enterFrame) {
if (this._currentframe == 14) {
if (_parent.EAtimer == 0) {
_parent.gotoAndStop("attack");
} else {
_parent.gotoAndStop("stand");
}
}
if (_parent._xscale == -100) {
_parent._x = _parent._x + 1;
} else if (_parent._xscale == 100) {
_parent._x = _parent._x - 1;
}
}
Instance of Symbol 69 MovieClip "hurt" in Symbol 103 MovieClip [enemy1] Frame 25
onClipEvent (load) {
_parent.eLife = _parent.eLife - 1;
}
Instance of Symbol 102 MovieClip in Symbol 103 MovieClip [enemy1] Frame 30
onClipEvent (load) {
_root.eKills = _root.eKills + 1;
}
Instance of Symbol 37 MovieClip "eSword" in Symbol 122 MovieClip Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (_root.blocking == true)) {
_root.hero.gotoAndStop("shieldHit");
} else if ((this.hitTest(_root.hero) && (_root.die == false)) && (_root.blocking == false)) {
_root.e2Hit = true;
_root.hero.gotoAndStop("hurt");
} else if (this.hitTest(_root.hero) && (_root.die == true)) {
}
}
Symbol 124 MovieClip Frame 10
if (_root.EAtimer == 0) {
_parent.gotoAndStop("attack");
} else {
_parent.gotoAndStop("stand");
}
Symbol 133 MovieClip Frame 10
if (_parent.eLife == 0) {
_parent.gotoAndStop("die");
} else if (_parent.hitTest(_root.hero) && (_parent.EAtimer == 0)) {
_parent.gotoAndStop("attack");
} else {
_parent.gotoAndStop("stand");
}
Symbol 148 MovieClip Frame 22
stop();
_root.hero.gotoAndStop("idle");
Symbol 149 MovieClip [smasher] Frame 1
stop();
Instance of Symbol 106 MovieClip in Symbol 149 MovieClip [smasher] Frame 1
onClipEvent (load) {
rNumTimer = 0;
rNum = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_root.hSpeed / 2;
}
rNumTimer = rNumTimer + 1;
if (rNumTimer >= 40) {
rNum = random(100) + 1;
rNumTimer = 0;
}
if ((_parent.hitTest(_root.hero) && (_root.attacking == false)) && (_parent.EAattack == 0)) {
_parent.gotoAndStop("attack");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum > 50)) {
_parent.gotoAndStop("shieldHit");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum < 50)) {
_parent.gotoAndStop("hurt");
} else if ((Math.abs(_root.hero._x - _parent._x) < 300) && (Math.abs(_root.hero._y - _parent._y) < 60)) {
if ((!_parent.hitTest(_root.hero)) && (Math.abs(_root.hero._x - _parent._x) > 40)) {
_parent.gotoAndStop("walk");
}
}
if (_parent._y >= 450) {
_parent.gotoAndStop("die");
}
if (_root.hero.slash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.stab.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.jumpSlash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.die == true) {
_parent.gotoAndStop("walkAway");
}
}
Instance of Symbol 111 MovieClip in Symbol 149 MovieClip [smasher] Frame 7
onClipEvent (load) {
rNum = 0;
}
onClipEvent (enterFrame) {
rNumTimer = rNumTimer + 1;
if (rNumTimer >= 40) {
rNum = random(100) + 1;
rNumTimer = 0;
}
if ((Math.abs(_root.hero._x - _parent._x) < 10) && (Math.abs(_root.hero._x - _parent._y) > 1)) {
_parent.gotoAndStop("stand");
}
if ((_parent.hitTest(_root.hero) && (_root.attacking == false)) && (_parent.EAtimer == 0)) {
_parent.gotoAndStop("attack");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum > 40)) {
_parent.gotoAndStop("shieldHit");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum < 40)) {
_parent.gotoAndStop("attack");
} else if (((_parent.hitTest(_root.hero) && (_root.attacking == false)) && (_parent.EAtimer >= 0)) && (rNum < 50)) {
_parent.gotoAndStop("stand");
}
if (!_parent.hitTest(_root.hero._x)) {
if (_root.hero._x > _parent._x) {
_parent._x = _parent._x + 2.3;
_parent._xscale = 100;
} else if (_root.hero._x < _parent._x) {
_parent._x = _parent._x - 2.3;
_parent._xscale = -100;
}
}
if (_parent._y >= 450) {
_parent.gotoAndStop("die");
} else if (_root.die == true) {
_parent.gotoAndStop("walkAway");
}
}
Instance of Symbol 122 MovieClip in Symbol 149 MovieClip [smasher] Frame 12
onClipEvent (enterFrame) {
if (this._currentframe == 20) {
_parent.EAtimer = 20;
_root.e2Hit = false;
_parent.gotoAndStop("walk");
}
if (_root.hero._x > _parent._x) {
_parent._xscale = 100;
} else if (_root.hero._x < _parent._x) {
_parent._xscale = -100;
} else if (_parent._y >= 450) {
_parent.gotoAndStop("die");
}
}
Instance of Symbol 124 MovieClip "shieldHit" in Symbol 149 MovieClip [smasher] Frame 18
onClipEvent (load) {
_root.xSpeed / 2;
}
onClipEvent (enterFrame) {
if (this._currentframe == 14) {
if (_parent.EAtimer == 0) {
_parent.gotoAndStop("attack");
} else {
_parent.gotoAndStop("stand");
}
}
if (_parent._xscale == -100) {
_parent._x = _parent._x + 1;
} else if (_parent._xscale == 100) {
_parent._x = _parent._x - 1;
}
}
Instance of Symbol 133 MovieClip in Symbol 149 MovieClip [smasher] Frame 25
onClipEvent (load) {
_parent.eLife = _parent.eLife - 1;
}
Instance of Symbol 148 MovieClip in Symbol 149 MovieClip [smasher] Frame 30
onClipEvent (load) {
_root.eKills = _root.eKills + 1;
}
Symbol 193 MovieClip Frame 42
_root.dTotal = _root.dTotal + 1;
Symbol 193 MovieClip Frame 43
stop();
Symbol 194 MovieClip Frame 1
stop();
Instance of Symbol 155 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
rNumTimer = 0;
rNum = 0;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_root.xSpeed / 2;
}
rNumTimer = rNumTimer + 1;
if (rNumTimer >= 30) {
rNumTimer = 0;
rNum = random(350) + 1;
}
if (Math.abs(_root.hero._x - _parent._x) < 300) {
_parent.gotoAndStop("shoot");
} else if (((Math.abs(_root.hero._x - _parent._x) < 100) && (rNum < 100)) && (_root.timerMC.aWalk == false)) {
_parent.gotoAndStop("walk");
}
if (_root.hero._x > _parent._x) {
_root.arrowDir = "right";
_parent._xscale = 100;
} else if (_root.hero._x < _parent._x) {
_root.arrowDir = "left";
_parent._xscale = -100;
}
if (_parent._y >= 450) {
_parent.gotoAndStop("die");
}
if (_root.hero.slash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.stab.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.jumpSlash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
}
}
Instance of Symbol 166 MovieClip in Symbol 194 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.arrowShooting == false) {
_root.currentArcher = _parent;
}
if (this._currentframe == 16) {
_root.attachMovie("Arrow", "Arrow", 4000);
}
if (this._currentframe == 60) {
_root.timerMC.arrowTimer = 60;
_parent.gotoAndStop("stand");
}
if (_root.hero._x > _parent._x) {
_root.arrowDir = "right";
_parent._xscale = 100;
} else if (_root.hero._x < _parent._x) {
_root.arrowDir = "left";
_parent._xscale = -100;
}
if (_root.hero.slash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.stab.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.jumpSlash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
}
}
Instance of Symbol 171 MovieClip in Symbol 194 MovieClip Frame 13
onClipEvent (load) {
_parent.eLife = _parent.eLife - 1;
}
onClipEvent (enterFrame) {
if (this._currentframe == 20) {
if (_parent.eLife <= 0) {
_parent.gotoAndStop("die");
} else {
_parent.gotoAndStop("stand");
}
}
}
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip Frame 18
onClipEvent (load) {
_root.eKills = _root.eKills + 1;
}
Symbol 198 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 198 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_parent.gotoAndPlay(2);
}
}
Instance of Symbol 196 MovieClip in Symbol 198 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_parent.gotoAndPlay(2);
}
}
Instance of Symbol 196 MovieClip in Symbol 198 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_parent.gotoAndPlay(2);
}
}
Instance of Symbol 196 MovieClip in Symbol 198 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_parent.gotoAndPlay(2);
}
}
Instance of Symbol 196 MovieClip in Symbol 198 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_parent.gotoAndPlay(2);
}
}
Instance of Symbol 196 MovieClip in Symbol 198 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_parent.gotoAndPlay(2);
}
}
Instance of Symbol 196 MovieClip in Symbol 198 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_parent.gotoAndPlay(2);
}
}
Symbol 198 MovieClip Frame 25
stop();
_root.life = _root.life + 1;
Symbol 208 MovieClip Frame 22
stop();
_root.hero.gotoAndStop("idle");
Symbol 209 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
rNumTimer = 0;
rNum = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.hero)) {
_root.hSpeed / 2;
}
rNumTimer = rNumTimer + 1;
if (rNumTimer >= 40) {
rNum = random(100) + 1;
rNumTimer = 0;
}
if ((_parent.hitTest(_root.hero) && (_root.attacking == false)) && (_parent.EAattack == 0)) {
_parent.gotoAndStop("attack");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum > 50)) {
_parent.gotoAndStop("shieldHit");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum < 50)) {
_parent.gotoAndStop("hurt");
} else if ((Math.abs(_root.hero._x - _parent._x) < 300) && (Math.abs(_root.hero._y - _parent._y) < 60)) {
if ((!_parent.hitTest(_root.hero)) && (Math.abs(_root.hero._x - _parent._x) > 40)) {
_parent.gotoAndStop("walk");
}
}
if (_parent._y >= 450) {
_parent.gotoAndStop("die");
}
if (_root.hero.slash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.stab.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.hero.jumpSlash.sword.hitTest(_parent) && (_root.attacking == true)) {
_parent.gotoAndStop("hurt");
} else if (_root.die == true) {
_parent.gotoAndStop("walkAway");
}
}
Instance of Symbol 111 MovieClip in Symbol 209 MovieClip Frame 7
onClipEvent (load) {
rNum = 0;
}
onClipEvent (enterFrame) {
rNumTimer = rNumTimer + 1;
if (rNumTimer >= 40) {
rNum = random(100) + 1;
rNumTimer = 0;
}
if ((Math.abs(_root.hero._x - _parent._x) < 10) && (Math.abs(_root.hero._x - _parent._y) > 1)) {
_parent.gotoAndStop("stand");
}
if ((_parent.hitTest(_root.hero) && (_root.attacking == false)) && (_parent.EAtimer == 0)) {
_parent.gotoAndStop("attack");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum > 40)) {
_parent.gotoAndStop("shieldHit");
} else if ((_parent.hitTest(_root.hero) && (_root.attacking == true)) && (rNum < 40)) {
_parent.gotoAndStop("attack");
} else if (((_parent.hitTest(_root.hero) && (_root.attacking == false)) && (_parent.EAtimer >= 0)) && (rNum < 50)) {
_parent.gotoAndStop("stand");
}
if (!_parent.hitTest(_root.hero._x)) {
if (_root.hero._x > _parent._x) {
_parent._x = _parent._x + 2.3;
_parent._xscale = 100;
} else if (_root.hero._x < _parent._x) {
_parent._x = _parent._x - 2.3;
_parent._xscale = -100;
}
}
if (_parent._y >= 450) {
_parent.gotoAndStop("die");
} else if (_root.die == true) {
_parent.gotoAndStop("walkAway");
}
}
Instance of Symbol 122 MovieClip in Symbol 209 MovieClip Frame 12
onClipEvent (enterFrame) {
if (this._currentframe == 20) {
_parent.EAtimer = 20;
_root.e2Hit = false;
_parent.gotoAndStop("walk");
}
if (_root.hero._x > _parent._x) {
_parent._xscale = 100;
} else if (_root.hero._x < _parent._x) {
_parent._xscale = -100;
} else if (_parent._y >= 450) {
_parent.gotoAndStop("die");
}
}
Instance of Symbol 124 MovieClip "shieldHit" in Symbol 209 MovieClip Frame 18
onClipEvent (load) {
_root.xSpeed / 2;
}
onClipEvent (enterFrame) {
if (this._currentframe == 14) {
if (_parent.EAtimer == 0) {
_parent.gotoAndStop("attack");
} else {
_parent.gotoAndStop("stand");
}
}
if (_parent._xscale == -100) {
_parent._x = _parent._x + 1;
} else if (_parent._xscale == 100) {
_parent._x = _parent._x - 1;
}
}
Instance of Symbol 133 MovieClip in Symbol 209 MovieClip Frame 25
onClipEvent (load) {
_parent.eLife = _parent.eLife - 1;
}
Instance of Symbol 208 MovieClip in Symbol 209 MovieClip Frame 30
onClipEvent (load) {
_root.hSpeed = 0;
_root.stageChangeFade = true;
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 149 MovieClip [smasher] in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (load) {
eLife = 5;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 149 MovieClip [smasher] in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (load) {
eLife = 5;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 194 MovieClip in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 198 MovieClip in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
this.swapDepths(10001);
}
Instance of Symbol 198 MovieClip in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
this.swapDepths(10001);
}
Instance of Symbol 209 MovieClip in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (load) {
eLife = 5;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 198 MovieClip in Symbol 210 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
this.swapDepths(10001);
}
Instance of Symbol 213 MovieClip in Symbol 215 MovieClip [sd] Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (_parent.hitTest(_root._xmouse, _root._ymouse)) {
getURL ("http://www.slightlydisturbing.com", "_blank");
}
}
Instance of Symbol 221 MovieClip in Symbol 222 MovieClip [gogbtn] Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (_parent.hitTest(_root._xmouse, _root._ymouse)) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
}
Instance of Symbol 149 MovieClip [smasher] in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (load) {
eLife = 5;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 209 MovieClip in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (load) {
eLife = 5;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 194 MovieClip in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 149 MovieClip [smasher] in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (load) {
eLife = 5;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 198 MovieClip in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
this.swapDepths(10001);
}
Instance of Symbol 198 MovieClip in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
this.swapDepths(10001);
}
Instance of Symbol 198 MovieClip in Symbol 229 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
this.swapDepths(10001);
}
Symbol 230 MovieClip [lives] Frame 1
stop();
onEnterFrame = function () {
var _local1 = _root;
if (_local1.life == 1) {
gotoAndStop (1);
} else if (_local1.life == 2) {
gotoAndStop (2);
} else if (_local1.life == 3) {
gotoAndStop (3);
} else if (_local1.life == 4) {
gotoAndStop (4);
} else if (_local1.life == 5) {
gotoAndStop (5);
} else if (_local1.life == 6) {
gotoAndStop (6);
} else if (_local1.life == 7) {
gotoAndStop (7);
} else if (_local1.life == 8) {
gotoAndStop (8);
} else if (_local1.life == 0) {
gotoAndStop (9);
}
};
Symbol 235 Button
on (release) {
_root.eKills = 0;
_root.stageChangeFade = true;
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 244 MovieClip [Level1] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 244 MovieClip [Level1] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 244 MovieClip [Level1] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 103 MovieClip [enemy1] in Symbol 244 MovieClip [Level1] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 209 MovieClip in Symbol 244 MovieClip [Level1] Frame 1
onClipEvent (load) {
eLife = 5;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 194 MovieClip in Symbol 244 MovieClip [Level1] Frame 1
onClipEvent (load) {
eLife = 3;
EAtimer = 0;
grav = 0;
}
onClipEvent (enterFrame) {
if (EAtimer <= 0) {
EAtimer = 0;
} else if (EAtimer > 0) {
EAtimer = EAtimer - 1;
}
if ((!_root.ground.hitTest(this._x, this._y + 1, true)) && (_root.stageChangeFade == false)) {
this._y = this._y + grav;
grav = grav + 1;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
grav = 0;
this._y = this._y - 1;
}
}
Instance of Symbol 198 MovieClip in Symbol 244 MovieClip [Level1] Frame 1
onClipEvent (enterFrame) {
this.swapDepths(10001);
}
Symbol 272 MovieClip Frame 14
stop();
Symbol 307 MovieClip Frame 1
_root.die = true;
_root.showGameOver = true;
Symbol 307 MovieClip Frame 47
_root.LevelLoaded = false;
_root.Level = "Gameover";
stop();
Symbol 336 MovieClip [hero] Frame 1
stop();
Instance of Symbol 249 MovieClip in Symbol 336 MovieClip [hero] Frame 1
onClipEvent (load) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.jumping = false;
_root.attacking = false;
_root.blocking = false;
}
}
onClipEvent (enterFrame) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
if (Key.isDown(_root.attack) && (_root.attackTimer == 0)) {
_parent.gotoAndStop("attack");
} else if (Key.isDown(_root.block)) {
_parent.gotoAndStop("block");
} else if (Key.isDown(_root.jump) && (_root.jumpTimer == 0)) {
_parent.gotoAndStop("jump");
} else if (Key.isDown(_root.right)) {
_root.dir = "right";
_parent.gotoAndStop("walk");
} else if (Key.isDown(_root.left)) {
_root.dir = "left";
_parent.gotoAndStop("walk");
}
} else {
this.stop();
}
}
Instance of Symbol 255 MovieClip in Symbol 336 MovieClip [hero] Frame 7
onClipEvent (load) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.jumping = false;
_root.attacking = false;
_root.blocking = false;
}
}
onClipEvent (enterFrame) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
if (Key.isDown(_root.attack) && (_root.attackTimer == 0)) {
_parent.gotoAndStop("attackWalk");
} else if (Key.isDown(_root.jump) && (_root.jumpTimer == 0)) {
_parent.gotoAndStop("jump");
} else if (Key.isDown(_root.right)) {
_root.dir = "right";
_parent._x = _parent._x + _root.hSpeed;
_parent._xscale = 100;
if (Key.isDown(_root.block)) {
_parent.gotoAndStop("blockWalk");
}
} else if (Key.isDown(_root.left)) {
_root.dir = "left";
_parent._x = _parent._x - _root.hSpeed;
_parent._xscale = -100;
if (Key.isDown(_root.block)) {
_parent.gotoAndStop("blockWalk");
}
} else {
_parent.gotoAndStop("stand");
}
} else {
_parent.gotoAndStop("stand");
}
}
Instance of Symbol 266 MovieClip "slash" in Symbol 336 MovieClip [hero] Frame 12
onClipEvent (load) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.jumping = false;
_root.attacking = true;
_root.blocking = false;
}
}
onClipEvent (enterFrame) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
if (this._currentframe == 10) {
_root.attackTimer = 15;
_parent.gotoAndStop("stand");
}
} else {
_parent.gotoAndStop("stand");
}
}
Instance of Symbol 272 MovieClip in Symbol 336 MovieClip [hero] Frame 18
onClipEvent (load) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.jumping = false;
_root.attacking = false;
_root.blocking = true;
}
}
onClipEvent (enterFrame) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
if (!Key.isDown(_root.block)) {
_root.blocking = false;
_parent.gotoAndStop("stand");
} else if (Key.isDown(_root.right)) {
_parent.gotoAndStop("blockWalk");
} else if (Key.isDown(_root.left)) {
_parent.gotoAndStop("blockWalk");
}
} else {
_parent.gotoAndStop("stand");
}
}
Instance of Symbol 277 MovieClip "stab" in Symbol 336 MovieClip [hero] Frame 23
onClipEvent (load) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.jumping = false;
_root.attacking = true;
_root.blocking = false;
}
}
onClipEvent (enterFrame) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
if (this._currentframe == 12) {
_root.attackTimer = 20;
_parent.gotoAndStop("walk");
} else if (_root.dir == "right") {
_parent._x = _parent._x + (_root.hSpeed + 2);
_parent._xscale = 100;
} else if (_root.dir == "left") {
_parent._x = _parent._x - (_root.hSpeed + 2);
_parent._xscale = -100;
}
} else {
_parent.gotoAndStop("stand");
}
}
Instance of Symbol 307 MovieClip in Symbol 336 MovieClip [hero] Frame 32
onClipEvent (enterFrame) {
_root.attacking = false;
_root.jumping = false;
_root.blocking = false;
}
Instance of Symbol 313 MovieClip in Symbol 336 MovieClip [hero] Frame 36
onClipEvent (load) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.jumping = false;
_root.attacking = false;
_root.blocking = true;
}
}
onClipEvent (enterFrame) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.blocking = true;
if (!Key.isDown(_root.block)) {
_root.blocking = false;
_parent.gotoAndStop("walk");
} else if (Key.isDown(_root.jump) && (_root.jumpTimer == 0)) {
_parent.gotoAndStop("jump");
} else if (Key.isDown(_root.right)) {
_root.dir = "right";
_parent._x = _parent._x + _root.hSpeed;
_parent._xscale = 100;
} else if (Key.isDown(_root.left)) {
_root.dir = "left";
_parent._x = _parent._x - _root.hSpeed;
_parent._xscale = -100;
} else {
_parent.gotoAndStop("block");
}
}
}
Instance of Symbol 316 MovieClip in Symbol 336 MovieClip [hero] Frame 44
onClipEvent (load) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.ySpeed = 13;
_root.jumping = true;
}
}
onClipEvent (enterFrame) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.ySpeed = _root.ySpeed - 1;
_root.hero._y = _root.hero._y - _root.ySpeed;
if (Key.isDown(_root.attack) && (_root.attackTimer == 0)) {
_root.blocking = false;
_root.attacking = true;
_parent.gotoAndStop("jumpAttack");
} else if (Key.isDown(_root.block)) {
_root.attacking = false;
_root.blocking = true;
_parent.gotoAndStop("jumpBlock");
}
if (Key.isDown(_root.right)) {
_root.dir = "right";
_parent._x = _parent._x + _root.hSpeed;
_parent._xscale = 100;
} else if (Key.isDown(_root.left)) {
_root.dir = "left";
_parent._x = _parent._x - _root.hSpeed;
_parent._xscale = -100;
}
if ((_root.ySpeed == 0) && (_root.blocking == true)) {
_root.jumping = false;
_root.jumpTimer = 20;
_parent.gotoAndStop("block");
} else if (_root.ySpeed == 0) {
_root.jumping = false;
_root.jumpTimer = 20;
_parent.gotoAndStop("stand");
}
}
}
Instance of Symbol 266 MovieClip "slash" in Symbol 336 MovieClip [hero] Frame 49
onClipEvent (load) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.jumping = false;
_root.attacking = true;
_root.blocking = false;
}
}
onClipEvent (enterFrame) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
if (this._currentframe == 10) {
_root.attackTimer = 15;
_parent.gotoAndStop("stand");
}
} else {
_parent.gotoAndStop("stand");
}
}
Instance of Symbol 318 MovieClip in Symbol 336 MovieClip [hero] Frame 58
onClipEvent (load) {
if ((_root.MSGopen == false) && (_root.stageChangeFade == false)) {
_root.jumping = true;
_root.attacking = false;
_root.blocking = true;
}
}
onClipEvent (enterFrame) {
_root.ySpeed = _root.ySpeed - 1;
_root.hero._y = _root.hero._y - _root.ySpeed;
if (_root.ground.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.attacking = false;
_root.jumping = false;
_root.jumpTimer = 20;
_parent.gotoAndStop("blockWalk");
}
if (!Key.isDown(_root.block)) {
_root.attacking = false;
_root.jumping = false;
_root.jumpTimer = 30;
_parent.gotoAndStop("walk");
}
if (Key.isDown(_root.right)) {
_root.dir = "right";
_parent._x = _parent._x + _root.hSpeed;
_parent._xscale = 100;
} else if (Key.isDown(_root.left)) {
_root.dir = "left";
_parent._x = _parent._x - _root.hSpeed;
_parent._xscale = -100;
}
}
Instance of Symbol 327 MovieClip in Symbol 336 MovieClip [hero] Frame 66
onClipEvent (load) {
_root.jumping = false;
_root.attacking = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 8) {
_parent.gotoAndStop("block");
}
if (_parent._xscale == 100) {
_parent._x = _parent._x - 4;
} else if (_parent._xscale == -100) {
_parent._x = _parent._x + 4;
}
}
Instance of Symbol 335 MovieClip "hurt" in Symbol 336 MovieClip [hero] Frame 73
onClipEvent (load) {
if (_root.e1Hit == true) {
_root.life = _root.life - 1;
} else if (_root.e2Hit == true) {
_root.life = _root.life - 2;
} else if (_root.e3Hit == true) {
_root.life = _root.life - 1;
} else if (_root.bossHit == true) {
_root.life = _root.life - 2;
}
_root.hurt = true;
}
onClipEvent (enterFrame) {
if ((_root.life <= 0) && (this._currentframe == 16)) {
_root.life = 0;
_parent.gotoAndStop("die");
} else if (this._currentframe == 16) {
_parent.gotoAndStop("stand");
}
}
Instance of Symbol 343 MovieClip in Symbol 344 MovieClip [Arrow] Frame 1
onClipEvent (load) {
_root.e3Hit = true;
blocked = false;
_parent._x = _root.currentArcher._x;
_parent._y = _root.currentArcher._y - 20;
_root.arrowShooting = true;
if (_root.arrowDir == "right") {
_parent._xscale = 100;
dir = "right";
} else if (_root.arrowDir == "left") {
_parent._xscale = -100;
dir = "left";
}
}
onClipEvent (enterFrame) {
if ((_parent._x <= (_root.backGround._x - 30)) || (_parent._x >= (_root.backGround._width + 30))) {
_root.arrowShooting = false;
}
if (!_root.arrowShooting) {
_root.e3Hit = false;
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.hero) && (_root.blocking == false)) {
_root.hero.gotoAndStop("hurt");
_parent.removeMovieClip();
} else if ((dir == "right") && (blocked == true)) {
_parent._rotation = _parent._rotation + 40;
_parent._x = _parent._x - 20;
_parent._y = _parent._y - (random(10) + 1);
} else if ((dir == "left") && (blocked == true)) {
_parent._rotation = _parent._rotation + 40;
_parent._x = _parent._x + 20;
_parent._y = _parent._y - (random(20) + 1);
} else if ((_parent.hitTest(_root.hero) && (_root.blocking == true)) && (dir == "right")) {
blocked = true;
_parent._xscale = -100;
_root.hero.gotoAndStop("shieldHit");
} else if ((_parent.hitTest(_root.hero) && (_root.blocking == true)) && (dir == "left")) {
blocked = true;
_root.hero.gotoAndStop("shieldHit");
_parent._xscale = 100;
} else if ((dir == "right") && (blocked == false)) {
_parent._x = _parent._x + 20;
} else if ((dir == "left") && (blocked == false)) {
_parent._x = _parent._x - 20;
}
}
Instance of Symbol 346 MovieClip in Symbol 347 MovieClip [bullet1] Frame 1
onClipEvent (load) {
_parent._x = _root.boss._x - 30;
_parent._y = _root.boss._y - 40;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - 6;
if (_parent._x <= (_root.vCam._x - 450)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 346 MovieClip in Symbol 348 MovieClip [bullet2] Frame 1
onClipEvent (load) {
_parent._x = _root.boss._x - 30;
_parent._y = _root.boss._y - 40;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - 0.5;
_parent._x = _parent._x - 6;
if (_parent._x <= (_root.vCam._x - 450)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 346 MovieClip in Symbol 349 MovieClip [bullet3] Frame 1
onClipEvent (load) {
_parent._x = _root.boss._x - 30;
_parent._y = _root.boss._y - 40;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - 0.8;
_parent._x = _parent._x - 6;
if (_parent._x <= (_root.vCam._x - 450)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 346 MovieClip in Symbol 350 MovieClip [bullet4] Frame 1
onClipEvent (load) {
_parent._x = _root.boss._x - 30;
_parent._y = _root.boss._y - 40;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - 1;
_parent._x = _parent._x - 6;
if (_parent._x <= (_root.vCam._x - 450)) {
_parent.removeMovieClip();
}
}
Symbol 359 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 374 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 359 MovieClip in Symbol 374 MovieClip Frame 3
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_quality = "low";
}
Instance of Symbol 362 MovieClip in Symbol 374 MovieClip Frame 3
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_quality = "medium";
}
Instance of Symbol 365 MovieClip in Symbol 374 MovieClip Frame 3
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_quality = "high";
}
Instance of Symbol 373 MovieClip "Start" in Symbol 374 MovieClip Frame 3
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop(2);
}
Symbol 375 MovieClip Frame 2
gotoAndPlay (1);
Symbol 375 MovieClip Frame 3
stop();
Symbol 377 MovieClip Frame 1
function camControl() {
var _local1 = _parent;
var _local2 = this;
parentColor.setTransform(camColor.getTransform());
var _local3 = sX / _local2._width;
var _loc3 = (sY / _local2._height);
_local1._x = cX - (_local2._x * _local3);
_local1._y = cY - (_local2._y * _loc3);
_local1._xscale = 100 * _local3;
_local1._yscale = 100 * _loc3;
}
function resetStage() {
var _local1 = _parent;
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_local1._xscale = 100;
_local1._yscale = 100;
_local1._x = 0;
_local1._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;