STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228131
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/86395428?noj=FRM86395428-15DC" width="1" height="1"></div>

armadilloknight2.swf

This is the info page for
Flash #27522

(Click the ID number above for more basic data on this flash file.)


Text
100

Quit

Quit

Quit

Continue

Continue

Continue

Game Over

Click to Continue

Click to Continue

Click to Continue

Paladin

10000

10000

10000

10000

(Press X)

Hey, you're a Knight of Serenity right?  Thank goodness you're here!  You've got to help us!

Hey, you're a Knight of Serenity right?  Thank goodness you're here!  You've got to help us!

x

3

GALAN

00

ActionScript [AS1/AS2]

Frame 1
_root.count1 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); setProperty("load.g", _xscale , _root.count1);
Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) { gotoAndPlay (3); } else { gotoAndPlay (1); }
Frame 3
_root.m.s.setVolume(100); _root.m.s.start(); gotoAndPlay (4);
Frame 4
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop();
Instance of Symbol 37 MovieClip "jukebox" in Frame 4
onClipEvent (load) { function vReset() { snd.stop(); _root.jukebox.gotoAndPlay(4); } snd = new Sound(); vReset(); } onClipEvent (enterFrame) { this.stupid = _root.world._x; this.stoopid = _root.world._y; if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 71 MovieClip "tBoard" in Frame 4
onClipEvent (load) { this._visible = false; }
Instance of Symbol 74 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = true; } else { this._visible = false; } }
Instance of Symbol 85 MovieClip "bossGage" in Frame 4
onClipEvent (load) { this._visible = false; }
Instance of Symbol 95 MovieClip "dWindow" in Frame 4
onClipEvent (load) { function open(port, msg) { action = "open"; goNext = false; message = msg; portrait.gotoAndStop(port); _root.world.player.actionLock = true; _root.world.player.stop(); this._visible = true; this._y = targetY; this._xscale = 0; this._yscale = 0; } function close() { _root.world.player.actionLock = false; if (_root.world.player.pose == "stand") { _root.world.player.gotoAndStop("stand"); _root.world.player.pose = "stand"; } else { _root.world.player.prevPose = "bleh"; _root.world.player.pose = "ko"; } this._visible = false; this._y = -200; action = "done"; if (_root.world.endBlock.egStart) { _root.jukebox.gotoAndPlay(2); _root.world.endBlock.egStart = false; } _root.jukebox.snd.setVolume(100); goNext = true; } action = "none"; goNext = false; this._visible = false; targetY = this._y; this._y = -200; scaleStep = 10; } onClipEvent (enterFrame) { if (this._visible) { if (Key.isDown(88)) { action = "close"; } } if (action == "open") { if (this._xscale < 100) { this._xscale = this._xscale + scaleStep; this._yscale = this._yscale + scaleStep; } else { action = "none"; } } if (action == "close") { if (0 < this._xscale) { this._xscale = this._xscale - scaleStep; this._yscale = this._yscale - scaleStep; } else { close(); } } }
Instance of Symbol 106 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_parent.world.player.arrows == 0) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 269 MovieClip "world" in Frame 4
onClipEvent (load) { safeY = 850; startX = this._x; startY = this._y; this._quality = "LOW"; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 270 MovieClip "white" in Frame 4
onClipEvent (load) { this._visible = false; }
Frame 5
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop();
Instance of Symbol 315 MovieClip "world" in Frame 5
onClipEvent (load) { safeY = 1000; startX = this._x; startY = this._y; this._quality = "LOW"; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Frame 6
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop();
Instance of Symbol 352 MovieClip "world" in Frame 6
onClipEvent (load) { safeY = 850; startX = this._x; startY = this._y; this._quality = "LOW"; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Frame 7
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop();
Instance of Symbol 364 MovieClip "world" in Frame 7
onClipEvent (load) { safeY = 850; startX = this._x; startY = this._y; this._quality = "LOW"; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Frame 8
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop(); _root.white._visible = true;
Instance of Symbol 380 MovieClip "world" in Frame 8
onClipEvent (load) { safeY = 850; startX = this._x; startY = this._y; this._quality = "LOW"; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Frame 9
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop(); _root.white._visible = false;
Instance of Symbol 386 MovieClip "world" in Frame 9
onClipEvent (load) { safeY = 850; startX = this._x; startY = this._y; this._quality = "LOW"; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Frame 10
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop();
Instance of Symbol 428 MovieClip "world" in Frame 10
onClipEvent (load) { safeY = 850; startX = this._x; startY = this._y; this._quality = "LOW"; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 430 MovieClip in Frame 11
onClipEvent (load) { _root.white._visible = true; }
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
stop();
Symbol 37 MovieClip Frame 3
stop();
Symbol 41 MovieClip Frame 1
doorFlag = false;
Symbol 41 MovieClip Frame 11
stop(); this._visible = false;
Symbol 41 MovieClip Frame 12
this._visible = true;
Symbol 41 MovieClip Frame 39
_root.nextFrame(); doorFlag = true; this.gotoAndPlay("warpIn"); _root.white._visible = false;
Symbol 47 Button
on (release) { getURL ("doneDonate.html"); }
Symbol 55 Button
on (release) { _root.continueNow(); }
Symbol 57 MovieClip Frame 1
fadeType = "cont"; resetFlag = false;
Symbol 57 MovieClip Frame 11
stop(); this._visible = false;
Symbol 57 MovieClip Frame 12
this._visible = true;
Symbol 57 MovieClip Frame 37
if (fadeType == "cont") { resetFlag = true; }
Symbol 57 MovieClip Frame 39
resetFlag = false;
Symbol 57 MovieClip Frame 52
if (fadeType == "cont") { gotoAndPlay (1); } if (fadeType == "game") { gotoAndPlay (53); }
Symbol 57 MovieClip Frame 53
stop();
Symbol 62 Button
on (release) { _quality = "MEDIUM"; loadMovie ("d0805614.swf", _level0); }
Symbol 93 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 17
gotoAndPlay (2);
Symbol 137 MovieClip Frame 18
stop();
Symbol 137 MovieClip Frame 19
stop();
Symbol 137 MovieClip Frame 20
stop();
Symbol 137 MovieClip Frame 21
shooting = true;
Symbol 137 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 137 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 19
this._y = _root.world.safeY; curing = false;
Symbol 144 MovieClip Frame 20
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 148 MovieClip Frame 3
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 17
gotoAndPlay (2);
Symbol 149 MovieClip Frame 18
stop();
Symbol 149 MovieClip Frame 19
stop();
Symbol 149 MovieClip Frame 20
stop();
Symbol 149 MovieClip Frame 21
shooting = true;
Symbol 149 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 149 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 10
this._y = _root.world.safeY;
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 17
gotoAndPlay (2);
Symbol 161 MovieClip Frame 18
stop();
Symbol 161 MovieClip Frame 19
stop();
Symbol 161 MovieClip Frame 20
stop();
Symbol 161 MovieClip Frame 21
shooting = true;
Symbol 161 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 161 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 167 MovieClip Frame 1
if (_parent.arrows == 0) { this._visible = false; } else { this._visible = true; }
Symbol 169 MovieClip Frame 1
if (_parent.arrows == 0) { this._visible = false; } else { this._visible = true; }
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 2
stop();
Symbol 208 MovieClip Frame 3
stop();
Symbol 208 MovieClip Frame 4
stop();
Symbol 208 MovieClip Frame 24
gotoAndPlay (5);
Symbol 208 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 187 MovieClip "attMask" in Symbol 208 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 208 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 208 MovieClip Frame 31
stop();
Symbol 208 MovieClip Frame 32
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 208 MovieClip Frame 40
stop(); doneShoot = true;
Symbol 208 MovieClip Frame 41
stop();
Symbol 208 MovieClip Frame 50
gotoAndPlay (42);
Symbol 208 MovieClip Frame 51
doneThrow = false;
Symbol 208 MovieClip Frame 54
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 208 MovieClip Frame 59
stop(); doneThrow = true;
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 20
this._y = _root.world.safeY; stop();
Symbol 235 MovieClip Frame 1
stop(); active = false;
Symbol 235 MovieClip Frame 2
active = true;
Symbol 235 MovieClip Frame 7
_root.world.player.vVelocity = this.bounceHeight;
Symbol 235 MovieClip Frame 11
gotoAndStop (1);
Symbol 236 MovieClip Frame 1
stop(); active = false;
Symbol 236 MovieClip Frame 2
active = true;
Symbol 236 MovieClip Frame 7
_root.world.player.vVelocity = this.bounceHeight;
Symbol 236 MovieClip Frame 11
gotoAndStop (1);
Symbol 237 MovieClip Frame 1
stop(); active = false;
Symbol 237 MovieClip Frame 2
active = true;
Symbol 237 MovieClip Frame 7
_root.world.player.vVelocity = this.bounceHeight;
Symbol 237 MovieClip Frame 11
gotoAndStop (1);
Symbol 248 MovieClip Frame 1
stop(); active = false;
Symbol 248 MovieClip Frame 2
active = true;
Symbol 248 MovieClip Frame 7
_root.world.player.vVelocity = this.bounceHeight;
Symbol 248 MovieClip Frame 11
gotoAndStop (1);
Instance of Symbol 108 MovieClip "enar3" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 137 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar3.activateLeft(this._x, this._y); } else { _parent.enar3.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 144 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 25; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 148 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 108 MovieClip "enar2" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 149 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar2.activateLeft(this._x, this._y); } else { _parent.enar2.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 160 MovieClip "seed" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 108 MovieClip "enar1" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 161 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar1.activateLeft(this._x, this._y); } else { _parent.enar1.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 208 MovieClip "player" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 20; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 15; } } } }
Instance of Symbol 212 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 222 MovieClip "mil" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { flag = 0; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -80; } if (this._x < (_parent.player._x - 10)) { this._xscale = 80; } if (_parent.player.hitMask.hitTest(this) && (flag < 9)) { if (flag == 0) { _root.dWindow.open(4, "I'll check out the road ahead. Milo, you go see if one of King Oblig's couriers is around."); flag = 1; } if (flag == 1) { if (_root.dWindow.goNext) { flag = 2; } } if (flag == 2) { _root.dWindow.open(5, "Ok *ulp* I just hope there's no ghosts..."); flag = 3; } if (flag == 3) { if (_root.dWindow.goNext) { flag = 9; } _root.dWindow.goNext = false; } } }
Instance of Symbol 235 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 236 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -60; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 237 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -42; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 248 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -40; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 262 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 235 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 268 MovieClip "ground" in Symbol 269 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 19
this._y = _root.world.safeY; curing = false;
Symbol 274 MovieClip Frame 20
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 3
stop();
Symbol 275 MovieClip Frame 4
stop();
Symbol 275 MovieClip Frame 24
gotoAndPlay (5);
Symbol 275 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 187 MovieClip "attMask" in Symbol 275 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 275 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 275 MovieClip Frame 31
stop();
Symbol 275 MovieClip Frame 32
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 275 MovieClip Frame 40
stop(); doneShoot = true;
Symbol 275 MovieClip Frame 41
stop();
Symbol 275 MovieClip Frame 50
gotoAndPlay (42);
Symbol 275 MovieClip Frame 51
doneThrow = false;
Symbol 275 MovieClip Frame 54
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 275 MovieClip Frame 59
stop(); doneThrow = true;
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
stop();
Symbol 304 MovieClip Frame 3
stop();
Symbol 304 MovieClip Frame 18
gotoAndPlay (4);
Symbol 304 MovieClip Frame 37
attacking = false; goFight = false;
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 17
gotoAndPlay (2);
Symbol 305 MovieClip Frame 18
stop();
Symbol 305 MovieClip Frame 19
stop();
Symbol 305 MovieClip Frame 20
stop();
Symbol 305 MovieClip Frame 21
shooting = true;
Symbol 305 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 305 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Instance of Symbol 274 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 100; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 108 MovieClip "enar3" in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 137 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar3.activateLeft(this._x, this._y); } else { _parent.enar3.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 144 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 25; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 275 MovieClip "player" in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 277 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { flag = 0; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -66; } if (this._x < (_parent.player._x - 10)) { this._xscale = 66; } if (_parent.player.hitMask.hitTest(this) && (flag < 9)) { if (flag == 0) { _root.dWindow.open(1, "Blaze Blossoms grow in this forest. The flowers burst into flame when they bloom."); flag = 1; } if (flag == 1) { if (_root.dWindow.goNext) { flag = 2; } } if (flag == 2) { _root.dWindow.open(1, "They only grow where there's lots of Sword Vine, which burns up when the flowers sprout."); flag = 3; } if (flag == 3) { if (_root.dWindow.goNext) { flag = 9; } _root.dWindow.goNext = false; } } }
Instance of Symbol 148 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 148 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 108 MovieClip "enar2" in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 149 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar2.activateLeft(this._x, this._y); } else { _parent.enar2.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 148 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 148 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 148 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 279 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.arrows = _parent.player.arrows + 15; s.start(); _parent.player.bow._visible = true; _parent.player.doneShoot = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 304 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 60; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 60; goFight = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 600; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (attackTarget < this._x) { this._xscale = 100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if (stunned == false) { if (goFight) { hVelocity = speed * -1; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { hVelocity = speed; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (waitTimer == waitDelay) { waitTimer = 0; goFight = true; attackTarget = _parent.player._x; } else { waitTimer++; } prevPose = pose; if (grounded) { if (goFight) { if (attacking) { pose = "attack"; } else { pose = "run"; if (this._xscale == 100) { this.hVelocity = speed * -1; } if (this._xscale == -100) { this.hVelocity = speed; } } } else { pose = "stand"; hVelocity = 0; stunned = false; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else { pose = "jump"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } else { _parent.player.getHit(touchAttack, this._x, 14, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (goFight && (grounded)) { if (Math.abs(_parent.player._x - this._x) < 200) { attacking = true; } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 108 MovieClip "enar1" in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 305 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = false; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar1.activateLeft(this._x, this._y); } else { _parent.enar1.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 160 MovieClip "seed" in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 212 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 315 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 306 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -66; } if (this._x < (_parent.player._x - 10)) { this._xscale = 66; } if (_parent.player.hitMask.hitTest(this) && (active)) { _root.dWindow.open(1, "There's dark magic in the forest, and not just the usual ghosts..."); active = false; } }
Instance of Symbol 262 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 235 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 315 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 314 MovieClip "ground" in Symbol 315 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 316 MovieClip Frame 3
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 2
stop();
Symbol 317 MovieClip Frame 3
stop();
Symbol 317 MovieClip Frame 4
stop();
Symbol 317 MovieClip Frame 24
gotoAndPlay (5);
Symbol 317 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 187 MovieClip "attMask" in Symbol 317 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 317 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 317 MovieClip Frame 31
stop();
Symbol 317 MovieClip Frame 32
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 317 MovieClip Frame 40
stop(); doneShoot = true;
Symbol 317 MovieClip Frame 41
stop();
Symbol 317 MovieClip Frame 50
gotoAndPlay (42);
Symbol 317 MovieClip Frame 51
doneThrow = false;
Symbol 317 MovieClip Frame 54
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 317 MovieClip Frame 59
stop(); doneThrow = true;
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 21
this.vineClear();
Symbol 337 MovieClip Frame 33
stop();
Instance of Symbol 336 MovieClip in Symbol 337 MovieClip Frame 33
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = false; } else { this._visible = true; } }
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 21
this.vineClear();
Symbol 344 MovieClip Frame 33
stop();
Instance of Symbol 336 MovieClip in Symbol 344 MovieClip Frame 33
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 349 MovieClip "tsb1" in Symbol 351 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._yscale = 100; } vReset(); }
Instance of Symbol 316 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 274 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 100; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 214 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 279 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.arrows = _parent.player.arrows + 15; s.start(); _parent.player.bow._visible = true; _parent.player.doneShoot = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 108 MovieClip "enar1" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 161 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar1.activateLeft(this._x, this._y); } else { _parent.enar1.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 317 MovieClip "player" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 319 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.lives++; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { } }
Instance of Symbol 320 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -66; } if (this._x < (_parent.player._x - 10)) { this._xscale = 66; } if (_parent.player.hitMask.hitTest(this) && (active)) { _root.dWindow.open(1, "This Sword Vine looks pretty sharp, but you look like you have tough armor..."); active = false; } }
Instance of Symbol 160 MovieClip "seed" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 212 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 323 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { attackPwr = 8; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 262 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 337 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); firstSeed = true; s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); if (firstSeed) { _root.dWindow.open(3, "You got a Blaze Blossom! Press 'S' to throw it! Use it wisely!"); firstSeed = false; } } }
Instance of Symbol 323 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { attackPwr = 8; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 341 MovieClip "mil" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { flag = 0; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -80; } if (this._x < (_parent.player._x - 10)) { this._xscale = 80; } if (_parent.player.hitMask.hitTest(this) && (flag < 9)) { if (flag == 0) { _root.dWindow.open(5, "I've found one of the King's couriers!"); flag = 1; } if (flag == 1) { if (_root.dWindow.goNext) { flag = 2; } } if (flag == 2) { _root.dWindow.open(2, "This Sword Vine has overgrown the path. We need to find a way through"); flag = 3; } if (flag == 3) { if (_root.dWindow.goNext) { flag = 9; } _root.dWindow.goNext = false; } } }
Instance of Symbol 343 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -100; } if (this._x < (_parent.player._x - 10)) { this._xscale = 100; } }
Instance of Symbol 344 MovieClip "fl1" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndStop("idle"); this._visible = false; } function grow() { this._visible = true; this.gotoAndPlay(2); } function vineClear() { _parent.ground.tsb1._yscale = 0; _parent.th1._yscale = 0; } vReset(); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 345 MovieClip "th1" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 10; this._yscale = 100; } vReset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } if (this.hitTest(_parent.seed)) { _parent.fl1.grow(); } }
Instance of Symbol 235 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 338 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 351 MovieClip "ground" in Symbol 352 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 21
this.vineClear();
Symbol 353 MovieClip Frame 33
stop();
Instance of Symbol 336 MovieClip in Symbol 353 MovieClip Frame 33
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = false; } else { this._visible = true; } }
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 21
this.vineClear();
Symbol 355 MovieClip Frame 33
stop();
Instance of Symbol 336 MovieClip in Symbol 355 MovieClip Frame 33
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = false; } else { this._visible = true; } }
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 3
stop();
Symbol 356 MovieClip Frame 18
gotoAndPlay (4);
Symbol 356 MovieClip Frame 37
attacking = false; goFight = false;
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 17
gotoAndPlay (2);
Symbol 358 MovieClip Frame 18
stop();
Symbol 358 MovieClip Frame 19
stop();
Symbol 358 MovieClip Frame 20
stop();
Symbol 358 MovieClip Frame 21
shooting = true;
Symbol 358 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 358 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Instance of Symbol 349 MovieClip "tsb2" in Symbol 363 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._yscale = 100; } vReset(); }
Instance of Symbol 349 MovieClip "tsb1" in Symbol 363 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._yscale = 100; } vReset(); }
Instance of Symbol 353 MovieClip "fl2" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndStop("idle"); this._visible = false; } function grow() { this._visible = true; this.gotoAndPlay(2); } function vineClear() { _parent.ground.tsb2._yscale = 0; _parent.th2._yscale = 0; } vReset(); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 354 MovieClip "th2" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 10; this._yscale = 100; } vReset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } if (this.hitTest(_parent.seed)) { _parent.fl2.grow(); } }
Instance of Symbol 144 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 25; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 317 MovieClip "player" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 355 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 316 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 356 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 60; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 60; goFight = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 600; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (attackTarget < this._x) { this._xscale = 100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if (stunned == false) { if (goFight) { hVelocity = speed * -1; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { hVelocity = speed; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (waitTimer == waitDelay) { waitTimer = 0; goFight = true; attackTarget = _parent.player._x; } else { waitTimer++; } prevPose = pose; if (grounded) { if (goFight) { if (attacking) { pose = "attack"; } else { pose = "run"; if (this._xscale == 100) { this.hVelocity = speed * -1; } if (this._xscale == -100) { this.hVelocity = speed; } } } else { pose = "stand"; hVelocity = 0; stunned = false; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else { pose = "jump"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } else { _parent.player.getHit(touchAttack, this._x, 14, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (goFight && (grounded)) { if (Math.abs(_parent.player._x - this._x) < 200) { attacking = true; } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 357 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -100; } if (this._x < (_parent.player._x - 10)) { this._xscale = 100; } if (_parent.player.hitMask.hitTest(this) && (active)) { _root.dWindow.open(2, "The woods get pretty misty up ahead."); active = false; } }
Instance of Symbol 356 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 60; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 60; goFight = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 600; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (attackTarget < this._x) { this._xscale = 100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if (stunned == false) { if (goFight) { hVelocity = speed * -1; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { hVelocity = speed; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (waitTimer == waitDelay) { waitTimer = 0; goFight = true; attackTarget = _parent.player._x; } else { waitTimer++; } prevPose = pose; if (grounded) { if (goFight) { if (attacking) { pose = "attack"; } else { pose = "run"; if (this._xscale == 100) { this.hVelocity = speed * -1; } if (this._xscale == -100) { this.hVelocity = speed; } } } else { pose = "stand"; hVelocity = 0; stunned = false; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else { pose = "jump"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } else { _parent.player.getHit(touchAttack, this._x, 14, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (goFight && (grounded)) { if (Math.abs(_parent.player._x - this._x) < 200) { attacking = true; } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 356 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 60; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 60; goFight = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 600; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (attackTarget < this._x) { this._xscale = 100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if (stunned == false) { if (goFight) { hVelocity = speed * -1; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { hVelocity = speed; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (waitTimer == waitDelay) { waitTimer = 0; goFight = true; attackTarget = _parent.player._x; } else { waitTimer++; } prevPose = pose; if (grounded) { if (goFight) { if (attacking) { pose = "attack"; } else { pose = "run"; if (this._xscale == 100) { this.hVelocity = speed * -1; } if (this._xscale == -100) { this.hVelocity = speed; } } } else { pose = "stand"; hVelocity = 0; stunned = false; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else { pose = "jump"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } else { _parent.player.getHit(touchAttack, this._x, 14, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (goFight && (grounded)) { if (Math.abs(_parent.player._x - this._x) < 200) { attacking = true; } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 108 MovieClip "enar2" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 358 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = false; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar2.activateLeft(this._x, this._y); } else { _parent.enar2.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 160 MovieClip "seed" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 108 MovieClip "enar1" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 305 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = false; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar1.activateLeft(this._x, this._y); } else { _parent.enar1.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 212 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 344 MovieClip "fl1" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndStop("idle"); this._visible = false; } function grow() { this._visible = true; this.gotoAndPlay(2); } function vineClear() { _parent.ground.tsb1._yscale = 0; _parent.th1._yscale = 0; } vReset(); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 345 MovieClip "th1" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 10; this._yscale = 100; } vReset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } if (this.hitTest(_parent.seed)) { _parent.fl1.grow(); } }
Instance of Symbol 355 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 355 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 262 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 235 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 237 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -42; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 248 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -40; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 363 MovieClip "ground" in Symbol 364 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 376 MovieClip Frame 20
gotoAndPlay (1);
Symbol 376 MovieClip Frame 21
attPwr = 0;
Symbol 376 MovieClip Frame 35
this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200;
Symbol 376 MovieClip Frame 36
stop();
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 355 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 275 MovieClip "player" in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 274 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 100; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 160 MovieClip "seed" in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 212 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 380 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 235 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 319 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.lives++; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { } }
Instance of Symbol 262 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 235 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 380 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 379 MovieClip "ground" in Symbol 380 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 349 MovieClip "tsb1" in Symbol 385 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._yscale = 100; } vReset(); }
Instance of Symbol 376 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 317 MovieClip "player" in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 376 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 343 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -100; } if (this._x < (_parent.player._x - 10)) { this._xscale = 100; } }
Instance of Symbol 381 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { flag = 0; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -66; } if (this._x < (_parent.player._x - 10)) { this._xscale = 66; } if (_parent.player.hitMask.hitTest(this) && (flag < 9)) { if (flag == 0) { _root.dWindow.open(1, "You got past those other ghosts, but you won't get past the Master Onineeko."); flag = 1; } if (flag == 1) { if (_root.dWindow.goNext) { flag = 2; } } if (flag == 2) { _root.dWindow.open(1, "The only way to stop him is to ring the Shrine Bell. It takes two people to ring it."); flag = 3; } if (flag == 3) { if (_root.dWindow.goNext) { flag = 4; } } if (flag == 4) { _root.dWindow.open(5, "I guess that means it will take both of us to stop the.. *ulp* .. ghosts?"); flag = 5; } if (flag == 5) { if (_root.dWindow.goNext) { flag = 6; } } if (flag == 6) { _root.dWindow.open(4, "Come on Milo, we have to find out who's behind these attacks..."); flag = 7; } if (flag == 7) { if (_root.dWindow.goNext) { flag = 9; } _root.dWindow.goNext = false; } } }
Instance of Symbol 382 MovieClip "mil" in Symbol 386 MovieClip Frame 1
onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -80; } if (this._x < (_parent.player._x - 10)) { this._xscale = 80; } }
Instance of Symbol 274 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 100; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 279 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.arrows = _parent.player.arrows + 15; s.start(); _parent.player.bow._visible = true; _parent.player.doneShoot = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 160 MovieClip "seed" in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 212 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 386 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 355 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 344 MovieClip "fl1" in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndStop("idle"); this._visible = false; } function grow() { this._visible = true; this.gotoAndPlay(2); } function vineClear() { _parent.ground.tsb1._yscale = 0; _parent.th1._yscale = 0; } vReset(); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 345 MovieClip "th1" in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 10; this._yscale = 100; } vReset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } if (this.hitTest(_parent.seed)) { _parent.fl1.grow(); } }
Instance of Symbol 235 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 386 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 262 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 385 MovieClip "ground" in Symbol 386 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 394 MovieClip Frame 20
gotoAndPlay (1);
Symbol 394 MovieClip Frame 21
attPwr = 0;
Symbol 394 MovieClip Frame 35
this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200;
Symbol 394 MovieClip Frame 36
stop();
Symbol 395 MovieClip Frame 20
gotoAndPlay (1);
Symbol 395 MovieClip Frame 21
attPwr = 0;
Symbol 395 MovieClip Frame 35
this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200;
Symbol 395 MovieClip Frame 36
stop();
Symbol 408 MovieClip Frame 10
gotoAndPlay (1);
Symbol 408 MovieClip Frame 11
stop();
Symbol 408 MovieClip Frame 12
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 17
gotoAndPlay (6);
Symbol 421 MovieClip Frame 1
stop(); shutter = true; alreadyRung = false;
Symbol 421 MovieClip Frame 2
mRope.gotoAndPlay(2); pullStart = true;
Symbol 421 MovieClip Frame 10
stop(); shutter = false;
Symbol 421 MovieClip Frame 15
mRope.gotoAndStop(1);
Symbol 421 MovieClip Frame 20
_root.world.oni.moveToShock = true; gotoAndStop (1);
Symbol 421 MovieClip Frame 45
gotoAndPlay (11);
Instance of Symbol 263 MovieClip "endBlock" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 160 MovieClip "seed" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 317 MovieClip "player" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 393 MovieClip "beam" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.stop(); active = false; this._visible = false; this._x = startX; this._y = startY; shockCount = 0; shockLimit = 300; this._rotation = 0; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (_parent.player.actionLock == false) { if (active) { this.play(); this._visible = true; this._rotation = this._rotation + 2.5; this._x = _parent.oni._x; this._y = _parent.oni._y; shockCount++; if (this.hitMask.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, true) && (_parent.player.wincing == false)) { _parent.player.getHit(20, this._x, 14, false); } } if (shockCount == shockLimit) { active = false; this.stop(); this._x = startX; this._y = startY; this._rotation = 0; shockCount = 0; _parent.oni.move = true; _parent.oni.goSummon = true; } } }
Instance of Symbol 394 MovieClip "g3" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 8; maxDrift = 12; hDrift = 0; hDriftCounter = 4; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 395 MovieClip "g2" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 1; maxDrift = 12; hDrift = 0; hDriftCounter = 1; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip "g1" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 408 MovieClip "oni" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._x = startX; this._y = startY; gotoAndPlay (1); floatSpeed = 4; origin = this._x; floatPosition = 0; maxFloat = 225; floatDirection = -1; move = true; tollOffset = 60; tollCount = 60; tollOdd = true; tolling = false; moveToShock = false; goSummon = false; summonCount = 0; summonDelay = 90; dead = false; hp = 100; _root.bossGage.bar._xscale = hp; } function getHit() { hp = hp - 25; if (0 >= hp) { hp = 0; } _root.bossGage.bar._xscale = hp; } function shockNow() { moveToShock = false; move = false; _parent.beam.active = true; s.start(0, 3); } function summon() { h.start(); this.move = false; this.gotoAndStop("shock"); _parent.g1.vReset(); _parent.g2.vReset(); _parent.g3.vReset(); _parent.shrine.pullStart = false; } function die() { dead = true; this.gotoAndStop("wince"); stop(); _root.bossGage._visible = false; _parent.player.score = _parent.player.score + 100; } h = new Sound(this); h.attachSound("heh"); s = new Sound(this); s.attachSound("bolt"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (dead && (0 < this._alpha)) { this._alpha = this._alpha - 1; } if (dead && (0 >= this._alpha)) { _parent.endBlock.tally = true; } if ((dead == false) && (_parent.player.dead == false)) { if (_parent.player.actionLock == false) { if (move) { floatPosition = floatPosition + (floatSpeed * floatDirection); this._x = origin + floatPosition; if ((maxFloat * -1) >= floatPosition) { floatDirection = 1; this._xscale = -100; } if (floatPosition >= maxFloat) { floatDirection = -1; this._xscale = 100; } } if ((floatPosition == 0) && (moveToShock == true)) { shockNow(); } if (tolling) { this.gotoAndStop("wince"); move = false; if (tollOdd) { this._x = (origin + floatPosition) - tollCount; tollOdd = false; } else { this._x = (origin + floatPosition) + tollCount; tollOdd = true; } tollCount = tollCount - 1; if (tollCount == 0) { move = true; tolling = false; gotoAndPlay (1); tollCount = tollOffset; if (0 >= hp) { die(); } } } if (goSummon) { summonCount++; if (summonCount == summonDelay) { summon(); } if (summonCount == (summonDelay + 30)) { move = true; this.gotoAndPlay(1); goSummon = false; summonCount = 0; } } } } }
Instance of Symbol 421 MovieClip "shrine" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function vReset() { shutter = true; pullCount = 0; pullLimit = 120; pullStart = false; tolling = false; alreadyRung = false; this.gotoAndStop(1); mRope.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((0 >= ((_parent.g1.hp + _parent.g2.hp) + _parent.g3.hp)) && (this.pullStart == false)) { this.gotoAndPlay(2); } if (alreadyRung == false) { if ((shutter == false) && (this.hitTest(_parent.player.attMask))) { this.gotoAndPlay(21); if (_parent.oni.tolling == false) { _parent.oni.getHit(); alreadyRung = true; } _parent.oni.tolling = true; } } if (shutter == false) { pullCount++; if (pullCount == pullLimit) { pullCount = 0; this.gotoAndPlay(11); } } }
Instance of Symbol 212 MovieClip in Symbol 428 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 428 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 236 MovieClip in Symbol 428 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -60; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 427 MovieClip "ground" in Symbol 428 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 376 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 317 MovieClip "player" in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 376 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 343 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -100; } if (this._x < (_parent.player._x - 10)) { this._xscale = 100; } }
Instance of Symbol 381 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { flag = 0; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -66; } if (this._x < (_parent.player._x - 10)) { this._xscale = 66; } if (_parent.player.hitMask.hitTest(this) && (flag < 9)) { if (flag == 0) { _root.dWindow.open(1, "You got past those other ghosts, but you won't get past the Master Onineeko."); flag = 1; } if (flag == 1) { if (_root.dWindow.goNext) { flag = 2; } } if (flag == 2) { _root.dWindow.open(1, "The only way to stop him is to ring the Shrine Bell. It takes two people to ring it."); flag = 3; } if (flag == 3) { if (_root.dWindow.goNext) { flag = 4; } } if (flag == 4) { _root.dWindow.open(5, "I guess that means it will take both of us to stop the.. *ulp* .. ghosts?"); flag = 5; } if (flag == 5) { if (_root.dWindow.goNext) { flag = 6; } } if (flag == 6) { _root.dWindow.open(4, "Come on Milo, we have to find out who's behind these attacks..."); flag = 7; } if (flag == 7) { if (_root.dWindow.goNext) { flag = 9; } _root.dWindow.goNext = false; } } }
Instance of Symbol 382 MovieClip "mil" in Symbol 429 MovieClip Frame 1
onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -80; } if (this._x < (_parent.player._x - 10)) { this._xscale = 80; } }
Instance of Symbol 274 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 100; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 279 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.arrows = _parent.player.arrows + 15; s.start(); _parent.player.bow._visible = true; _parent.player.doneShoot = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 160 MovieClip "seed" in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 212 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 429 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 355 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 344 MovieClip "fl1" in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndStop("idle"); this._visible = false; } function grow() { this._visible = true; this.gotoAndPlay(2); } function vineClear() { _parent.ground.tsb1._yscale = 0; _parent.th1._yscale = 0; } vReset(); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 345 MovieClip "th1" in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 10; this._yscale = 100; } vReset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } if (this.hitTest(_parent.seed)) { _parent.fl1.grow(); } }
Instance of Symbol 235 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 429 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 262 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 385 MovieClip "ground" in Symbol 429 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 376 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 355 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 275 MovieClip "player" in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 274 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 100; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 160 MovieClip "seed" in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 212 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 430 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 235 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 319 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.lives++; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { } }
Instance of Symbol 262 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 235 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 430 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 379 MovieClip "ground" in Symbol 430 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 353 MovieClip "fl2" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndStop("idle"); this._visible = false; } function grow() { this._visible = true; this.gotoAndPlay(2); } function vineClear() { _parent.ground.tsb2._yscale = 0; _parent.th2._yscale = 0; } vReset(); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 354 MovieClip "th2" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 10; this._yscale = 100; } vReset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } if (this.hitTest(_parent.seed)) { _parent.fl2.grow(); } }
Instance of Symbol 144 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 25; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 317 MovieClip "player" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 355 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 316 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 356 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 60; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 60; goFight = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 600; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (attackTarget < this._x) { this._xscale = 100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if (stunned == false) { if (goFight) { hVelocity = speed * -1; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { hVelocity = speed; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (waitTimer == waitDelay) { waitTimer = 0; goFight = true; attackTarget = _parent.player._x; } else { waitTimer++; } prevPose = pose; if (grounded) { if (goFight) { if (attacking) { pose = "attack"; } else { pose = "run"; if (this._xscale == 100) { this.hVelocity = speed * -1; } if (this._xscale == -100) { this.hVelocity = speed; } } } else { pose = "stand"; hVelocity = 0; stunned = false; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else { pose = "jump"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } else { _parent.player.getHit(touchAttack, this._x, 14, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (goFight && (grounded)) { if (Math.abs(_parent.player._x - this._x) < 200) { attacking = true; } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 357 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -100; } if (this._x < (_parent.player._x - 10)) { this._xscale = 100; } if (_parent.player.hitMask.hitTest(this) && (active)) { _root.dWindow.open(2, "The woods get pretty misty up ahead."); active = false; } }
Instance of Symbol 356 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 60; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 60; goFight = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 600; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (attackTarget < this._x) { this._xscale = 100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if (stunned == false) { if (goFight) { hVelocity = speed * -1; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { hVelocity = speed; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (waitTimer == waitDelay) { waitTimer = 0; goFight = true; attackTarget = _parent.player._x; } else { waitTimer++; } prevPose = pose; if (grounded) { if (goFight) { if (attacking) { pose = "attack"; } else { pose = "run"; if (this._xscale == 100) { this.hVelocity = speed * -1; } if (this._xscale == -100) { this.hVelocity = speed; } } } else { pose = "stand"; hVelocity = 0; stunned = false; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else { pose = "jump"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } else { _parent.player.getHit(touchAttack, this._x, 14, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (goFight && (grounded)) { if (Math.abs(_parent.player._x - this._x) < 200) { attacking = true; } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 356 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 60; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 60; goFight = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 600; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (attackTarget < this._x) { this._xscale = 100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if (stunned == false) { if (goFight) { hVelocity = speed * -1; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { hVelocity = speed; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (waitTimer == waitDelay) { waitTimer = 0; goFight = true; attackTarget = _parent.player._x; } else { waitTimer++; } prevPose = pose; if (grounded) { if (goFight) { if (attacking) { pose = "attack"; } else { pose = "run"; if (this._xscale == 100) { this.hVelocity = speed * -1; } if (this._xscale == -100) { this.hVelocity = speed; } } } else { pose = "stand"; hVelocity = 0; stunned = false; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else { pose = "jump"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } else { _parent.player.getHit(touchAttack, this._x, 14, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (goFight && (grounded)) { if (Math.abs(_parent.player._x - this._x) < 200) { attacking = true; } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 108 MovieClip "enar2" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 358 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = false; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar2.activateLeft(this._x, this._y); } else { _parent.enar2.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 160 MovieClip "seed" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 108 MovieClip "enar1" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 305 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = false; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar1.activateLeft(this._x, this._y); } else { _parent.enar1.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 212 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 344 MovieClip "fl1" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndStop("idle"); this._visible = false; } function grow() { this._visible = true; this.gotoAndPlay(2); } function vineClear() { _parent.ground.tsb1._yscale = 0; _parent.th1._yscale = 0; } vReset(); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 345 MovieClip "th1" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 10; this._yscale = 100; } vReset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } if (this.hitTest(_parent.seed)) { _parent.fl1.grow(); } }
Instance of Symbol 355 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 355 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 262 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 235 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 237 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -42; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 248 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -40; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 363 MovieClip "ground" in Symbol 431 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 316 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 316 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 274 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 100; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 214 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 279 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.arrows = _parent.player.arrows + 15; s.start(); _parent.player.bow._visible = true; _parent.player.doneShoot = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 108 MovieClip "enar1" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 161 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar1.activateLeft(this._x, this._y); } else { _parent.enar1.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 317 MovieClip "player" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 319 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.lives++; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { } }
Instance of Symbol 320 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -66; } if (this._x < (_parent.player._x - 10)) { this._xscale = 66; } if (_parent.player.hitMask.hitTest(this) && (active)) { _root.dWindow.open(1, "This Sword Vine looks pretty sharp, but you look like you have tough armor..."); active = false; } }
Instance of Symbol 160 MovieClip "seed" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 212 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 323 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { attackPwr = 8; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 262 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 337 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(33); firstSeed = true; s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); if (firstSeed) { _root.dWindow.open(3, "You got a Blaze Blossom! Press 'S' to throw it! Use it wisely!"); firstSeed = false; } } }
Instance of Symbol 323 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { attackPwr = 8; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 341 MovieClip "mil" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { flag = 0; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -80; } if (this._x < (_parent.player._x - 10)) { this._xscale = 80; } if (_parent.player.hitMask.hitTest(this) && (flag < 9)) { if (flag == 0) { _root.dWindow.open(5, "I've found one of the King's couriers!"); flag = 1; } if (flag == 1) { if (_root.dWindow.goNext) { flag = 2; } } if (flag == 2) { _root.dWindow.open(2, "This Sword Vine has overgrown the path. We need to find a way through"); flag = 3; } if (flag == 3) { if (_root.dWindow.goNext) { flag = 9; } _root.dWindow.goNext = false; } } }
Instance of Symbol 343 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -100; } if (this._x < (_parent.player._x - 10)) { this._xscale = 100; } }
Instance of Symbol 344 MovieClip "fl1" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndStop("idle"); this._visible = false; } function grow() { this._visible = true; this.gotoAndPlay(2); } function vineClear() { _parent.ground.tsb1._yscale = 0; _parent.th1._yscale = 0; } vReset(); s = new Sound(this); s.attachSound("seedP"); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.hasSeed == false)) { _parent.player.hasSeed = true; s.start(); } }
Instance of Symbol 345 MovieClip "th1" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 10; this._yscale = 100; } vReset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } if (this.hitTest(_parent.seed)) { _parent.fl1.grow(); } }
Instance of Symbol 235 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 338 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 338 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) { attackPwr = 9; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackpwr, this._x, 14, true); } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 351 MovieClip "ground" in Symbol 432 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 274 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 100; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 108 MovieClip "enar3" in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 137 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar3.activateLeft(this._x, this._y); } else { _parent.enar3.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 144 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 25; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 275 MovieClip "player" in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 277 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { flag = 0; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -66; } if (this._x < (_parent.player._x - 10)) { this._xscale = 66; } if (_parent.player.hitMask.hitTest(this) && (flag < 9)) { if (flag == 0) { _root.dWindow.open(1, "Blaze Blossoms grow in this forest. The flowers burst into flame when they bloom."); flag = 1; } if (flag == 1) { if (_root.dWindow.goNext) { flag = 2; } } if (flag == 2) { _root.dWindow.open(1, "They only grow where there's lots of Sword Vine, which burns up when the flowers sprout."); flag = 3; } if (flag == 3) { if (_root.dWindow.goNext) { flag = 9; } _root.dWindow.goNext = false; } } }
Instance of Symbol 148 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 148 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 108 MovieClip "enar2" in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 149 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar2.activateLeft(this._x, this._y); } else { _parent.enar2.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 148 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 148 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 148 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 279 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.arrows = _parent.player.arrows + 15; s.start(); _parent.player.bow._visible = true; _parent.player.doneShoot = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 304 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 60; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 60; goFight = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 600; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (attackTarget < this._x) { this._xscale = 100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if (stunned == false) { if (goFight) { hVelocity = speed * -1; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { hVelocity = speed; } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (waitTimer == waitDelay) { waitTimer = 0; goFight = true; attackTarget = _parent.player._x; } else { waitTimer++; } prevPose = pose; if (grounded) { if (goFight) { if (attacking) { pose = "attack"; } else { pose = "run"; if (this._xscale == 100) { this.hVelocity = speed * -1; } if (this._xscale == -100) { this.hVelocity = speed; } } } else { pose = "stand"; hVelocity = 0; stunned = false; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else { pose = "jump"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } else { _parent.player.getHit(touchAttack, this._x, 14, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (goFight && (grounded)) { if (Math.abs(_parent.player._x - this._x) < 200) { attacking = true; } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 108 MovieClip "enar1" in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 305 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = false; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar1.activateLeft(this._x, this._y); } else { _parent.enar1.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 160 MovieClip "seed" in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 212 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 433 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 306 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -66; } if (this._x < (_parent.player._x - 10)) { this._xscale = 66; } if (_parent.player.hitMask.hitTest(this) && (active)) { _root.dWindow.open(1, "There's dark magic in the forest, and not just the usual ghosts..."); active = false; } }
Instance of Symbol 262 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 235 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 235 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 433 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 314 MovieClip "ground" in Symbol 433 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 108 MovieClip "enar3" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 137 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar3.activateLeft(this._x, this._y); } else { _parent.enar3.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 144 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function vreset() { this.gotoAndStop(1); curePower = 25; this._x = startX; this._y = startY; curing = false; } function cure() { curing = true; s.start(); this.gotoAndPlay(2); _parent.player.hp = _parent.player.hp + curePower; if (100 < _parent.player.hp) { _parent.player.hp = 100; } _root.life.bar._xscale = _parent.player.hp; } s = new Sound(this); s.attachSound("sparkle"); startX = this._x; startY = this._y; vreset(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask) && (curing == false)) { cure(); } if (_root.fader.resetFlag) { vreset(); } if (curing == true) { this._x = _parent.player._x; this._y = _parent.player._y; } }
Instance of Symbol 148 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function vReset() { attackPwr = 12; hp = 20; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 9; this._x = startX; this._y = starty; stunned = false; speed = 8; jumpTimer = 0; jumpDelay = 20; goJump = false; dead = false; } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -14; grounded = false; } } r = new Sound(this); r.attachSound("raieetFast"); slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 500) { if (_parent.player.actionLock == false) { if (grounded) { this.gotoAndStop(1); stunned = false; } if (grounded == false) { if (stunned) { this.gotoAndStop(3); _parent.spang._y = _root.world.safeY; } if (stunned == false) { this.gotoAndStop(2); } } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 14, true); if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (jumpTimer == jumpDelay) { jumpTimer = 0; goJump = true; attackTarget = _parent.player._x; } else if (grounded) { hVelocity = 0; jumpTimer++; } if (attackTarget < this._x) { this._xscale = 80; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { if ((grounded == false) && (stunned == false)) { hVelocity = speed * -1; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = -80; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if ((grounded == false) && (stunned == false)) { hVelocity = speed; } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (goJump && (grounded)) { grounded = false; vVelocity = -40; goJump = false; r.start(); } if (this.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 108 MovieClip "enar2" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 149 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar2.activateLeft(this._x, this._y); } else { _parent.enar2.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 160 MovieClip "seed" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 108 MovieClip "enar1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function activateRight(orgX, orgY) { if (active == false) { bearing = "right"; this._xscale = 80; originX = orgX + 100; originY = orgY - 19; this._x = originX; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function activateLeft(orgX, orgY) { if (active == false) { bearing = "left"; this._xscale = -80; originX = orgX + 100; originY = orgY - 19; this._x = originX - 200; this._y = originY; active = true; spinOff = false; this._rotation = 0; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; spinOff = false; speed = speedSave; this._rotation = 0; } range = 500; speedSave = 40; speed = speedSave; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 29; active = false; bearing = right; this._x = returnX; this._y = returnY; spinOff = false; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } if (spinOff == false) { if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (_parent.player.pose == "roll") { spinOff = true; _parent.player.p.start(); } else { _parent.player.getHit(15, this._x, 5, true); deactivate(); } } } if (spinOff) { speed = 0; this._y = this._y + 20; this._x = this._x + ((speedSave / 4) * (_parent.player._xscale / 80)); this._rotation = this._rotation + 45; if (this._y >= _root.world.safeY) { deactivate(); } } } }
Instance of Symbol 161 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function vReset() { stationary = true; prevPose = ""; pose = "jumpDown"; attackPwr = 20; touchAttack = 8; hp = 40; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 8; speed = 7; maxArrow = 3; arrowCount = 0; fireCount = 0; fireDelay = 40; moveCount = 0; moveLimit = 45; jumpPower = -30; goMove = false; goShoot = true; shooting = false; moving = false; this._x = startX; this._y = starty; stunned = false; dead = false; } function shootArrow() { if (0 < this._xscale) { _parent.enar1.activateLeft(this._x, this._y); } else { _parent.enar1.activateRight(this._x, this._y); } } function die() { _parent.deathEffect._x = this._x; _parent.deathEffect._y = this._y; _parent.deathEffect.gotoAndPlay(2); _parent.deathEffect.s.start(); this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 400; dead = true; } function getHit(damage, xoff) { hp = hp - damage; stunned = true; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -15; this.hVelocity = 20; grounded = false; } else { this.vVelocity = -15; this.hVelocity = -20; grounded = false; } } slash = new Sound(this); slash.attachSound("slash2"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { if (this._x < _parent.player._x) { if (goShoot) { this._xscale = -80; } else { this._xscale = 80; } if ((-500 < (_parent.player._x - this._x)) && ((_parent.player._x - this._x) < 0)) { if (stunned == false) { if (moving) { hVelocity = speed * -1; } } } } else { if (goShoot) { this._xscale = 80; } else { this._xscale = -80; } if (((_parent.player._x - this._x) < 500) && (0 < (_parent.player._x - this._x))) { if (stunned == false) { if (moving) { hVelocity = speed; } } } } if (moving) { if (moveCount == moveLimit) { moveCount = 0; moving = false; goShoot = true; } else { moveCount++; if (stationary == false) { moving = true; hVelocity = (speed * -1) * (this._xscale / 80); } } } if ((shooting == false) && (moving == false)) { if (fireCount == fireDelay) { fireCount = 0; shooting = true; if (arrowCount == maxArrow) { arrowCount = 0; if (stationary == false) { moving = true; grounded = false; vVelocity = jumpPower; goShoot = false; } } } else { fireCount++; } } prevPose = pose; if (grounded) { if (moving) { pose = "run"; } else if (shooting) { pose = "shoot"; } else { pose = "stand"; stunned = false; hVelocity = 0; } } if (grounded == false) { if (stunned) { pose = "wince"; _parent.spang._y = _root.world.safeY; } else if (vVelocity < 0) { pose = "jumpUp"; } else { pose = "jumpDown"; } } if (pose != prevPose) { gotoAndPlay(pose); } if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 8, true); } else { _parent.player.getHit(touchAttack, this._x, 6, true); } if (_parent.player.invincible) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (this.hitMask.hitTest(_parent.player.attMask)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.arrow1)) { slash.start(); _parent.spang._y = this._y - (this._height / 2); _parent.spang._x = this._x; getHit(_parent.player.arrowPwr, _parent.player._x); } if (this.hitMask.hitTest(_parent.seed)) { getHit(_parent.seed.exPower, _parent.player._x); } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 208 MovieClip "player" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 20; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 15; } } } }
Instance of Symbol 212 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 222 MovieClip "mil" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { flag = 0; } onClipEvent (enterFrame) { if ((_parent.player._x + 10) < this._x) { this._xscale = -80; } if (this._x < (_parent.player._x - 10)) { this._xscale = 80; } if (_parent.player.hitMask.hitTest(this) && (flag < 9)) { if (flag == 0) { _root.dWindow.open(4, "I'll check out the road ahead. Milo, you go see if one of King Oblig's couriers is around."); flag = 1; } if (flag == 1) { if (_root.dWindow.goNext) { flag = 2; } } if (flag == 2) { _root.dWindow.open(5, "Ok *ulp* I just hope there's no ghosts..."); flag = 3; } if (flag == 3) { if (_root.dWindow.goNext) { flag = 9; } _root.dWindow.goNext = false; } } }
Instance of Symbol 235 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 236 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -60; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 237 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -42; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 248 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -40; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 262 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.seedPass = _parent.player.hasSeed; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 235 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -50; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 268 MovieClip "ground" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 160 MovieClip "seed" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = 1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX; this._y = originY; active = true; vVelocity = -15; } } function activateLeft() { if (active == false) { bearing = -1; originX = _parent.player._x + 20; originY = _parent.player._y - 49; this._x = originX - 40; this._y = originY; active = true; vVelocity = -15; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.hasSeed = false; } function explode() { _parent.explosion._x = this._x; _parent.explosion._y = this._y; _parent.explosion.gotoAndPlay(2); deactivate(); } range = 500; speed = 20; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = 1; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; exPower = 20; } onClipEvent (enterFrame) { if (active) { hVelocity = speed * bearing; vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { explode(); } else { this._x = this._x + hVelocity; } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; explode(); } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 317 MovieClip "player" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function sReset() { arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } hasSeed = _root.seedPass; lives = _root.lifePass; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = _root.hpPass; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = _root.hpPass; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function vReset() { arrows = 0; bow._visible = false; hasSeed = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = false; invincible = false; invMax = 450; invCount = invMax; _root.life.ibar._visible = false; _root.life.bar._xscale = 100; vVelocity = 0; hVelocity = 0; grounded = false; this._x = startX; this._y = startY; hp = 100; maxRun = 10; attackPwr = 20; arrowPwr = 8; jumpPwr = 40; gravity = 4; tVelocity = 30; doneAttack = true; doneShoot = true; doneThrow = true; countAttack = 0; countShoot = 0; countJump = 0; countThrow = 0; wincing = false; winceCount = 0; winceDelay = 60; wincePose = false; this._alpha = 100; } function getHit(damage, xoffset, knockBack, defensible) { if (dead == false) { if (pose == "roll") { if (defensible) { damageWas = damage; damage = 0; } if (invincible) { damage = 0; knockBack = 0; } } this.hp = this.hp - damage; if (hp < 0) { hp = 0; } this.vVelocity = -10; grounded = false; if (damageWas != 9) { if (_parent.player._x < xoffset) { this.hVelocity = knockBack * -1; } else { this.hVelocity = knockBack; } } _root.life.bar._xscale = hp; if (0 < damage) { wincing = true; winceTmp = 1; u.start(); wincePose = true; } else { p.start(); } } } function die() { _root.world.player._alpha = 100; dead = true; _root.world.player.gotoAndStop("ko"); lives--; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); u.attachSound("urg"); p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; sReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (actionLock == false)) { if (invincible) { if (invCount == invMax) { _root.life.ibar._visible = true; } invCount--; _root.life.ibar._xscale = (invCount / invMax) * 100; if (0 >= invCount) { invincible = false; _root.life.ibar._visible = false; _root.life.ibar._xscale = 100; invCount = invMax; } } if (wincing == true) { this._alpha = 75; winceCount++; if (winceCount == winceDelay) { wincing = false; winceCount = 0; this._alpha = 100; } } if (Key.isDown(Key.LEFT)) { _xscale = -80; } if (Key.isDown(Key.RIGHT)) { _xscale = 80; } if (Key.isDown(Key.SPACE)) { countAttack++; if (2 < countAttack) { countAttack = 2; } } else { countAttack = 0; } if (Key.isDown(65)) { countShoot++; if (2 < countShoot) { countShoot = 2; } } else { countShoot = 0; } if (Key.isDown(83)) { countThrow++; if (2 < countThrow) { countThrow = 2; } } else { countThrow = 0; } if (Key.isDown(Key.UP)) { countJump++; if (2 < countJump) { countJump = 2; } } else { countJump = 0; } prevPose = pose; pose = "stand"; if (Key.isDown(Key.DOWN)) { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "roll"; } else { pose = "duck"; } } else { if (Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) { pose = "run"; } if (vVelocity < 0) { pose = "jumpUp"; } if (0 < vVelocity) { pose = "jumpDown"; } if (hasSeed) { if ((countThrow == 1) || (doneThrow == false)) { pose = "throw"; } } if (0 < arrows) { if ((countShoot == 1) || (doneShoot == false)) { pose = "shoot"; } } if ((countAttack == 1) || (doneAttack == false)) { pose = "attack"; } if (wincePose) { pose = "wince"; } if (dead) { pose = "ko"; } } if (invincible) { pose = "roll"; } if (pose != prevPose) { gotoAndPlay(pose); } if (Key.isDown(Key.LEFT)) { if ((maxRun * -1) < hVelocity) { hVelocity--; } if (Key.isDown(Key.RIGHT)) { hVelocity++; } } if (Key.isDown(Key.RIGHT)) { if (hVelocity < maxRun) { hVelocity++; } } if ((countJump == 1) && (Key.isDown(Key.DOWN) == false)) { if (grounded) { vVelocity = jumpPwr * -1; grounded = false; } } if (Key.isDown(80)) { _root.dWindow.open(4, "Pause"); _root.jukebox.snd.setVolume(0); } if (Key.isDown(100)) { if ((maxNudge * -1) < screenNudge) { screenNudge = screenNudge - 20; _root.world._x = _root.world._x + 20; } } if (Key.isDown(102)) { if (screenNudge < maxNudge) { screenNudge = screenNudge + 20; _root.world._x = _root.world._x - 20; } } if (Key.isDown(101)) { _root.world._x = _root.world._x + screenNudge; screenNudge = 0; } if ((Key.isDown(Key.RIGHT) == false) && (Key.isDown(Key.LEFT) == false)) { if (-1 >= hVelocity) { hVelocity++; } if (hVelocity >= 1) { hVelocity--; } } if (grounded == false) { vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + 3, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, this._y + _parent._y, true)) { hVelocity = 0; } else { this._x = this._x + hVelocity; _root.world._x = _root.world._x + (hVelocity * -1); } if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { newY--; } grounded = true; vVelocity = 0; if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (340 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 15; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 393 MovieClip "beam" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.stop(); active = false; this._visible = false; this._x = startX; this._y = startY; shockCount = 0; shockLimit = 300; this._rotation = 0; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (_parent.player.actionLock == false) { if (active) { this.play(); this._visible = true; this._rotation = this._rotation + 2.5; this._x = _parent.oni._x; this._y = _parent.oni._y; shockCount++; if (this.hitMask.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, true) && (_parent.player.wincing == false)) { _parent.player.getHit(20, this._x, 14, false); } } if (shockCount == shockLimit) { active = false; this.stop(); this._x = startX; this._y = startY; this._rotation = 0; shockCount = 0; _parent.oni.move = true; _parent.oni.goSummon = true; } } }
Instance of Symbol 394 MovieClip "g3" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 8; maxDrift = 12; hDrift = 0; hDriftCounter = 4; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 395 MovieClip "g2" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 1; maxDrift = 12; hDrift = 0; hDriftCounter = 1; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 376 MovieClip "g1" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function vReset() { this.gotoAndPlay(1); attackPwr = 12; hp = 20; vVelocity = 0; hVelocity = 0; this._x = startX; this._y = starty; speed = 3; drift = 0; driftCounter = 6; maxDrift = 12; hDrift = 0; hDriftCounter = 3; maxHDrift = 8; dead = false; } function die() { this.gotoAndPlay("poof"); } function getHit(damage, xoff) { hp = hp - damage; if (0 >= hp) { hp = 0; die(); } if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 14; } else { this.vVelocity = -10; this.hVelocity = -14; } } h = new Sound(this); h.attachSound("heh"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((dead == false) && (_parent.player.dead == false)) { if (Math.abs(_parent.player._x - this._x) < 600) { if (_parent.player.actionLock == false) { attackTarget = _parent.player._x; if (this.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _parent.player.getHit(attackPwr, this._x, 5, false); if (_parent.player.invincible) { getHit(_parent.player.attackPwr * 2, _parent.player._x); } } if (attackTarget < this._x) { this._xscale = -100; if ((-500 < (attackTarget - this._x)) && ((attackTarget - this._x) < 0)) { hVelocity = speed * -1; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } else { this._xscale = 100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { hVelocity = speed; } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { hVelocity = 0; } } if (this._y < (_parent.player._y - 100)) { vVelocity = speed; } else { vVelocity = speed * -1; } if (this.hitTest(_parent.player.attMask)) { getHit(_parent.player.attackPwr, _parent.player._x); } if (this.hitTest(_parent.arrow1)) { getHit(_parent.player.arrowPwr, _parent.player._x); } drift = drift + driftCounter; if (maxDrift < drift) { driftCounter = -1; } if (drift < (maxDrift * -1)) { driftCounter = 1; } hDrift = hDrift + hDriftCounter; if (maxHDrift < hDrift) { hDriftCounter = -1; } if (hDrift < (maxHDrift * -1)) { hDriftCounter = 1; } this._y = this._y + (vVelocity + drift); this._x = this._x + (hVelocity + hDrift); if (_root.world.safeY < this._y) { this.die(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } } } }
Instance of Symbol 408 MovieClip "oni" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._x = startX; this._y = startY; gotoAndPlay (1); floatSpeed = 4; origin = this._x; floatPosition = 0; maxFloat = 225; floatDirection = -1; move = true; tollOffset = 60; tollCount = 60; tollOdd = true; tolling = false; moveToShock = false; goSummon = false; summonCount = 0; summonDelay = 90; dead = false; hp = 100; _root.bossGage.bar._xscale = hp; } function getHit() { hp = hp - 25; if (0 >= hp) { hp = 0; } _root.bossGage.bar._xscale = hp; } function shockNow() { moveToShock = false; move = false; _parent.beam.active = true; s.start(0, 3); } function summon() { h.start(); this.move = false; this.gotoAndStop("shock"); _parent.g1.vReset(); _parent.g2.vReset(); _parent.g3.vReset(); _parent.shrine.pullStart = false; } function die() { dead = true; this.gotoAndStop("wince"); stop(); _root.bossGage._visible = false; _parent.player.score = _parent.player.score + 100; } h = new Sound(this); h.attachSound("heh"); s = new Sound(this); s.attachSound("bolt"); startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (dead && (0 < this._alpha)) { this._alpha = this._alpha - 1; } if (dead && (0 >= this._alpha)) { _parent.endBlock.tally = true; } if ((dead == false) && (_parent.player.dead == false)) { if (_parent.player.actionLock == false) { if (move) { floatPosition = floatPosition + (floatSpeed * floatDirection); this._x = origin + floatPosition; if ((maxFloat * -1) >= floatPosition) { floatDirection = 1; this._xscale = -100; } if (floatPosition >= maxFloat) { floatDirection = -1; this._xscale = 100; } } if ((floatPosition == 0) && (moveToShock == true)) { shockNow(); } if (tolling) { this.gotoAndStop("wince"); move = false; if (tollOdd) { this._x = (origin + floatPosition) - tollCount; tollOdd = false; } else { this._x = (origin + floatPosition) + tollCount; tollOdd = true; } tollCount = tollCount - 1; if (tollCount == 0) { move = true; tolling = false; gotoAndPlay (1); tollCount = tollOffset; if (0 >= hp) { die(); } } } if (goSummon) { summonCount++; if (summonCount == summonDelay) { summon(); } if (summonCount == (summonDelay + 30)) { move = true; this.gotoAndPlay(1); goSummon = false; summonCount = 0; } } } } }
Instance of Symbol 421 MovieClip "shrine" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function vReset() { shutter = true; pullCount = 0; pullLimit = 120; pullStart = false; tolling = false; alreadyRung = false; this.gotoAndStop(1); mRope.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if ((0 >= ((_parent.g1.hp + _parent.g2.hp) + _parent.g3.hp)) && (this.pullStart == false)) { this.gotoAndPlay(2); } if (alreadyRung == false) { if ((shutter == false) && (this.hitTest(_parent.player.attMask))) { this.gotoAndPlay(21); if (_parent.oni.tolling == false) { _parent.oni.getHit(); alreadyRung = true; } _parent.oni.tolling = true; } } if (shutter == false) { pullCount++; if (pullCount == pullLimit) { pullCount = 0; this.gotoAndPlay(11); } } }
Instance of Symbol 212 MovieClip in Symbol 435 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.maxRun = 15; _parent.player.jumpPwr = 58; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 214 MovieClip in Symbol 435 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("c"); startX = this._x; startY = this._y; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this._x + _parent._x, this._y + _parent._y, false)) { _parent.player.invincible = true; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 218 MovieClip "deathEffect" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 220 MovieClip "arrow1" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function activateRight() { if (active == false) { bearing = "right"; this._xscale = 80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX; this._y = originY; active = true; } } function activateLeft() { if (active == false) { bearing = "left"; this._xscale = -80; originX = _parent.player._x + 100; originY = _parent.player._y - 29; this._x = originX - 200; this._y = originY; active = true; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.arrows--; if (_parent.player.arrows < 0) { _parent.player.arrows = 0; } } range = 500; speed = 60; returnX = 0; returnY = _root.world.safeY; originX = _parent.player._x + 100; originY = _parent.player._y - 49; active = false; bearing = right; } onClipEvent (enterFrame) { if (active) { if (bearing == "right") { this._x = this._x + speed; if ((originX + range) < this._x) { deactivate(); } } else { this._x = this._x - speed; if (this._x < ((originX - 200) - range)) { deactivate(); } } } }
Instance of Symbol 236 MovieClip in Symbol 435 MovieClip Frame 1
onClipEvent (load) { bounceHeight = -60; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false) && (0 < _parent.player.vVelocity)) { if (active == false) { this.gotoAndPlay(2); } } }
Instance of Symbol 263 MovieClip "endBlock" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); egStart = false; tally = false; active = true; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 4000; scorePlay = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y)) { _root.bossGage._visible = true; if (active) { _root.dWindow.open(5, "Gallan! Once I open the shrine, you ring the bell! We just have to watch out for the G..G..GYAAH!"); _root.jukebox.snd.stop(); egStart = true; active = false; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; _quality = "MEDIUM"; } if (((scoreDone + lifeDone) + heathDone) != 3) { _root.tboard._visible = true; _parent.player.actionLock = true; _parent.player.stop(); if (s1 < _parent.player.score) { s1 = s1 + 100; } else { scoreDone = 1; } if (s2 < ((_parent.player.lives - 1) * 1000)) { s2 = s2 + 50; } else { lifeDone = 1; } if (s3 < (_parent.player.hp * 10)) { s3 = s3 + 5; } else { healthDone = 1; } st = (s1 + s2) + s3; if (st < si) { sr = "Page"; } if ((st >= si) && (st < (si * 2))) { sr = "Squire"; } if ((st >= (si * 2)) && (st < (si * 3))) { sr = "Knight"; } if ((st >= (si * 3)) && (st < (si * 4))) { sr = "Hero"; } if (st >= (si * 4)) { sr = "Paladin"; } } st = (s1 + s2) + s3; } }
Instance of Symbol 427 MovieClip "ground" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }

Library Items

Symbol 1 Sound [urg]
Symbol 2 Sound [tink]
Symbol 3 Sound [swoosh2]
Symbol 4 Sound [sparkle]
Symbol 5 Sound [slash2]
Symbol 6 Sound [seedP]
Symbol 7 Sound [raieetFast]
Symbol 8 Sound [heh]
Symbol 9 Sound [flag]
Symbol 10 Sound [c]
Symbol 11 Sound [bolt]
Symbol 12 Sound [bell]Used by:421
Symbol 13 Sound [now]Used by:421
Symbol 14 Sound [door]Used by:421
Symbol 15 Sound [rar]Used by:304 356
Symbol 16 Sound [scoreTally]Used by:37
Symbol 17 Sound [ex3]Used by:158 337 344 353 355
Symbol 18 Sound [arw1]Used by:137 149 161 305 358
Symbol 19 Sound [cb]Used by:208 275 317
Symbol 20 Sound [airSwish2]Used by:47 55 62 208 275 317
Symbol 21 Sound [bounce]Used by:235 236 237 248
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:Timeline
Symbol 24 GraphicUsed by:Timeline
Symbol 25 FontUsed by:26
Symbol 26 EditableTextUses:25Used by:Timeline
Symbol 27 GraphicUsed by:28 270
Symbol 28 MovieClipUses:27Used by:30
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:28 29Used by:Timeline
Symbol 31 GraphicUsed by:Timeline
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:32Used by:Timeline
Symbol 34 GraphicUsed by:37
Symbol 35 SoundUsed by:37
Symbol 36 SoundUsed by:37
Symbol 37 MovieClipUses:34 35 36 16Used by:Timeline
Symbol 38 GraphicUsed by:39 40 349
Symbol 39 MovieClipUses:38Used by:41 57
Symbol 40 MovieClipUses:38Used by:41 57
Symbol 41 MovieClipUses:39 40Used by:Timeline
Symbol 42 FontUsed by:43 44 45 52 53 54 56
Symbol 43 TextUses:42Used by:47
Symbol 44 TextUses:42Used by:47
Symbol 45 TextUses:42Used by:47
Symbol 46 GraphicUsed by:47 55 62
Symbol 47 ButtonUses:43 44 45 46 20Used by:57
Symbol 48 GraphicUsed by:57
Symbol 49 GraphicUsed by:50 154 165 187 263 281
Symbol 50 MovieClipUses:49Used by:57 137 149 161 208 275 305 317 358 393
Symbol 51 GraphicUsed by:57
Symbol 52 TextUses:42Used by:55
Symbol 53 TextUses:42Used by:55
Symbol 54 TextUses:42Used by:55
Symbol 55 ButtonUses:52 53 54 46 20Used by:57
Symbol 56 TextUses:42Used by:57
Symbol 57 MovieClipUses:39 40 47 48 50 51 55 56Used by:Timeline
Symbol 58 FontUsed by:59 60 61
Symbol 59 EditableTextUses:58Used by:62
Symbol 60 EditableTextUses:58Used by:62
Symbol 61 EditableTextUses:58Used by:62
Symbol 62 ButtonUses:59 60 61 46 20Used by:71
Symbol 63 GraphicUsed by:71
Symbol 64 FontUsed by:65 66 67 68 69 86 87 88
Symbol 65 EditableTextUses:64Used by:71
Symbol 66 EditableTextUses:64Used by:71
Symbol 67 EditableTextUses:64Used by:71
Symbol 68 EditableTextUses:64Used by:71
Symbol 69 EditableTextUses:64Used by:71
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:62 63 65 66 67 68 69 70Used by:Timeline
Symbol 72 GraphicUsed by:74 93 337 344 353 355
Symbol 73 GraphicUsed by:74
Symbol 74 MovieClipUses:72 73Used by:Timeline
Symbol 75 GraphicUsed by:85 408
Symbol 76 GraphicUsed by:85 408
Symbol 77 GraphicUsed by:85 408
Symbol 78 GraphicUsed by:85
Symbol 79 GraphicUsed by:85 408
Symbol 80 GraphicUsed by:85 408
Symbol 81 GraphicUsed by:85 408
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:85 103
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:75 76 77 78 79 80 81 83 84Used by:Timeline
Symbol 86 EditableTextUses:64Used by:95
Symbol 87 EditableTextUses:64Used by:95
Symbol 88 EditableTextUses:64Used by:95
Symbol 89 GraphicUsed by:93
Symbol 90 GraphicUsed by:93
Symbol 91 GraphicUsed by:93
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClipUses:89 90 72 91 92Used by:95
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:86 87 88 93 94Used by:Timeline
Symbol 96 GraphicUsed by:103
Symbol 97 FontUsed by:98 99 104
Symbol 98 TextUses:97Used by:103
Symbol 99 EditableTextUses:97Used by:103
Symbol 100 FontUsed by:101
Symbol 101 TextUses:100Used by:103
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClipUses:96 83 98 99 101 102Used by:Timeline
Symbol 104 EditableTextUses:97Used by:106
Symbol 105 GraphicUsed by:106
Symbol 106 MovieClipUses:104 105Used by:Timeline
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:107Used by:269 315 352 364 431 432 433 434
Symbol 109 GraphicUsed by:137 149 161 305 358
Symbol 110 GraphicUsed by:137 149 161 305 358
Symbol 111 GraphicUsed by:137 149 161 305 358
Symbol 112 GraphicUsed by:137 149 161 305 358
Symbol 113 GraphicUsed by:137 149 161 305 358
Symbol 114 GraphicUsed by:137 149 161 305 358
Symbol 115 GraphicUsed by:137 149 161 305 358
Symbol 116 GraphicUsed by:137 149 161 305 358
Symbol 117 GraphicUsed by:137 149 161 305 358
Symbol 118 GraphicUsed by:137 149 161 305 358
Symbol 119 GraphicUsed by:137 149 161 305 358
Symbol 120 GraphicUsed by:137 149 161 305 358
Symbol 121 GraphicUsed by:137 149 161 305 358
Symbol 122 GraphicUsed by:137 149 161 305 358
Symbol 123 GraphicUsed by:137 149 161 305 358
Symbol 124 GraphicUsed by:137 149 161 305 358
Symbol 125 GraphicUsed by:137 149 161 305 358
Symbol 126 GraphicUsed by:137 149 161 305 358
Symbol 127 GraphicUsed by:137 149 161 305 358
Symbol 128 GraphicUsed by:137 149 161 305 358
Symbol 129 GraphicUsed by:137 149 161 305 358
Symbol 130 GraphicUsed by:137 149 161 305 358
Symbol 131 GraphicUsed by:137 149 161 305 358
Symbol 132 GraphicUsed by:137 149 161 305 358
Symbol 133 GraphicUsed by:137 149 161 305 358
Symbol 134 GraphicUsed by:137 149 161 305 358
Symbol 135 GraphicUsed by:137 149 161 305 358
Symbol 136 GraphicUsed by:137 149 161 305 358
Symbol 137 MovieClipUses:109 50 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 18 131 132 133 134 135 136Used by:269 315 433 434
Symbol 138 GraphicUsed by:144
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClipUses:139Used by:144 274
Symbol 141 GraphicUsed by:144 274
Symbol 142 GraphicUsed by:144 274
Symbol 143 GraphicUsed by:144 274
Symbol 144 MovieClipUses:138 140 141 142 143Used by:269 315 364 431 433 434
Symbol 145 GraphicUsed by:148 316
Symbol 146 GraphicUsed by:148 316
Symbol 147 GraphicUsed by:148 316
Symbol 148 MovieClipUses:145 146 147Used by:269 315 433 434
Symbol 149 MovieClipUses:109 50 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 18 131 132 133 134 135 136Used by:269 315 433 434
Symbol 150 GraphicUsed by:158
Symbol 151 GraphicUsed by:152 153 158
Symbol 152 MovieClipUses:151Used by:158
Symbol 153 MovieClipUses:151Used by:158
Symbol 154 MovieClipUses:49Used by:158
Symbol 155 GraphicUsed by:158
Symbol 156 GraphicUsed by:158
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:150 151 152 153 154 17 155 156 157Used by:269 315 352 364 380 386 428 429 430 431 432 433 434 435
Symbol 159 GraphicUsed by:160 336
Symbol 160 MovieClipUses:159Used by:269 315 352 364 380 386 428 429 430 431 432 433 434 435
Symbol 161 MovieClipUses:109 50 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 18 131 132 133 134 135 136Used by:269 352 432 434
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClipUses:162Used by:208 275 317
Symbol 164 GraphicUsed by:208 275 317
Symbol 165 MovieClipUses:49Used by:208 275 317
Symbol 166 GraphicUsed by:167 169
Symbol 167 MovieClipUses:166Used by:208 275 317
Symbol 168 GraphicUsed by:208 275 317
Symbol 169 MovieClipUses:166Used by:208 275 317
Symbol 170 GraphicUsed by:208 275 317
Symbol 171 GraphicUsed by:208 275 317
Symbol 172 GraphicUsed by:208 275 317
Symbol 173 GraphicUsed by:208 275 317
Symbol 174 GraphicUsed by:208 275 317
Symbol 175 GraphicUsed by:208 275 317
Symbol 176 GraphicUsed by:208 275 317
Symbol 177 GraphicUsed by:208 275 317
Symbol 178 GraphicUsed by:208 275 317
Symbol 179 GraphicUsed by:208 275 317
Symbol 180 GraphicUsed by:208 275 317
Symbol 181 GraphicUsed by:208 275 317
Symbol 182 GraphicUsed by:208 275 317
Symbol 183 GraphicUsed by:208 275 317
Symbol 184 GraphicUsed by:208 275 317
Symbol 185 GraphicUsed by:208 275 317
Symbol 186 GraphicUsed by:208 275 317
Symbol 187 MovieClipUses:49Used by:208 275 317
Symbol 188 GraphicUsed by:208 275 317
Symbol 189 GraphicUsed by:208 275 317
Symbol 190 GraphicUsed by:208 275 317
Symbol 191 GraphicUsed by:208 275 317
Symbol 192 GraphicUsed by:208 275 317
Symbol 193 GraphicUsed by:208 275 317
Symbol 194 GraphicUsed by:208 275 317
Symbol 195 GraphicUsed by:208 275 317
Symbol 196 GraphicUsed by:208 275 317
Symbol 197 GraphicUsed by:208 275 317
Symbol 198 GraphicUsed by:208 275 317
Symbol 199 GraphicUsed by:208 275 317
Symbol 200 GraphicUsed by:208 275 317
Symbol 201 GraphicUsed by:208 275 317
Symbol 202 GraphicUsed by:208 275 317
Symbol 203 GraphicUsed by:208 275 317
Symbol 204 GraphicUsed by:208 275 317
Symbol 205 GraphicUsed by:208 275 317
Symbol 206 GraphicUsed by:208 275 317
Symbol 207 GraphicUsed by:208 275 317
Symbol 208 MovieClipUses:163 164 165 167 168 169 170 171 172 50 173 174 175 176 177 178 179 180 181 182 183 20 184 185 186 187 188 189 190 191 192 193 19 194 195 196 197 198 199 200 201 202 203 204 205 206 207Used by:269 434
Symbol 209 GraphicUsed by:210
Symbol 210 MovieClipUses:209Used by:269 315 352 364 380 386 428 429 430 431 432 433 434 435
Symbol 211 GraphicUsed by:212
Symbol 212 MovieClipUses:211Used by:269 315 352 364 380 386 428 429 430 431 432 433 434 435
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClipUses:213Used by:269 315 352 364 380 386 428 429 430 431 432 433 434 435
Symbol 215 GraphicUsed by:216
Symbol 216 MovieClipUses:215Used by:218
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:216 217Used by:269 315 352 364 380 386 428 429 430 431 432 433 434 435
Symbol 219 GraphicUsed by:220
Symbol 220 MovieClipUses:219Used by:269 315 352 364 380 386 428 429 430 431 432 433 434 435
Symbol 221 GraphicUsed by:222 341 382
Symbol 222 MovieClipUses:221Used by:269 434
Symbol 223 BitmapUsed by:224 227
Symbol 224 GraphicUses:223Used by:225
Symbol 225 MovieClipUses:224Used by:269 315 352 364 431 432 433 434
Symbol 226 BitmapUsed by:227 241
Symbol 227 GraphicUses:226 223Used by:228
Symbol 228 MovieClipUses:227Used by:269 315 352 364 386 429 431 432 433 434
Symbol 229 BitmapUsed by:230 232 247 249 264 347 361 422
Symbol 230 GraphicUses:229Used by:231
Symbol 231 MovieClipUses:230Used by:269 315 352 364 380 386 429 430 431 432 433 434
Symbol 232 GraphicUses:229Used by:269 434
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:235 236 237 248
Symbol 235 MovieClipUses:234 21Used by:269 315 352 364 380 386 429 430 431 432 433 434
Symbol 236 MovieClipUses:234 21Used by:269 428 434 435
Symbol 237 MovieClipUses:234 21Used by:269 364 431 434
Symbol 238 BitmapUsed by:239
Symbol 239 GraphicUses:238Used by:240
Symbol 240 MovieClipUses:239Used by:269 315 352 364 380 386 428 429 430 431 432 433 434 435
Symbol 241 GraphicUses:226Used by:242
Symbol 242 MovieClipUses:241Used by:269 315 352 432 433 434
Symbol 243 GraphicUsed by:269 315 352 364 386 429 431 432 433 434
Symbol 244 BitmapUsed by:245 250
Symbol 245 GraphicUses:244Used by:246 265
Symbol 246 MovieClipUses:245Used by:269 315 364 380 386 428 429 430 431 433 434 435
Symbol 247 GraphicUses:229Used by:269 434
Symbol 248 MovieClipUses:234 21Used by:269 364 431 434
Symbol 249 GraphicUses:229Used by:269 434
Symbol 250 GraphicUses:244Used by:251
Symbol 251 MovieClipUses:250Used by:269 315 352 364 386 429 431 432 433 434
Symbol 252 BitmapUsed by:253 257 308 309 310 346 347 423 425
Symbol 253 GraphicUses:252Used by:269 434
Symbol 254 BitmapUsed by:255
Symbol 255 GraphicUses:254Used by:256 424
Symbol 256 MovieClipUses:255Used by:269 315 352 364 380 386 429 430 431 432 433 434
Symbol 257 GraphicUses:252Used by:258 259
Symbol 258 MovieClipUses:257Used by:269 315 364 380 386 429 430 431 433 434
Symbol 259 MovieClipUses:257Used by:269 315 352 364 380 386 429 430 431 432 433 434
Symbol 260 BitmapUsed by:261
Symbol 261 GraphicUses:260Used by:262 311
Symbol 262 MovieClipUses:261Used by:269 315 352 364 380 386 429 430 431 432 433 434
Symbol 263 MovieClipUses:49Used by:269 315 352 364 380 386 428 429 430 431 432 433 434 435
Symbol 264 GraphicUses:229Used by:269 434
Symbol 265 MovieClipUses:245Used by:269 315 352 364 380 428 430 431 432 433 434 435
Symbol 266 GraphicUsed by:269 434
Symbol 267 GraphicUsed by:268
Symbol 268 MovieClipUses:267Used by:269 434
Symbol 269 MovieClipUses:108 137 144 148 149 158 160 161 208 210 212 214 218 220 222 225 228 231 232 235 236 237 240 242 243 246 247 248 249 251 253 256 258 259 262 263 264 265 266 268Used by:Timeline
Symbol 270 MovieClipUses:27Used by:Timeline
Symbol 271 BitmapUsed by:272
Symbol 272 GraphicUses:271Used by:Timeline
Symbol 273 GraphicUsed by:274
Symbol 274 MovieClipUses:273 140 141 142 143Used by:315 352 380 386 429 430 432 433
Symbol 275 MovieClipUses:163 164 165 167 168 169 170 171 172 50 173 174 175 176 177 178 179 180 181 182 183 20 184 185 186 187 188 189 190 191 192 193 19 194 195 196 197 198 199 200 201 202 203 204 205 206 207Used by:315 380 430 433
Symbol 276 GraphicUsed by:277 306 320 381
Symbol 277 MovieClipUses:276Used by:315 433
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:278Used by:315 352 386 429 432 433
Symbol 280 GraphicUsed by:304 356
Symbol 281 MovieClipUses:49Used by:304 356
Symbol 282 GraphicUsed by:304 356
Symbol 283 GraphicUsed by:304 356
Symbol 284 GraphicUsed by:304 356
Symbol 285 GraphicUsed by:304 356
Symbol 286 GraphicUsed by:304 356
Symbol 287 GraphicUsed by:304 356
Symbol 288 GraphicUsed by:304 356
Symbol 289 GraphicUsed by:304 356
Symbol 290 GraphicUsed by:304 356
Symbol 291 GraphicUsed by:304 356
Symbol 292 GraphicUsed by:304 356
Symbol 293 GraphicUsed by:304 356
Symbol 294 GraphicUsed by:304 356
Symbol 295 GraphicUsed by:304 356
Symbol 296 GraphicUsed by:304 356
Symbol 297 GraphicUsed by:304 356
Symbol 298 GraphicUsed by:304 356
Symbol 299 GraphicUsed by:304 356
Symbol 300 GraphicUsed by:304 356
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClipUses:301Used by:304 356
Symbol 303 GraphicUsed by:304 356
Symbol 304 MovieClipUses:280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 15 299 300 302 303Used by:315 433
Symbol 305 MovieClipUses:109 50 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 18 131 132 133 134 135 136Used by:315 364 431 433
Symbol 306 MovieClipUses:276Used by:315 433
Symbol 307 GraphicUsed by:315 433
Symbol 308 GraphicUses:252Used by:315 433
Symbol 309 GraphicUses:252Used by:315 433
Symbol 310 GraphicUses:252Used by:315 433
Symbol 311 MovieClipUses:261Used by:315 352 364 380 386 429 430 431 432 433
Symbol 312 GraphicUsed by:315 433
Symbol 313 GraphicUsed by:314
Symbol 314 MovieClipUses:313Used by:315 433
Symbol 315 MovieClipUses:259 228 256 240 225 274 108 137 144 275 277 148 149 279 304 305 158 160 210 212 214 218 220 306 231 265 258 262 307 308 243 235 242 251 246 309 310 263 311 312 314Used by:Timeline
Symbol 316 MovieClipUses:145 146 147Used by:352 364 431 432
Symbol 317 MovieClipUses:163 164 165 167 168 169 170 171 172 50 173 174 175 176 177 178 179 180 181 182 183 20 184 185 186 187 188 189 190 191 192 193 19 194 195 196 197 198 199 200 201 202 203 204 205 206 207Used by:352 364 386 428 429 431 432 435
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:318Used by:352 380 430 432
Symbol 320 MovieClipUses:276Used by:352 432
Symbol 321 BitmapUsed by:322 339
Symbol 322 GraphicUses:321Used by:323 338 345 354
Symbol 323 MovieClipUses:322Used by:352 432
Symbol 324 GraphicUsed by:337 344 353 355
Symbol 325 GraphicUsed by:337 344 353 355
Symbol 326 GraphicUsed by:337 344 353 355
Symbol 327 GraphicUsed by:337 344 353 355
Symbol 328 GraphicUsed by:337 344 353 355
Symbol 329 GraphicUsed by:337 344 353 355
Symbol 330 GraphicUsed by:337 344 353 355
Symbol 331 GraphicUsed by:337 344 353 355
Symbol 332 GraphicUsed by:337 344 353 355
Symbol 333 GraphicUsed by:337 344 353 355
Symbol 334 GraphicUsed by:337 344 353 355
Symbol 335 GraphicUsed by:337 344 353 355
Symbol 336 MovieClipUses:159Used by:337 344 353 355
Symbol 337 MovieClipUses:324 325 72 326 327 17 328 329 330 331 332 333 334 335 336Used by:352 432
Symbol 338 MovieClipUses:322Used by:352 432
Symbol 339 GraphicUses:321Used by:340
Symbol 340 MovieClipUses:339Used by:352 364 386 429 431 432
Symbol 341 MovieClipUses:221Used by:352 432
Symbol 342 GraphicUsed by:343 357
Symbol 343 MovieClipUses:342Used by:352 386 429 432
Symbol 344 MovieClipUses:324 325 72 326 327 17 328 329 330 331 332 333 334 335 336Used by:352 364 386 429 431 432
Symbol 345 MovieClipUses:322Used by:352 364 386 429 431 432
Symbol 346 GraphicUses:252Used by:352 432
Symbol 347 GraphicUses:252 229Used by:352 432
Symbol 348 GraphicUsed by:351
Symbol 349 MovieClipUses:38Used by:351 363 385
Symbol 350 GraphicUsed by:351
Symbol 351 MovieClipUses:348 349 350Used by:352 432
Symbol 352 MovieClipUses:316 274 214 279 108 161 242 317 319 320 158 160 210 212 218 220 323 231 240 251 265 259 262 256 243 228 225 337 338 340 341 343 344 345 346 235 263 347 311 351Used by:Timeline
Symbol 353 MovieClipUses:324 325 72 326 327 17 328 329 330 331 332 333 334 335 336Used by:364 431
Symbol 354 MovieClipUses:322Used by:364 431
Symbol 355 MovieClipUses:324 325 72 326 327 17 328 329 330 331 332 333 334 335 336Used by:364 380 386 429 430 431
Symbol 356 MovieClipUses:280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 15 299 300 302 303Used by:364 431
Symbol 357 MovieClipUses:342Used by:364 431
Symbol 358 MovieClipUses:109 50 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 18 131 132 133 134 135 136Used by:364 431
Symbol 359 GraphicUsed by:364 386 429 431
Symbol 360 GraphicUsed by:364 431
Symbol 361 GraphicUses:229Used by:364 431
Symbol 362 GraphicUsed by:363
Symbol 363 MovieClipUses:349 362Used by:364 431
Symbol 364 MovieClipUses:353 354 144 317 355 316 356 357 108 358 158 160 305 210 212 214 218 220 344 345 340 231 246 258 259 262 256 243 235 359 251 360 240 225 237 248 311 263 361 265 228 363Used by:Timeline
Symbol 365 GraphicUsed by:376 394 395
Symbol 366 GraphicUsed by:376 394 395
Symbol 367 GraphicUsed by:376 394 395
Symbol 368 GraphicUsed by:376 394 395
Symbol 369 GraphicUsed by:376 394 395
Symbol 370 ShapeTweeningUsed by:376 394 395
Symbol 371 ShapeTweeningUsed by:376 394 395
Symbol 372 GraphicUsed by:376 394 395
Symbol 373 ShapeTweeningUsed by:376 394 395
Symbol 374 ShapeTweeningUsed by:376 394 395
Symbol 375 GraphicUsed by:376 394 395
Symbol 376 MovieClipUses:365 366 367 368 369 370 371 372 373 374 375Used by:380 386 428 429 430 435
Symbol 377 GraphicUsed by:380 430
Symbol 378 GraphicUsed by:379
Symbol 379 MovieClipUses:378Used by:380 430
Symbol 380 MovieClipUses:376 355 275 274 158 160 210 212 214 218 220 231 235 246 377 319 265 258 259 262 256 240 311 263 379Used by:Timeline
Symbol 381 MovieClipUses:276Used by:386 429
Symbol 382 MovieClipUses:221Used by:386 429
Symbol 383 GraphicUsed by:386 429
Symbol 384 GraphicUsed by:385
Symbol 385 MovieClipUses:349 384Used by:386 429
Symbol 386 MovieClipUses:231 243 376 317 343 381 382 274 279 158 160 210 212 214 218 220 355 340 344 345 251 246 240 228 235 359 383 259 311 256 263 258 262 385Used by:Timeline
Symbol 387 GraphicUsed by:393
Symbol 388 GraphicUsed by:393
Symbol 389 GraphicUsed by:393
Symbol 390 GraphicUsed by:393
Symbol 391 GraphicUsed by:393
Symbol 392 GraphicUsed by:393
Symbol 393 MovieClipUses:387 388 389 390 50 391 392Used by:428 435
Symbol 394 MovieClipUses:365 366 367 368 369 370 371 372 373 374 375Used by:428 435
Symbol 395 MovieClipUses:365 366 367 368 369 370 371 372 373 374 375Used by:428 435
Symbol 396 GraphicUsed by:408
Symbol 397 GraphicUsed by:408
Symbol 398 GraphicUsed by:408
Symbol 399 GraphicUsed by:408
Symbol 400 GraphicUsed by:408
Symbol 401 GraphicUsed by:408
Symbol 402 GraphicUsed by:408
Symbol 403 GraphicUsed by:408
Symbol 404 GraphicUsed by:408
Symbol 405 GraphicUsed by:408
Symbol 406 GraphicUsed by:408
Symbol 407 GraphicUsed by:408
Symbol 408 MovieClipUses:75 76 77 396 397 79 80 81 398 399 400 401 402 403 404 405 406 407Used by:428 435
Symbol 409 GraphicUsed by:415
Symbol 410 GraphicUsed by:415
Symbol 411 GraphicUsed by:415
Symbol 412 GraphicUsed by:415
Symbol 413 GraphicUsed by:415
Symbol 414 GraphicUsed by:415
Symbol 415 MovieClipUses:409 410 411 412 413 414Used by:421
Symbol 416 BitmapUsed by:417
Symbol 417 GraphicUses:416Used by:421
Symbol 418 GraphicUsed by:421
Symbol 419 BitmapUsed by:420
Symbol 420 GraphicUses:419Used by:421
Symbol 421 MovieClipUses:415 417 418 420 14 13 12Used by:428 435
Symbol 422 GraphicUses:229Used by:428 435
Symbol 423 GraphicUses:252Used by:428 435
Symbol 424 MovieClipUses:255Used by:428 435
Symbol 425 GraphicUses:252Used by:428 435
Symbol 426 GraphicUsed by:427
Symbol 427 MovieClipUses:426Used by:428 435
Symbol 428 MovieClipUses:263 158 160 317 393 394 395 376 408 421 210 212 214 218 220 265 422 240 236 423 246 424 425 427Used by:Timeline
Symbol 429 MovieClipUses:231 243 376 317 343 381 382 274 279 158 160 210 212 214 218 220 355 340 344 345 251 246 240 228 235 359 383 259 311 256 263 258 262 385Used by:Timeline
Symbol 430 MovieClipUses:376 355 275 274 158 160 210 212 214 218 220 231 235 246 377 319 265 258 259 262 256 240 311 263 379Used by:Timeline
Symbol 431 MovieClipUses:353 354 144 317 355 316 356 357 108 358 158 160 305 210 212 214 218 220 344 345 340 231 246 258 259 262 256 243 235 359 251 360 240 225 237 248 311 263 361 265 228 363Used by:Timeline
Symbol 432 MovieClipUses:316 274 214 279 108 161 242 317 319 320 158 160 210 212 218 220 323 231 240 251 265 259 262 256 243 228 225 337 338 340 341 343 344 345 346 235 263 347 311 351Used by:Timeline
Symbol 433 MovieClipUses:259 228 256 240 225 274 108 137 144 275 277 148 149 279 304 305 158 160 210 212 214 218 220 306 231 265 258 262 307 308 243 235 242 251 246 309 310 263 311 312 314Used by:Timeline
Symbol 434 MovieClipUses:108 137 144 148 149 158 160 161 208 210 212 214 218 220 222 225 228 231 232 235 236 237 240 242 243 246 247 248 249 251 253 256 258 259 262 263 264 265 266 268Used by:Timeline
Symbol 435 MovieClipUses:263 158 160 317 393 394 395 376 408 421 210 212 214 218 220 265 422 240 236 423 246 424 425 427Used by:Timeline

Instance Names

"m"Frame 1Symbol 23 MovieClip
"load"Frame 1Symbol 30 MovieClip
"jukebox"Frame 4Symbol 37 MovieClip
"warper"Frame 4Symbol 41 MovieClip
"fader"Frame 4Symbol 57 MovieClip
"tBoard"Frame 4Symbol 71 MovieClip
"bossGage"Frame 4Symbol 85 MovieClip
"dWindow"Frame 4Symbol 95 MovieClip
"life"Frame 4Symbol 103 MovieClip
"world"Frame 4Symbol 269 MovieClip
"white"Frame 4Symbol 270 MovieClip
"world"Frame 5Symbol 315 MovieClip
"world"Frame 6Symbol 352 MovieClip
"world"Frame 7Symbol 364 MovieClip
"world"Frame 8Symbol 380 MovieClip
"world"Frame 9Symbol 386 MovieClip
"world"Frame 10Symbol 428 MovieClip
"g"Symbol 30 MovieClip Frame 1Symbol 28 MovieClip
"hitMask"Symbol 57 MovieClip Frame 53Symbol 50 MovieClip
"bar"Symbol 85 MovieClip Frame 1Symbol 83 MovieClip
"portrait"Symbol 95 MovieClip Frame 1Symbol 93 MovieClip
"ibar"Symbol 103 MovieClip Frame 1Symbol 83 MovieClip
"bar"Symbol 103 MovieClip Frame 1Symbol 83 MovieClip
"hitMask"Symbol 137 MovieClip Frame 1Symbol 50 MovieClip
"hitMask"Symbol 149 MovieClip Frame 1Symbol 50 MovieClip
"hitMask"Symbol 158 MovieClip Frame 1Symbol 154 MovieClip
"hitMask"Symbol 161 MovieClip Frame 1Symbol 50 MovieClip
"hitMask"Symbol 208 MovieClip Frame 1Symbol 165 MovieClip
"bow"Symbol 208 MovieClip Frame 1Symbol 167 MovieClip
"bow"Symbol 208 MovieClip Frame 2Symbol 169 MovieClip
"hitMask"Symbol 208 MovieClip Frame 4Symbol 50 MovieClip
"attMask"Symbol 208 MovieClip Frame 27Symbol 187 MovieClip
"bow"Symbol 208 MovieClip Frame 32Symbol 167 MovieClip
"enar3"Symbol 269 MovieClip Frame 1Symbol 108 MovieClip
"enar2"Symbol 269 MovieClip Frame 1Symbol 108 MovieClip
"explosion"Symbol 269 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 269 MovieClip Frame 1Symbol 160 MovieClip
"enar1"Symbol 269 MovieClip Frame 1Symbol 108 MovieClip
"player"Symbol 269 MovieClip Frame 1Symbol 208 MovieClip
"spang"Symbol 269 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 269 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 269 MovieClip Frame 1Symbol 220 MovieClip
"mil"Symbol 269 MovieClip Frame 1Symbol 222 MovieClip
"endBlock"Symbol 269 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 269 MovieClip Frame 1Symbol 268 MovieClip
"hitMask"Symbol 275 MovieClip Frame 1Symbol 165 MovieClip
"bow"Symbol 275 MovieClip Frame 1Symbol 167 MovieClip
"bow"Symbol 275 MovieClip Frame 2Symbol 169 MovieClip
"hitMask"Symbol 275 MovieClip Frame 4Symbol 50 MovieClip
"attMask"Symbol 275 MovieClip Frame 27Symbol 187 MovieClip
"bow"Symbol 275 MovieClip Frame 32Symbol 167 MovieClip
"hitMask"Symbol 304 MovieClip Frame 1Symbol 281 MovieClip
"attMask"Symbol 304 MovieClip Frame 33Symbol 302 MovieClip
"hitMask"Symbol 305 MovieClip Frame 1Symbol 50 MovieClip
"enar3"Symbol 315 MovieClip Frame 1Symbol 108 MovieClip
"player"Symbol 315 MovieClip Frame 1Symbol 275 MovieClip
"enar2"Symbol 315 MovieClip Frame 1Symbol 108 MovieClip
"enar1"Symbol 315 MovieClip Frame 1Symbol 108 MovieClip
"explosion"Symbol 315 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 315 MovieClip Frame 1Symbol 160 MovieClip
"spang"Symbol 315 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 315 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 315 MovieClip Frame 1Symbol 220 MovieClip
"endBlock"Symbol 315 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 315 MovieClip Frame 1Symbol 314 MovieClip
"hitMask"Symbol 317 MovieClip Frame 1Symbol 165 MovieClip
"bow"Symbol 317 MovieClip Frame 1Symbol 167 MovieClip
"bow"Symbol 317 MovieClip Frame 2Symbol 169 MovieClip
"hitMask"Symbol 317 MovieClip Frame 4Symbol 50 MovieClip
"attMask"Symbol 317 MovieClip Frame 27Symbol 187 MovieClip
"bow"Symbol 317 MovieClip Frame 32Symbol 167 MovieClip
"tsb1"Symbol 351 MovieClip Frame 1Symbol 349 MovieClip
"enar1"Symbol 352 MovieClip Frame 1Symbol 108 MovieClip
"player"Symbol 352 MovieClip Frame 1Symbol 317 MovieClip
"explosion"Symbol 352 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 352 MovieClip Frame 1Symbol 160 MovieClip
"spang"Symbol 352 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 352 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 352 MovieClip Frame 1Symbol 220 MovieClip
"mil"Symbol 352 MovieClip Frame 1Symbol 341 MovieClip
"fl1"Symbol 352 MovieClip Frame 1Symbol 344 MovieClip
"th1"Symbol 352 MovieClip Frame 1Symbol 345 MovieClip
"endBlock"Symbol 352 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 352 MovieClip Frame 1Symbol 351 MovieClip
"hitMask"Symbol 356 MovieClip Frame 1Symbol 281 MovieClip
"attMask"Symbol 356 MovieClip Frame 33Symbol 302 MovieClip
"hitMask"Symbol 358 MovieClip Frame 1Symbol 50 MovieClip
"tsb2"Symbol 363 MovieClip Frame 1Symbol 349 MovieClip
"tsb1"Symbol 363 MovieClip Frame 1Symbol 349 MovieClip
"fl2"Symbol 364 MovieClip Frame 1Symbol 353 MovieClip
"th2"Symbol 364 MovieClip Frame 1Symbol 354 MovieClip
"player"Symbol 364 MovieClip Frame 1Symbol 317 MovieClip
"enar2"Symbol 364 MovieClip Frame 1Symbol 108 MovieClip
"explosion"Symbol 364 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 364 MovieClip Frame 1Symbol 160 MovieClip
"enar1"Symbol 364 MovieClip Frame 1Symbol 108 MovieClip
"spang"Symbol 364 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 364 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 364 MovieClip Frame 1Symbol 220 MovieClip
"fl1"Symbol 364 MovieClip Frame 1Symbol 344 MovieClip
"th1"Symbol 364 MovieClip Frame 1Symbol 345 MovieClip
"endBlock"Symbol 364 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 364 MovieClip Frame 1Symbol 363 MovieClip
"player"Symbol 380 MovieClip Frame 1Symbol 275 MovieClip
"explosion"Symbol 380 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 380 MovieClip Frame 1Symbol 160 MovieClip
"spang"Symbol 380 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 380 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 380 MovieClip Frame 1Symbol 220 MovieClip
"endBlock"Symbol 380 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 380 MovieClip Frame 1Symbol 379 MovieClip
"tsb1"Symbol 385 MovieClip Frame 1Symbol 349 MovieClip
"player"Symbol 386 MovieClip Frame 1Symbol 317 MovieClip
"mil"Symbol 386 MovieClip Frame 1Symbol 382 MovieClip
"explosion"Symbol 386 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 386 MovieClip Frame 1Symbol 160 MovieClip
"spang"Symbol 386 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 386 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 386 MovieClip Frame 1Symbol 220 MovieClip
"fl1"Symbol 386 MovieClip Frame 1Symbol 344 MovieClip
"th1"Symbol 386 MovieClip Frame 1Symbol 345 MovieClip
"endBlock"Symbol 386 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 386 MovieClip Frame 1Symbol 385 MovieClip
"hitMask"Symbol 393 MovieClip Frame 1Symbol 50 MovieClip
"mRope"Symbol 421 MovieClip Frame 1Symbol 415 MovieClip
"endBlock"Symbol 428 MovieClip Frame 1Symbol 263 MovieClip
"explosion"Symbol 428 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 428 MovieClip Frame 1Symbol 160 MovieClip
"player"Symbol 428 MovieClip Frame 1Symbol 317 MovieClip
"beam"Symbol 428 MovieClip Frame 1Symbol 393 MovieClip
"g3"Symbol 428 MovieClip Frame 1Symbol 394 MovieClip
"g2"Symbol 428 MovieClip Frame 1Symbol 395 MovieClip
"g1"Symbol 428 MovieClip Frame 1Symbol 376 MovieClip
"oni"Symbol 428 MovieClip Frame 1Symbol 408 MovieClip
"shrine"Symbol 428 MovieClip Frame 1Symbol 421 MovieClip
"spang"Symbol 428 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 428 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 428 MovieClip Frame 1Symbol 220 MovieClip
"endBlock"Symbol 428 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 428 MovieClip Frame 1Symbol 427 MovieClip
"player"Symbol 429 MovieClip Frame 1Symbol 317 MovieClip
"mil"Symbol 429 MovieClip Frame 1Symbol 382 MovieClip
"explosion"Symbol 429 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 429 MovieClip Frame 1Symbol 160 MovieClip
"spang"Symbol 429 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 429 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 429 MovieClip Frame 1Symbol 220 MovieClip
"fl1"Symbol 429 MovieClip Frame 1Symbol 344 MovieClip
"th1"Symbol 429 MovieClip Frame 1Symbol 345 MovieClip
"endBlock"Symbol 429 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 429 MovieClip Frame 1Symbol 385 MovieClip
"player"Symbol 430 MovieClip Frame 1Symbol 275 MovieClip
"explosion"Symbol 430 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 430 MovieClip Frame 1Symbol 160 MovieClip
"spang"Symbol 430 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 430 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 430 MovieClip Frame 1Symbol 220 MovieClip
"endBlock"Symbol 430 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 430 MovieClip Frame 1Symbol 379 MovieClip
"fl2"Symbol 431 MovieClip Frame 1Symbol 353 MovieClip
"th2"Symbol 431 MovieClip Frame 1Symbol 354 MovieClip
"player"Symbol 431 MovieClip Frame 1Symbol 317 MovieClip
"enar2"Symbol 431 MovieClip Frame 1Symbol 108 MovieClip
"explosion"Symbol 431 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 431 MovieClip Frame 1Symbol 160 MovieClip
"enar1"Symbol 431 MovieClip Frame 1Symbol 108 MovieClip
"spang"Symbol 431 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 431 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 431 MovieClip Frame 1Symbol 220 MovieClip
"fl1"Symbol 431 MovieClip Frame 1Symbol 344 MovieClip
"th1"Symbol 431 MovieClip Frame 1Symbol 345 MovieClip
"endBlock"Symbol 431 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 431 MovieClip Frame 1Symbol 363 MovieClip
"enar1"Symbol 432 MovieClip Frame 1Symbol 108 MovieClip
"player"Symbol 432 MovieClip Frame 1Symbol 317 MovieClip
"explosion"Symbol 432 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 432 MovieClip Frame 1Symbol 160 MovieClip
"spang"Symbol 432 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 432 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 432 MovieClip Frame 1Symbol 220 MovieClip
"mil"Symbol 432 MovieClip Frame 1Symbol 341 MovieClip
"fl1"Symbol 432 MovieClip Frame 1Symbol 344 MovieClip
"th1"Symbol 432 MovieClip Frame 1Symbol 345 MovieClip
"endBlock"Symbol 432 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 432 MovieClip Frame 1Symbol 351 MovieClip
"enar3"Symbol 433 MovieClip Frame 1Symbol 108 MovieClip
"player"Symbol 433 MovieClip Frame 1Symbol 275 MovieClip
"enar2"Symbol 433 MovieClip Frame 1Symbol 108 MovieClip
"enar1"Symbol 433 MovieClip Frame 1Symbol 108 MovieClip
"explosion"Symbol 433 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 433 MovieClip Frame 1Symbol 160 MovieClip
"spang"Symbol 433 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 433 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 433 MovieClip Frame 1Symbol 220 MovieClip
"endBlock"Symbol 433 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 433 MovieClip Frame 1Symbol 314 MovieClip
"enar3"Symbol 434 MovieClip Frame 1Symbol 108 MovieClip
"enar2"Symbol 434 MovieClip Frame 1Symbol 108 MovieClip
"explosion"Symbol 434 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 434 MovieClip Frame 1Symbol 160 MovieClip
"enar1"Symbol 434 MovieClip Frame 1Symbol 108 MovieClip
"player"Symbol 434 MovieClip Frame 1Symbol 208 MovieClip
"spang"Symbol 434 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 434 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 434 MovieClip Frame 1Symbol 220 MovieClip
"mil"Symbol 434 MovieClip Frame 1Symbol 222 MovieClip
"endBlock"Symbol 434 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 434 MovieClip Frame 1Symbol 268 MovieClip
"endBlock"Symbol 435 MovieClip Frame 1Symbol 263 MovieClip
"explosion"Symbol 435 MovieClip Frame 1Symbol 158 MovieClip
"seed"Symbol 435 MovieClip Frame 1Symbol 160 MovieClip
"player"Symbol 435 MovieClip Frame 1Symbol 317 MovieClip
"beam"Symbol 435 MovieClip Frame 1Symbol 393 MovieClip
"g3"Symbol 435 MovieClip Frame 1Symbol 394 MovieClip
"g2"Symbol 435 MovieClip Frame 1Symbol 395 MovieClip
"g1"Symbol 435 MovieClip Frame 1Symbol 376 MovieClip
"oni"Symbol 435 MovieClip Frame 1Symbol 408 MovieClip
"shrine"Symbol 435 MovieClip Frame 1Symbol 421 MovieClip
"spang"Symbol 435 MovieClip Frame 1Symbol 210 MovieClip
"deathEffect"Symbol 435 MovieClip Frame 1Symbol 218 MovieClip
"arrow1"Symbol 435 MovieClip Frame 1Symbol 220 MovieClip
"endBlock"Symbol 435 MovieClip Frame 1Symbol 263 MovieClip
"ground"Symbol 435 MovieClip Frame 1Symbol 427 MovieClip

Special Tags

Protect (24)Timeline Frame 131 bytes "..$1$PJ$yhLqZaFJWxgOuqdBvcz/h0."
ExportAssets (56)Timeline Frame 1Symbol 1 as "urg"
ExportAssets (56)Timeline Frame 1Symbol 2 as "tink"
ExportAssets (56)Timeline Frame 1Symbol 3 as "swoosh2"
ExportAssets (56)Timeline Frame 1Symbol 4 as "sparkle"
ExportAssets (56)Timeline Frame 1Symbol 5 as "slash2"
ExportAssets (56)Timeline Frame 1Symbol 6 as "seedP"
ExportAssets (56)Timeline Frame 1Symbol 7 as "raieetFast"
ExportAssets (56)Timeline Frame 1Symbol 8 as "heh"
ExportAssets (56)Timeline Frame 1Symbol 9 as "flag"
ExportAssets (56)Timeline Frame 1Symbol 10 as "c"
ExportAssets (56)Timeline Frame 1Symbol 11 as "bolt"
ExportAssets (56)Timeline Frame 1Symbol 12 as "bell"
ExportAssets (56)Timeline Frame 1Symbol 13 as "now"
ExportAssets (56)Timeline Frame 1Symbol 14 as "door"
ExportAssets (56)Timeline Frame 1Symbol 15 as "rar"
ExportAssets (56)Timeline Frame 1Symbol 16 as "scoreTally"
ExportAssets (56)Timeline Frame 1Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 1Symbol 18 as "arw1"
ExportAssets (56)Timeline Frame 1Symbol 19 as "cb"
ExportAssets (56)Timeline Frame 1Symbol 20 as "airSwish2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "bounce"
ExportAssets (56)Timeline Frame 4Symbol 16 as "scoreTally"
ExportAssets (56)Timeline Frame 4Symbol 20 as "airSwish2"
ExportAssets (56)Timeline Frame 4Symbol 20 as "airSwish2"
ExportAssets (56)Timeline Frame 4Symbol 20 as "airSwish2"
ExportAssets (56)Timeline Frame 4Symbol 18 as "arw1"
ExportAssets (56)Timeline Frame 4Symbol 18 as "arw1"
ExportAssets (56)Timeline Frame 4Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 4Symbol 18 as "arw1"
ExportAssets (56)Timeline Frame 4Symbol 20 as "airSwish2"
ExportAssets (56)Timeline Frame 4Symbol 19 as "cb"
ExportAssets (56)Timeline Frame 4Symbol 21 as "bounce"
ExportAssets (56)Timeline Frame 4Symbol 21 as "bounce"
ExportAssets (56)Timeline Frame 4Symbol 21 as "bounce"
ExportAssets (56)Timeline Frame 4Symbol 21 as "bounce"
ExportAssets (56)Timeline Frame 5Symbol 20 as "airSwish2"
ExportAssets (56)Timeline Frame 5Symbol 19 as "cb"
ExportAssets (56)Timeline Frame 5Symbol 15 as "rar"
ExportAssets (56)Timeline Frame 5Symbol 18 as "arw1"
ExportAssets (56)Timeline Frame 6Symbol 20 as "airSwish2"
ExportAssets (56)Timeline Frame 6Symbol 19 as "cb"
ExportAssets (56)Timeline Frame 6Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 6Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 6Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 6Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 6Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 6Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 7Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 7Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 7Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 7Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 7Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 7Symbol 17 as "ex3"
ExportAssets (56)Timeline Frame 7Symbol 15 as "rar"
ExportAssets (56)Timeline Frame 7Symbol 18 as "arw1"
ExportAssets (56)Timeline Frame 10Symbol 14 as "door"
ExportAssets (56)Timeline Frame 10Symbol 13 as "now"
ExportAssets (56)Timeline Frame 10Symbol 14 as "door"
ExportAssets (56)Timeline Frame 10Symbol 12 as "bell"

Labels

"A"Frame 9
"board"Symbol 37 MovieClip Frame 1
"endGuy"Symbol 37 MovieClip Frame 2
"warpIn"Symbol 41 MovieClip Frame 1
"off"Symbol 41 MovieClip Frame 11
"warpOut"Symbol 41 MovieClip Frame 12
"fadeIn"Symbol 57 MovieClip Frame 1
"off"Symbol 57 MovieClip Frame 11
"fadeOut"Symbol 57 MovieClip Frame 12
"gameOver"Symbol 57 MovieClip Frame 53
"run"Symbol 137 MovieClip Frame 2
"jumpUp"Symbol 137 MovieClip Frame 18
"jumpDown"Symbol 137 MovieClip Frame 19
"wince"Symbol 137 MovieClip Frame 20
"shoot"Symbol 137 MovieClip Frame 21
"run"Symbol 149 MovieClip Frame 2
"jumpUp"Symbol 149 MovieClip Frame 18
"jumpDown"Symbol 149 MovieClip Frame 19
"wince"Symbol 149 MovieClip Frame 20
"shoot"Symbol 149 MovieClip Frame 21
"run"Symbol 161 MovieClip Frame 2
"jumpUp"Symbol 161 MovieClip Frame 18
"jumpDown"Symbol 161 MovieClip Frame 19
"wince"Symbol 161 MovieClip Frame 20
"shoot"Symbol 161 MovieClip Frame 21
"stand"Symbol 208 MovieClip Frame 1
"jumpUp"Symbol 208 MovieClip Frame 2
"jumpDown"Symbol 208 MovieClip Frame 3
"wince"Symbol 208 MovieClip Frame 4
"run"Symbol 208 MovieClip Frame 5
"attack"Symbol 208 MovieClip Frame 25
"ko"Symbol 208 MovieClip Frame 31
"shoot"Symbol 208 MovieClip Frame 32
"duck"Symbol 208 MovieClip Frame 41
"roll"Symbol 208 MovieClip Frame 42
"throw"Symbol 208 MovieClip Frame 51
"stand"Symbol 275 MovieClip Frame 1
"jumpUp"Symbol 275 MovieClip Frame 2
"jumpDown"Symbol 275 MovieClip Frame 3
"wince"Symbol 275 MovieClip Frame 4
"run"Symbol 275 MovieClip Frame 5
"attack"Symbol 275 MovieClip Frame 25
"ko"Symbol 275 MovieClip Frame 31
"shoot"Symbol 275 MovieClip Frame 32
"duck"Symbol 275 MovieClip Frame 41
"roll"Symbol 275 MovieClip Frame 42
"throw"Symbol 275 MovieClip Frame 51
"stand"Symbol 304 MovieClip Frame 1
"jump"Symbol 304 MovieClip Frame 2
"wince"Symbol 304 MovieClip Frame 3
"run"Symbol 304 MovieClip Frame 4
"attack"Symbol 304 MovieClip Frame 19
"run"Symbol 305 MovieClip Frame 2
"jumpUp"Symbol 305 MovieClip Frame 18
"jumpDown"Symbol 305 MovieClip Frame 19
"wince"Symbol 305 MovieClip Frame 20
"shoot"Symbol 305 MovieClip Frame 21
"stand"Symbol 317 MovieClip Frame 1
"jumpUp"Symbol 317 MovieClip Frame 2
"jumpDown"Symbol 317 MovieClip Frame 3
"wince"Symbol 317 MovieClip Frame 4
"run"Symbol 317 MovieClip Frame 5
"attack"Symbol 317 MovieClip Frame 25
"ko"Symbol 317 MovieClip Frame 31
"shoot"Symbol 317 MovieClip Frame 32
"duck"Symbol 317 MovieClip Frame 41
"roll"Symbol 317 MovieClip Frame 42
"throw"Symbol 317 MovieClip Frame 51
"grow"Symbol 337 MovieClip Frame 1
"idle   "Symbol 337 MovieClip Frame 33
"grow"Symbol 344 MovieClip Frame 1
"idle   "Symbol 344 MovieClip Frame 33
"grow"Symbol 353 MovieClip Frame 1
"idle   "Symbol 353 MovieClip Frame 33
"grow"Symbol 355 MovieClip Frame 1
"idle   "Symbol 355 MovieClip Frame 33
"stand"Symbol 356 MovieClip Frame 1
"jump"Symbol 356 MovieClip Frame 2
"wince"Symbol 356 MovieClip Frame 3
"run"Symbol 356 MovieClip Frame 4
"attack"Symbol 356 MovieClip Frame 19
"run"Symbol 358 MovieClip Frame 2
"jumpUp"Symbol 358 MovieClip Frame 18
"jumpDown"Symbol 358 MovieClip Frame 19
"wince"Symbol 358 MovieClip Frame 20
"shoot"Symbol 358 MovieClip Frame 21
"float"Symbol 376 MovieClip Frame 1
"poof"Symbol 376 MovieClip Frame 21
"float"Symbol 394 MovieClip Frame 1
"poof"Symbol 394 MovieClip Frame 21
"float"Symbol 395 MovieClip Frame 1
"poof"Symbol 395 MovieClip Frame 21
"shock"Symbol 408 MovieClip Frame 11
"wince"Symbol 408 MovieClip Frame 12
"pull2"Symbol 415 MovieClip Frame 6
"pull"Symbol 415 MovieClip Frame 17

Dynamic Text Variables

_root.count1Symbol 26 EditableText"100"
_root.world.endBlock.srSymbol 65 EditableText"Paladin"
_root.world.endBlock.stSymbol 66 EditableText"10000"
_root.world.endBlock.s3Symbol 67 EditableText"10000"
_root.world.endBlock.s2Symbol 68 EditableText"10000"
_root.world.endBlock.s1Symbol 69 EditableText"10000"
_root.dWindow.messageSymbol 87 EditableText"Hey, you're a Knight of Serenity right?  Thank goodness you're here!  You've got to help us!"
_root.dWindow.messageSymbol 88 EditableText"Hey, you're a Knight of Serenity right?  Thank goodness you're here!  You've got to help us!"
_root.world.player.livesSymbol 99 EditableText"3"
_root.world.player.arrowsSymbol 104 EditableText"00"




http://swfchan.com/6/27522/info.shtml
Created: 21/5 -2019 10:43:13 Last modified: 21/5 -2019 10:43:13 Server time: 15/05 -2024 22:23:58