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

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

armadillo4.swf

This is the info page for
Flash #78737

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


Text
armadilloknight.com

Armadillo Knight is © Trent Halvorsen  All music is © Ethan Halvorsen  Do not redistribute.
If you do not see "armadilloknight.com" in your address bar this is an unauthorized copy.
You can play all levels of this game for FREE with NO ADS at:

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 40 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 73 MovieClip "tBoard" in Frame 4
onClipEvent (load) { this._visible = false; }
Instance of Symbol 76 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = true; } else { this._visible = false; } }
Instance of Symbol 87 MovieClip "bossGage" in Frame 4
onClipEvent (load) { this._visible = false; }
Instance of Symbol 97 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 108 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_parent.world.player.arrows == 0) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 274 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 275 MovieClip "white" in Frame 4
onClipEvent (load) { this._visible = false; }
Frame 5
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop();
Instance of Symbol 320 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 357 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 369 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 385 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 391 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 434 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 436 MovieClip in Frame 11
onClipEvent (load) { _root.white._visible = true; }
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 2
stop();
Symbol 40 MovieClip Frame 3
stop();
Symbol 44 MovieClip Frame 1
doorFlag = false;
Symbol 44 MovieClip Frame 11
stop(); this._visible = false;
Symbol 44 MovieClip Frame 12
this._visible = true;
Symbol 44 MovieClip Frame 39
_root.nextFrame(); doorFlag = true; this.gotoAndPlay("warpIn"); _root.white._visible = false;
Symbol 50 Button
on (release) { getURL ("doneDonate.html"); }
Symbol 58 Button
on (release) { _root.continueNow(); }
Symbol 60 MovieClip Frame 1
fadeType = "cont"; resetFlag = false;
Symbol 60 MovieClip Frame 11
stop(); this._visible = false;
Symbol 60 MovieClip Frame 12
this._visible = true;
Symbol 60 MovieClip Frame 37
if (fadeType == "cont") { resetFlag = true; }
Symbol 60 MovieClip Frame 39
resetFlag = false;
Symbol 60 MovieClip Frame 52
if (fadeType == "cont") { gotoAndPlay (1); } if (fadeType == "game") { gotoAndPlay (53); }
Symbol 60 MovieClip Frame 53
stop();
Symbol 64 Button
on (release) { _quality = "MEDIUM"; loadMovie ("d0805614.swf", _level0); }
Symbol 95 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 17
gotoAndPlay (2);
Symbol 142 MovieClip Frame 18
stop();
Symbol 142 MovieClip Frame 19
stop();
Symbol 142 MovieClip Frame 20
stop();
Symbol 142 MovieClip Frame 21
shooting = true;
Symbol 142 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 142 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 19
this._y = _root.world.safeY; curing = false;
Symbol 149 MovieClip Frame 20
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 3
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 17
gotoAndPlay (2);
Symbol 154 MovieClip Frame 18
stop();
Symbol 154 MovieClip Frame 19
stop();
Symbol 154 MovieClip Frame 20
stop();
Symbol 154 MovieClip Frame 21
shooting = true;
Symbol 154 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 154 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 10
this._y = _root.world.safeY;
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 17
gotoAndPlay (2);
Symbol 166 MovieClip Frame 18
stop();
Symbol 166 MovieClip Frame 19
stop();
Symbol 166 MovieClip Frame 20
stop();
Symbol 166 MovieClip Frame 21
shooting = true;
Symbol 166 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 166 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 172 MovieClip Frame 1
if (_parent.arrows == 0) { this._visible = false; } else { this._visible = true; }
Symbol 174 MovieClip Frame 1
if (_parent.arrows == 0) { this._visible = false; } else { this._visible = true; }
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
stop();
Symbol 213 MovieClip Frame 3
stop();
Symbol 213 MovieClip Frame 4
stop();
Symbol 213 MovieClip Frame 24
gotoAndPlay (5);
Symbol 213 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 192 MovieClip "attMask" in Symbol 213 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 213 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 213 MovieClip Frame 31
stop();
Symbol 213 MovieClip Frame 32
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 213 MovieClip Frame 40
stop(); doneShoot = true;
Symbol 213 MovieClip Frame 41
stop();
Symbol 213 MovieClip Frame 50
gotoAndPlay (42);
Symbol 213 MovieClip Frame 51
doneThrow = false;
Symbol 213 MovieClip Frame 54
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 213 MovieClip Frame 59
stop(); doneThrow = true;
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 20
this._y = _root.world.safeY; stop();
Symbol 240 MovieClip Frame 1
stop(); active = false;
Symbol 240 MovieClip Frame 2
active = true;
Symbol 240 MovieClip Frame 7
_root.world.player.vVelocity = this.bounceHeight;
Symbol 240 MovieClip Frame 11
gotoAndStop (1);
Symbol 241 MovieClip Frame 1
stop(); active = false;
Symbol 241 MovieClip Frame 2
active = true;
Symbol 241 MovieClip Frame 7
_root.world.player.vVelocity = this.bounceHeight;
Symbol 241 MovieClip Frame 11
gotoAndStop (1);
Symbol 242 MovieClip Frame 1
stop(); active = false;
Symbol 242 MovieClip Frame 2
active = true;
Symbol 242 MovieClip Frame 7
_root.world.player.vVelocity = this.bounceHeight;
Symbol 242 MovieClip Frame 11
gotoAndStop (1);
Symbol 253 MovieClip Frame 1
stop(); active = false;
Symbol 253 MovieClip Frame 2
active = true;
Symbol 253 MovieClip Frame 7
_root.world.player.vVelocity = this.bounceHeight;
Symbol 253 MovieClip Frame 11
gotoAndStop (1);
Instance of Symbol 113 MovieClip "enar3" in Symbol 274 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 142 MovieClip in Symbol 274 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 149 MovieClip in Symbol 274 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 153 MovieClip in Symbol 274 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 113 MovieClip "enar2" in Symbol 274 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 154 MovieClip in Symbol 274 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 165 MovieClip "seed" in Symbol 274 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 113 MovieClip "enar1" in Symbol 274 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 166 MovieClip in Symbol 274 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 213 MovieClip "player" in Symbol 274 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 217 MovieClip in Symbol 274 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 219 MovieClip in Symbol 274 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 223 MovieClip "deathEffect" in Symbol 274 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 274 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 227 MovieClip "mil" in Symbol 274 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 240 MovieClip in Symbol 274 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 241 MovieClip in Symbol 274 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 242 MovieClip in Symbol 274 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 253 MovieClip in Symbol 274 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 267 MovieClip in Symbol 274 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 240 MovieClip in Symbol 274 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 268 MovieClip "endBlock" in Symbol 274 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 273 MovieClip "ground" in Symbol 274 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 19
this._y = _root.world.safeY; curing = false;
Symbol 279 MovieClip Frame 20
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 280 MovieClip Frame 3
stop();
Symbol 280 MovieClip Frame 4
stop();
Symbol 280 MovieClip Frame 24
gotoAndPlay (5);
Symbol 280 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 192 MovieClip "attMask" in Symbol 280 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 280 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 280 MovieClip Frame 31
stop();
Symbol 280 MovieClip Frame 32
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 280 MovieClip Frame 40
stop(); doneShoot = true;
Symbol 280 MovieClip Frame 41
stop();
Symbol 280 MovieClip Frame 50
gotoAndPlay (42);
Symbol 280 MovieClip Frame 51
doneThrow = false;
Symbol 280 MovieClip Frame 54
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 280 MovieClip Frame 59
stop(); doneThrow = true;
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
stop();
Symbol 309 MovieClip Frame 3
stop();
Symbol 309 MovieClip Frame 18
gotoAndPlay (4);
Symbol 309 MovieClip Frame 37
attacking = false; goFight = false;
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 17
gotoAndPlay (2);
Symbol 310 MovieClip Frame 18
stop();
Symbol 310 MovieClip Frame 19
stop();
Symbol 310 MovieClip Frame 20
stop();
Symbol 310 MovieClip Frame 21
shooting = true;
Symbol 310 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 310 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Instance of Symbol 279 MovieClip in Symbol 320 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 113 MovieClip "enar3" in Symbol 320 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 142 MovieClip in Symbol 320 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 149 MovieClip in Symbol 320 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 280 MovieClip "player" in Symbol 320 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 282 MovieClip in Symbol 320 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 153 MovieClip in Symbol 320 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 153 MovieClip in Symbol 320 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 113 MovieClip "enar2" in Symbol 320 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 154 MovieClip in Symbol 320 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 153 MovieClip in Symbol 320 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 153 MovieClip in Symbol 320 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 153 MovieClip in Symbol 320 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 284 MovieClip in Symbol 320 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 309 MovieClip in Symbol 320 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 113 MovieClip "enar1" in Symbol 320 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 310 MovieClip in Symbol 320 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 165 MovieClip "seed" in Symbol 320 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 217 MovieClip in Symbol 320 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 219 MovieClip in Symbol 320 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 223 MovieClip "deathEffect" in Symbol 320 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 320 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 311 MovieClip in Symbol 320 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 267 MovieClip in Symbol 320 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 240 MovieClip in Symbol 320 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 240 MovieClip in Symbol 320 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 268 MovieClip "endBlock" in Symbol 320 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 319 MovieClip "ground" in Symbol 320 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
stop();
Symbol 321 MovieClip Frame 3
stop();
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 3
stop();
Symbol 322 MovieClip Frame 4
stop();
Symbol 322 MovieClip Frame 24
gotoAndPlay (5);
Symbol 322 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 192 MovieClip "attMask" in Symbol 322 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 322 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 322 MovieClip Frame 31
stop();
Symbol 322 MovieClip Frame 32
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 322 MovieClip Frame 40
stop(); doneShoot = true;
Symbol 322 MovieClip Frame 41
stop();
Symbol 322 MovieClip Frame 50
gotoAndPlay (42);
Symbol 322 MovieClip Frame 51
doneThrow = false;
Symbol 322 MovieClip Frame 54
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 322 MovieClip Frame 59
stop(); doneThrow = true;
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 21
this.vineClear();
Symbol 342 MovieClip Frame 33
stop();
Instance of Symbol 341 MovieClip in Symbol 342 MovieClip Frame 33
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = false; } else { this._visible = true; } }
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 21
this.vineClear();
Symbol 349 MovieClip Frame 33
stop();
Instance of Symbol 341 MovieClip in Symbol 349 MovieClip Frame 33
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 354 MovieClip "tsb1" in Symbol 356 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._yscale = 100; } vReset(); }
Instance of Symbol 321 MovieClip in Symbol 357 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 321 MovieClip in Symbol 357 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 321 MovieClip in Symbol 357 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 321 MovieClip in Symbol 357 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 279 MovieClip in Symbol 357 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 219 MovieClip in Symbol 357 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 284 MovieClip in Symbol 357 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 113 MovieClip "enar1" in Symbol 357 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 166 MovieClip in Symbol 357 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 322 MovieClip "player" in Symbol 357 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 324 MovieClip in Symbol 357 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 325 MovieClip in Symbol 357 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 165 MovieClip "seed" in Symbol 357 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 217 MovieClip in Symbol 357 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 219 MovieClip in Symbol 357 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 223 MovieClip "deathEffect" in Symbol 357 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 357 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 328 MovieClip in Symbol 357 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 267 MovieClip in Symbol 357 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 342 MovieClip in Symbol 357 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 328 MovieClip in Symbol 357 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 343 MovieClip in Symbol 357 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 343 MovieClip in Symbol 357 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 343 MovieClip in Symbol 357 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 346 MovieClip "mil" in Symbol 357 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 348 MovieClip in Symbol 357 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 349 MovieClip "fl1" in Symbol 357 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 350 MovieClip "th1" in Symbol 357 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 240 MovieClip in Symbol 357 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 240 MovieClip in Symbol 357 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 343 MovieClip in Symbol 357 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 343 MovieClip in Symbol 357 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 343 MovieClip in Symbol 357 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 343 MovieClip in Symbol 357 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 268 MovieClip "endBlock" in Symbol 357 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 356 MovieClip "ground" in Symbol 357 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 21
this.vineClear();
Symbol 358 MovieClip Frame 33
stop();
Instance of Symbol 341 MovieClip in Symbol 358 MovieClip Frame 33
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = false; } else { this._visible = true; } }
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 21
this.vineClear();
Symbol 360 MovieClip Frame 33
stop();
Instance of Symbol 341 MovieClip in Symbol 360 MovieClip Frame 33
onClipEvent (enterFrame) { if (_root.world.player.hasSeed == true) { this._visible = false; } else { this._visible = true; } }
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 2
stop();
Symbol 361 MovieClip Frame 3
stop();
Symbol 361 MovieClip Frame 18
gotoAndPlay (4);
Symbol 361 MovieClip Frame 37
attacking = false; goFight = false;
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 17
gotoAndPlay (2);
Symbol 363 MovieClip Frame 18
stop();
Symbol 363 MovieClip Frame 19
stop();
Symbol 363 MovieClip Frame 20
stop();
Symbol 363 MovieClip Frame 21
shooting = true;
Symbol 363 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 363 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Instance of Symbol 354 MovieClip "tsb2" in Symbol 368 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._yscale = 100; } vReset(); }
Instance of Symbol 354 MovieClip "tsb1" in Symbol 368 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._yscale = 100; } vReset(); }
Instance of Symbol 358 MovieClip "fl2" in Symbol 369 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 359 MovieClip "th2" in Symbol 369 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 149 MovieClip in Symbol 369 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 322 MovieClip "player" in Symbol 369 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 360 MovieClip in Symbol 369 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 321 MovieClip in Symbol 369 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 361 MovieClip in Symbol 369 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 362 MovieClip in Symbol 369 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 361 MovieClip in Symbol 369 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 361 MovieClip in Symbol 369 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 113 MovieClip "enar2" in Symbol 369 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 363 MovieClip in Symbol 369 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 321 MovieClip in Symbol 369 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 321 MovieClip in Symbol 369 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 165 MovieClip "seed" in Symbol 369 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 113 MovieClip "enar1" in Symbol 369 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 310 MovieClip in Symbol 369 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 217 MovieClip in Symbol 369 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 219 MovieClip in Symbol 369 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 223 MovieClip "deathEffect" in Symbol 369 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 369 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 349 MovieClip "fl1" in Symbol 369 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 350 MovieClip "th1" in Symbol 369 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 360 MovieClip in Symbol 369 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 360 MovieClip in Symbol 369 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 267 MovieClip in Symbol 369 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 240 MovieClip in Symbol 369 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 240 MovieClip in Symbol 369 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 240 MovieClip in Symbol 369 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 242 MovieClip in Symbol 369 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 253 MovieClip in Symbol 369 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 240 MovieClip in Symbol 369 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 268 MovieClip "endBlock" in Symbol 369 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 368 MovieClip "ground" in Symbol 369 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 381 MovieClip Frame 20
gotoAndPlay (1);
Symbol 381 MovieClip Frame 21
attPwr = 0;
Symbol 381 MovieClip Frame 35
this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200;
Symbol 381 MovieClip Frame 36
stop();
Instance of Symbol 381 MovieClip in Symbol 385 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 381 MovieClip in Symbol 385 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 381 MovieClip in Symbol 385 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 381 MovieClip in Symbol 385 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 381 MovieClip in Symbol 385 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 360 MovieClip in Symbol 385 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 280 MovieClip "player" in Symbol 385 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 279 MovieClip in Symbol 385 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 165 MovieClip "seed" in Symbol 385 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 217 MovieClip in Symbol 385 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 219 MovieClip in Symbol 385 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 223 MovieClip "deathEffect" in Symbol 385 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 385 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 240 MovieClip in Symbol 385 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 240 MovieClip in Symbol 385 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 324 MovieClip in Symbol 385 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 267 MovieClip in Symbol 385 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 240 MovieClip in Symbol 385 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 268 MovieClip "endBlock" in Symbol 385 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 384 MovieClip "ground" in Symbol 385 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 354 MovieClip "tsb1" in Symbol 390 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._yscale = 100; } vReset(); }
Instance of Symbol 381 MovieClip in Symbol 391 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 381 MovieClip in Symbol 391 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 322 MovieClip "player" in Symbol 391 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 381 MovieClip in Symbol 391 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 381 MovieClip in Symbol 391 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 381 MovieClip in Symbol 391 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 381 MovieClip in Symbol 391 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 348 MovieClip in Symbol 391 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 386 MovieClip in Symbol 391 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 387 MovieClip "mil" in Symbol 391 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 279 MovieClip in Symbol 391 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 284 MovieClip in Symbol 391 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 165 MovieClip "seed" in Symbol 391 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 217 MovieClip in Symbol 391 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 219 MovieClip in Symbol 391 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 223 MovieClip "deathEffect" in Symbol 391 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 391 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 360 MovieClip in Symbol 391 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 349 MovieClip "fl1" in Symbol 391 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 350 MovieClip "th1" in Symbol 391 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 240 MovieClip in Symbol 391 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 240 MovieClip in Symbol 391 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 240 MovieClip in Symbol 391 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 240 MovieClip in Symbol 391 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 268 MovieClip "endBlock" in Symbol 391 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 267 MovieClip in Symbol 391 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 390 MovieClip "ground" in Symbol 391 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 400 MovieClip Frame 20
gotoAndPlay (1);
Symbol 400 MovieClip Frame 21
attPwr = 0;
Symbol 400 MovieClip Frame 35
this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200;
Symbol 400 MovieClip Frame 36
stop();
Symbol 401 MovieClip Frame 20
gotoAndPlay (1);
Symbol 401 MovieClip Frame 21
attPwr = 0;
Symbol 401 MovieClip Frame 35
this._y = _root.world.safeY; _parent.spang._y = _root.world.safeY; _parent.player.score = _parent.player.score + 200;
Symbol 401 MovieClip Frame 36
stop();
Symbol 414 MovieClip Frame 10
gotoAndPlay (1);
Symbol 414 MovieClip Frame 11
stop();
Symbol 414 MovieClip Frame 12
stop();
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 17
gotoAndPlay (6);
Symbol 427 MovieClip Frame 1
stop(); shutter = true; alreadyRung = false;
Symbol 427 MovieClip Frame 2
mRope.gotoAndPlay(2); pullStart = true;
Symbol 427 MovieClip Frame 10
stop(); shutter = false;
Symbol 427 MovieClip Frame 15
mRope.gotoAndStop(1);
Symbol 427 MovieClip Frame 20
_root.world.oni.moveToShock = true; gotoAndStop (1);
Symbol 427 MovieClip Frame 45
gotoAndPlay (11);
Instance of Symbol 392 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 = 7500; 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 165 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 322 MovieClip "player" in Symbol 434 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 399 MovieClip "beam" in Symbol 434 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 400 MovieClip "g3" in Symbol 434 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 401 MovieClip "g2" in Symbol 434 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 381 MovieClip "g1" in Symbol 434 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 414 MovieClip "oni" in Symbol 434 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 427 MovieClip "shrine" in Symbol 434 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 217 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 219 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 223 MovieClip "deathEffect" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 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 241 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 268 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 433 MovieClip "ground" in Symbol 434 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 381 MovieClip 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 381 MovieClip 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 322 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 381 MovieClip 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 381 MovieClip 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 381 MovieClip 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 381 MovieClip 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 348 MovieClip in Symbol 435 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 386 MovieClip in Symbol 435 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 387 MovieClip "mil" in Symbol 435 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 279 MovieClip in Symbol 435 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 284 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.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 165 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 217 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 219 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 223 MovieClip "deathEffect" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 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 360 MovieClip in Symbol 435 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 349 MovieClip "fl1" in Symbol 435 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 350 MovieClip "th1" in Symbol 435 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 240 MovieClip in Symbol 435 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 240 MovieClip in Symbol 435 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 240 MovieClip in Symbol 435 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 240 MovieClip in Symbol 435 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 268 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 267 MovieClip in Symbol 435 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 390 MovieClip "ground" in Symbol 435 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 381 MovieClip in Symbol 436 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 381 MovieClip in Symbol 436 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 381 MovieClip in Symbol 436 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 381 MovieClip in Symbol 436 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 381 MovieClip in Symbol 436 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 360 MovieClip in Symbol 436 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 280 MovieClip "player" in Symbol 436 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 279 MovieClip in Symbol 436 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 165 MovieClip "seed" in Symbol 436 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 217 MovieClip in Symbol 436 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 219 MovieClip in Symbol 436 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 223 MovieClip "deathEffect" in Symbol 436 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 436 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 240 MovieClip in Symbol 436 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 240 MovieClip in Symbol 436 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 324 MovieClip in Symbol 436 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 267 MovieClip in Symbol 436 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 240 MovieClip in Symbol 436 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 268 MovieClip "endBlock" in Symbol 436 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 384 MovieClip "ground" in Symbol 436 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 358 MovieClip "fl2" in Symbol 437 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 359 MovieClip "th2" in Symbol 437 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 149 MovieClip in Symbol 437 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 322 MovieClip "player" in Symbol 437 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 360 MovieClip in Symbol 437 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 321 MovieClip in Symbol 437 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 361 MovieClip in Symbol 437 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 362 MovieClip in Symbol 437 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 361 MovieClip in Symbol 437 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 361 MovieClip in Symbol 437 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 113 MovieClip "enar2" in Symbol 437 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 363 MovieClip in Symbol 437 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 321 MovieClip in Symbol 437 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 321 MovieClip in Symbol 437 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 165 MovieClip "seed" in Symbol 437 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 113 MovieClip "enar1" in Symbol 437 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 310 MovieClip in Symbol 437 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 217 MovieClip in Symbol 437 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 219 MovieClip in Symbol 437 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 223 MovieClip "deathEffect" in Symbol 437 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 437 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 349 MovieClip "fl1" in Symbol 437 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 350 MovieClip "th1" in Symbol 437 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 360 MovieClip in Symbol 437 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 360 MovieClip in Symbol 437 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 267 MovieClip in Symbol 437 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 240 MovieClip in Symbol 437 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 240 MovieClip in Symbol 437 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 240 MovieClip in Symbol 437 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 242 MovieClip in Symbol 437 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 253 MovieClip in Symbol 437 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 240 MovieClip in Symbol 437 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 268 MovieClip "endBlock" in Symbol 437 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 368 MovieClip "ground" in Symbol 437 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 321 MovieClip in Symbol 438 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 321 MovieClip in Symbol 438 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 321 MovieClip in Symbol 438 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 321 MovieClip in Symbol 438 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 279 MovieClip in Symbol 438 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 219 MovieClip in Symbol 438 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 284 MovieClip in Symbol 438 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 113 MovieClip "enar1" in Symbol 438 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 166 MovieClip in Symbol 438 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 322 MovieClip "player" in Symbol 438 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 324 MovieClip in Symbol 438 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 325 MovieClip in Symbol 438 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 165 MovieClip "seed" in Symbol 438 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 217 MovieClip in Symbol 438 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 219 MovieClip in Symbol 438 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 223 MovieClip "deathEffect" in Symbol 438 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 438 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 328 MovieClip in Symbol 438 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 267 MovieClip in Symbol 438 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 342 MovieClip in Symbol 438 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 328 MovieClip in Symbol 438 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 343 MovieClip in Symbol 438 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 343 MovieClip in Symbol 438 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 343 MovieClip in Symbol 438 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 346 MovieClip "mil" in Symbol 438 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 348 MovieClip in Symbol 438 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 349 MovieClip "fl1" in Symbol 438 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 350 MovieClip "th1" in Symbol 438 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 240 MovieClip in Symbol 438 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 240 MovieClip in Symbol 438 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 343 MovieClip in Symbol 438 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 343 MovieClip in Symbol 438 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 343 MovieClip in Symbol 438 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 343 MovieClip in Symbol 438 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 268 MovieClip "endBlock" in Symbol 438 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 356 MovieClip "ground" in Symbol 438 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 279 MovieClip in Symbol 439 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 113 MovieClip "enar3" in Symbol 439 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 142 MovieClip in Symbol 439 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 149 MovieClip in Symbol 439 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 280 MovieClip "player" in Symbol 439 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 282 MovieClip in Symbol 439 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 153 MovieClip in Symbol 439 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 153 MovieClip in Symbol 439 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 113 MovieClip "enar2" in Symbol 439 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 154 MovieClip in Symbol 439 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 153 MovieClip in Symbol 439 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 153 MovieClip in Symbol 439 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 153 MovieClip in Symbol 439 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 284 MovieClip in Symbol 439 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 309 MovieClip in Symbol 439 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 113 MovieClip "enar1" in Symbol 439 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 310 MovieClip in Symbol 439 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 165 MovieClip "seed" in Symbol 439 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 217 MovieClip in Symbol 439 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 219 MovieClip in Symbol 439 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 223 MovieClip "deathEffect" in Symbol 439 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 439 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 311 MovieClip in Symbol 439 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 267 MovieClip in Symbol 439 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 240 MovieClip in Symbol 439 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 240 MovieClip in Symbol 439 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 268 MovieClip "endBlock" in Symbol 439 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 319 MovieClip "ground" in Symbol 439 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 113 MovieClip "enar3" in Symbol 440 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 142 MovieClip in Symbol 440 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 149 MovieClip in Symbol 440 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 153 MovieClip in Symbol 440 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 113 MovieClip "enar2" in Symbol 440 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 154 MovieClip in Symbol 440 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 165 MovieClip "seed" in Symbol 440 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 113 MovieClip "enar1" in Symbol 440 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 166 MovieClip in Symbol 440 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 213 MovieClip "player" in Symbol 440 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 217 MovieClip in Symbol 440 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 219 MovieClip in Symbol 440 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 223 MovieClip "deathEffect" in Symbol 440 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 440 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 227 MovieClip "mil" in Symbol 440 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 240 MovieClip in Symbol 440 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 241 MovieClip in Symbol 440 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 242 MovieClip in Symbol 440 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 253 MovieClip in Symbol 440 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 267 MovieClip in Symbol 440 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 240 MovieClip in Symbol 440 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 268 MovieClip "endBlock" in Symbol 440 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 273 MovieClip "ground" in Symbol 440 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 392 MovieClip "endBlock" in Symbol 441 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 = 7500; 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 165 MovieClip "seed" in Symbol 441 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 322 MovieClip "player" in Symbol 441 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 399 MovieClip "beam" in Symbol 441 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 400 MovieClip "g3" in Symbol 441 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 401 MovieClip "g2" in Symbol 441 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 381 MovieClip "g1" in Symbol 441 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 414 MovieClip "oni" in Symbol 441 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 427 MovieClip "shrine" in Symbol 441 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 217 MovieClip in Symbol 441 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 219 MovieClip in Symbol 441 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 223 MovieClip "deathEffect" in Symbol 441 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 225 MovieClip "arrow1" in Symbol 441 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 241 MovieClip in Symbol 441 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 268 MovieClip "endBlock" in Symbol 441 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 433 MovieClip "ground" in Symbol 441 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:427
Symbol 13 Sound [now]Used by:427
Symbol 14 Sound [door]Used by:427
Symbol 15 Sound [rar]Used by:309 361
Symbol 16 Sound [scoreTally]Used by:40
Symbol 17 Sound [ex3]Used by:163 342 349 358 360
Symbol 18 Sound [arw1]Used by:142 154 166 310 363
Symbol 19 Sound [cb]Used by:213 280 322
Symbol 20 Sound [airSwish2]Used by:50 58 64 213 280 322
Symbol 21 Sound [bounce]Used by:240 241 242 253
Symbol 22 FontUsed by:23 24 61 62 63
Symbol 23 EditableTextUses:22Used by:Timeline
Symbol 24 EditableTextUses:22Used by:Timeline
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClipUses:25Used by:Timeline
Symbol 27 GraphicUsed by:Timeline
Symbol 28 FontUsed by:29
Symbol 29 EditableTextUses:28Used by:Timeline
Symbol 30 GraphicUsed by:31 275
Symbol 31 MovieClipUses:30Used by:33
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:31 32Used by:Timeline
Symbol 34 GraphicUsed by:Timeline
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:35Used by:Timeline
Symbol 37 GraphicUsed by:40
Symbol 38 SoundUsed by:40
Symbol 39 SoundUsed by:40
Symbol 40 MovieClipUses:37 38 39 16Used by:Timeline
Symbol 41 GraphicUsed by:42 43 354
Symbol 42 MovieClipUses:41Used by:44 60
Symbol 43 MovieClipUses:41Used by:44 60
Symbol 44 MovieClipUses:42 43Used by:Timeline
Symbol 45 FontUsed by:46 47 48 55 56 57 59
Symbol 46 TextUses:45Used by:50
Symbol 47 TextUses:45Used by:50
Symbol 48 TextUses:45Used by:50
Symbol 49 GraphicUsed by:50 58 64
Symbol 50 ButtonUses:46 47 48 49 20Used by:60
Symbol 51 GraphicUsed by:60
Symbol 52 GraphicUsed by:53 159 170 192 268 286 392
Symbol 53 MovieClipUses:52Used by:60 142 154 166 213 280 310 322 363 399
Symbol 54 GraphicUsed by:60
Symbol 55 TextUses:45Used by:58
Symbol 56 TextUses:45Used by:58
Symbol 57 TextUses:45Used by:58
Symbol 58 ButtonUses:55 56 57 49 20Used by:60
Symbol 59 TextUses:45Used by:60
Symbol 60 MovieClipUses:42 43 50 51 53 54 58 59Used by:Timeline
Symbol 61 EditableTextUses:22Used by:64
Symbol 62 EditableTextUses:22Used by:64
Symbol 63 EditableTextUses:22Used by:64
Symbol 64 ButtonUses:61 62 63 49 20Used by:73
Symbol 65 GraphicUsed by:73
Symbol 66 FontUsed by:67 68 69 70 71 88 89 90
Symbol 67 EditableTextUses:66Used by:73
Symbol 68 EditableTextUses:66Used by:73
Symbol 69 EditableTextUses:66Used by:73
Symbol 70 EditableTextUses:66Used by:73
Symbol 71 EditableTextUses:66Used by:73
Symbol 72 GraphicUsed by:73
Symbol 73 MovieClipUses:64 65 67 68 69 70 71 72Used by:Timeline
Symbol 74 GraphicUsed by:76 95 342 349 358 360
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClipUses:74 75Used by:Timeline
Symbol 77 GraphicUsed by:87 414
Symbol 78 GraphicUsed by:87 414
Symbol 79 GraphicUsed by:87 414
Symbol 80 GraphicUsed by:87
Symbol 81 GraphicUsed by:87 414
Symbol 82 GraphicUsed by:87 414
Symbol 83 GraphicUsed by:87 414
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:87 105
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:77 78 79 80 81 82 83 85 86Used by:Timeline
Symbol 88 EditableTextUses:66Used by:97
Symbol 89 EditableTextUses:66Used by:97
Symbol 90 EditableTextUses:66Used by:97
Symbol 91 GraphicUsed by:95
Symbol 92 GraphicUsed by:95
Symbol 93 GraphicUsed by:95
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:91 92 74 93 94Used by:97
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClipUses:88 89 90 95 96Used by:Timeline
Symbol 98 GraphicUsed by:105
Symbol 99 FontUsed by:100 101 106
Symbol 100 TextUses:99Used by:105
Symbol 101 EditableTextUses:99Used by:105
Symbol 102 FontUsed by:103
Symbol 103 TextUses:102Used by:105
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClipUses:98 85 100 101 103 104Used by:Timeline
Symbol 106 EditableTextUses:99Used by:108
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:106 107Used by:Timeline
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:111
Symbol 111 MovieClipUses:110Used by:Timeline
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClipUses:112Used by:274 320 357 369 437 438 439 440
Symbol 114 GraphicUsed by:142 154 166 310 363
Symbol 115 GraphicUsed by:142 154 166 310 363
Symbol 116 GraphicUsed by:142 154 166 310 363
Symbol 117 GraphicUsed by:142 154 166 310 363
Symbol 118 GraphicUsed by:142 154 166 310 363
Symbol 119 GraphicUsed by:142 154 166 310 363
Symbol 120 GraphicUsed by:142 154 166 310 363
Symbol 121 GraphicUsed by:142 154 166 310 363
Symbol 122 GraphicUsed by:142 154 166 310 363
Symbol 123 GraphicUsed by:142 154 166 310 363
Symbol 124 GraphicUsed by:142 154 166 310 363
Symbol 125 GraphicUsed by:142 154 166 310 363
Symbol 126 GraphicUsed by:142 154 166 310 363
Symbol 127 GraphicUsed by:142 154 166 310 363
Symbol 128 GraphicUsed by:142 154 166 310 363
Symbol 129 GraphicUsed by:142 154 166 310 363
Symbol 130 GraphicUsed by:142 154 166 310 363
Symbol 131 GraphicUsed by:142 154 166 310 363
Symbol 132 GraphicUsed by:142 154 166 310 363
Symbol 133 GraphicUsed by:142 154 166 310 363
Symbol 134 GraphicUsed by:142 154 166 310 363
Symbol 135 GraphicUsed by:142 154 166 310 363
Symbol 136 GraphicUsed by:142 154 166 310 363
Symbol 137 GraphicUsed by:142 154 166 310 363
Symbol 138 GraphicUsed by:142 154 166 310 363
Symbol 139 GraphicUsed by:142 154 166 310 363
Symbol 140 GraphicUsed by:142 154 166 310 363
Symbol 141 GraphicUsed by:142 154 166 310 363
Symbol 142 MovieClipUses:114 53 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 18 136 137 138 139 140 141Used by:274 320 439 440
Symbol 143 GraphicUsed by:149
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClipUses:144Used by:149 279
Symbol 146 GraphicUsed by:149 279
Symbol 147 GraphicUsed by:149 279
Symbol 148 GraphicUsed by:149 279
Symbol 149 MovieClipUses:143 145 146 147 148Used by:274 320 369 437 439 440
Symbol 150 GraphicUsed by:153 321
Symbol 151 GraphicUsed by:153 321
Symbol 152 GraphicUsed by:153 321
Symbol 153 MovieClipUses:150 151 152Used by:274 320 439 440
Symbol 154 MovieClipUses:114 53 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 18 136 137 138 139 140 141Used by:274 320 439 440
Symbol 155 GraphicUsed by:163
Symbol 156 GraphicUsed by:157 158 163
Symbol 157 MovieClipUses:156Used by:163
Symbol 158 MovieClipUses:156Used by:163
Symbol 159 MovieClipUses:52Used by:163
Symbol 160 GraphicUsed by:163
Symbol 161 GraphicUsed by:163
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClipUses:155 156 157 158 159 17 160 161 162Used by:274 320 357 369 385 391 434 435 436 437 438 439 440 441
Symbol 164 GraphicUsed by:165 341
Symbol 165 MovieClipUses:164Used by:274 320 357 369 385 391 434 435 436 437 438 439 440 441
Symbol 166 MovieClipUses:114 53 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 18 136 137 138 139 140 141Used by:274 357 438 440
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClipUses:167Used by:213 280 322
Symbol 169 GraphicUsed by:213 280 322
Symbol 170 MovieClipUses:52Used by:213 280 322
Symbol 171 GraphicUsed by:172 174
Symbol 172 MovieClipUses:171Used by:213 280 322
Symbol 173 GraphicUsed by:213 280 322
Symbol 174 MovieClipUses:171Used by:213 280 322
Symbol 175 GraphicUsed by:213 280 322
Symbol 176 GraphicUsed by:213 280 322
Symbol 177 GraphicUsed by:213 280 322
Symbol 178 GraphicUsed by:213 280 322
Symbol 179 GraphicUsed by:213 280 322
Symbol 180 GraphicUsed by:213 280 322
Symbol 181 GraphicUsed by:213 280 322
Symbol 182 GraphicUsed by:213 280 322
Symbol 183 GraphicUsed by:213 280 322
Symbol 184 GraphicUsed by:213 280 322
Symbol 185 GraphicUsed by:213 280 322
Symbol 186 GraphicUsed by:213 280 322
Symbol 187 GraphicUsed by:213 280 322
Symbol 188 GraphicUsed by:213 280 322
Symbol 189 GraphicUsed by:213 280 322
Symbol 190 GraphicUsed by:213 280 322
Symbol 191 GraphicUsed by:213 280 322
Symbol 192 MovieClipUses:52Used by:213 280 322
Symbol 193 GraphicUsed by:213 280 322
Symbol 194 GraphicUsed by:213 280 322
Symbol 195 GraphicUsed by:213 280 322
Symbol 196 GraphicUsed by:213 280 322
Symbol 197 GraphicUsed by:213 280 322
Symbol 198 GraphicUsed by:213 280 322
Symbol 199 GraphicUsed by:213 280 322
Symbol 200 GraphicUsed by:213 280 322
Symbol 201 GraphicUsed by:213 280 322
Symbol 202 GraphicUsed by:213 280 322
Symbol 203 GraphicUsed by:213 280 322
Symbol 204 GraphicUsed by:213 280 322
Symbol 205 GraphicUsed by:213 280 322
Symbol 206 GraphicUsed by:213 280 322
Symbol 207 GraphicUsed by:213 280 322
Symbol 208 GraphicUsed by:213 280 322
Symbol 209 GraphicUsed by:213 280 322
Symbol 210 GraphicUsed by:213 280 322
Symbol 211 GraphicUsed by:213 280 322
Symbol 212 GraphicUsed by:213 280 322
Symbol 213 MovieClipUses:168 169 170 172 173 174 175 176 177 53 178 179 180 181 182 183 184 185 186 187 188 20 189 190 191 192 193 194 195 196 197 198 19 199 200 201 202 203 204 205 206 207 208 209 210 211 212Used by:274 440
Symbol 214 GraphicUsed by:215
Symbol 215 MovieClipUses:214Used by:274 320 357 369 385 391 434 435 436 437 438 439 440 441
Symbol 216 GraphicUsed by:217
Symbol 217 MovieClipUses:216Used by:274 320 357 369 385 391 434 435 436 437 438 439 440 441
Symbol 218 GraphicUsed by:219
Symbol 219 MovieClipUses:218Used by:274 320 357 369 385 391 434 435 436 437 438 439 440 441
Symbol 220 GraphicUsed by:221
Symbol 221 MovieClipUses:220Used by:223
Symbol 222 GraphicUsed by:223
Symbol 223 MovieClipUses:221 222Used by:274 320 357 369 385 391 434 435 436 437 438 439 440 441
Symbol 224 GraphicUsed by:225
Symbol 225 MovieClipUses:224Used by:274 320 357 369 385 391 434 435 436 437 438 439 440 441
Symbol 226 GraphicUsed by:227 346 387
Symbol 227 MovieClipUses:226Used by:274 440
Symbol 228 BitmapUsed by:229 232
Symbol 229 GraphicUses:228Used by:230
Symbol 230 MovieClipUses:229Used by:274 320 357 369 437 438 439 440
Symbol 231 BitmapUsed by:232 246
Symbol 232 GraphicUses:231 228Used by:233
Symbol 233 MovieClipUses:232Used by:274 320 357 369 391 435 437 438 439 440
Symbol 234 BitmapUsed by:235 237 252 254 269 352 366 428
Symbol 235 GraphicUses:234Used by:236
Symbol 236 MovieClipUses:235Used by:274 320 357 369 385 391 435 436 437 438 439 440
Symbol 237 GraphicUses:234Used by:274 440
Symbol 238 BitmapUsed by:239
Symbol 239 GraphicUses:238Used by:240 241 242 253
Symbol 240 MovieClipUses:239 21Used by:274 320 357 369 385 391 435 436 437 438 439 440
Symbol 241 MovieClipUses:239 21Used by:274 434 440 441
Symbol 242 MovieClipUses:239 21Used by:274 369 437 440
Symbol 243 BitmapUsed by:244
Symbol 244 GraphicUses:243Used by:245
Symbol 245 MovieClipUses:244Used by:274 320 357 369 385 391 434 435 436 437 438 439 440 441
Symbol 246 GraphicUses:231Used by:247
Symbol 247 MovieClipUses:246Used by:274 320 357 438 439 440
Symbol 248 GraphicUsed by:274 320 357 369 391 435 437 438 439 440
Symbol 249 BitmapUsed by:250 255
Symbol 250 GraphicUses:249Used by:251 270
Symbol 251 MovieClipUses:250Used by:274 320 369 385 391 434 435 436 437 439 440 441
Symbol 252 GraphicUses:234Used by:274 440
Symbol 253 MovieClipUses:239 21Used by:274 369 437 440
Symbol 254 GraphicUses:234Used by:274 440
Symbol 255 GraphicUses:249Used by:256
Symbol 256 MovieClipUses:255Used by:274 320 357 369 391 435 437 438 439 440
Symbol 257 BitmapUsed by:258 262 313 314 315 351 352 429 431
Symbol 258 GraphicUses:257Used by:274 440
Symbol 259 BitmapUsed by:260
Symbol 260 GraphicUses:259Used by:261 430
Symbol 261 MovieClipUses:260Used by:274 320 357 369 385 391 435 436 437 438 439 440
Symbol 262 GraphicUses:257Used by:263 264
Symbol 263 MovieClipUses:262Used by:274 320 369 385 391 435 436 437 439 440
Symbol 264 MovieClipUses:262Used by:274 320 357 369 385 391 435 436 437 438 439 440
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:267 316
Symbol 267 MovieClipUses:266Used by:274 320 357 369 385 391 435 436 437 438 439 440
Symbol 268 MovieClipUses:52Used by:274 320 357 369 385 391 434 435 436 437 438 439 440 441
Symbol 269 GraphicUses:234Used by:274 440
Symbol 270 MovieClipUses:250Used by:274 320 357 369 385 434 436 437 438 439 440 441
Symbol 271 GraphicUsed by:274 440
Symbol 272 GraphicUsed by:273
Symbol 273 MovieClipUses:272Used by:274 440
Symbol 274 MovieClipUses:113 142 149 153 154 163 165 166 213 215 217 219 223 225 227 230 233 236 237 240 241 242 245 247 248 251 252 253 254 256 258 261 263 264 267 268 269 270 271 273Used by:Timeline
Symbol 275 MovieClipUses:30Used by:Timeline
Symbol 276 BitmapUsed by:277
Symbol 277 GraphicUses:276Used by:Timeline
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:278 145 146 147 148Used by:320 357 385 391 435 436 438 439
Symbol 280 MovieClipUses:168 169 170 172 173 174 175 176 177 53 178 179 180 181 182 183 184 185 186 187 188 20 189 190 191 192 193 194 195 196 197 198 19 199 200 201 202 203 204 205 206 207 208 209 210 211 212Used by:320 385 436 439
Symbol 281 GraphicUsed by:282 311 325 386
Symbol 282 MovieClipUses:281Used by:320 439
Symbol 283 GraphicUsed by:284
Symbol 284 MovieClipUses:283Used by:320 357 391 435 438 439
Symbol 285 GraphicUsed by:309 361
Symbol 286 MovieClipUses:52Used by:309 361
Symbol 287 GraphicUsed by:309 361
Symbol 288 GraphicUsed by:309 361
Symbol 289 GraphicUsed by:309 361
Symbol 290 GraphicUsed by:309 361
Symbol 291 GraphicUsed by:309 361
Symbol 292 GraphicUsed by:309 361
Symbol 293 GraphicUsed by:309 361
Symbol 294 GraphicUsed by:309 361
Symbol 295 GraphicUsed by:309 361
Symbol 296 GraphicUsed by:309 361
Symbol 297 GraphicUsed by:309 361
Symbol 298 GraphicUsed by:309 361
Symbol 299 GraphicUsed by:309 361
Symbol 300 GraphicUsed by:309 361
Symbol 301 GraphicUsed by:309 361
Symbol 302 GraphicUsed by:309 361
Symbol 303 GraphicUsed by:309 361
Symbol 304 GraphicUsed by:309 361
Symbol 305 GraphicUsed by:309 361
Symbol 306 GraphicUsed by:307
Symbol 307 MovieClipUses:306Used by:309 361
Symbol 308 GraphicUsed by:309 361
Symbol 309 MovieClipUses:285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 15 304 305 307 308Used by:320 439
Symbol 310 MovieClipUses:114 53 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 18 136 137 138 139 140 141Used by:320 369 437 439
Symbol 311 MovieClipUses:281Used by:320 439
Symbol 312 GraphicUsed by:320 439
Symbol 313 GraphicUses:257Used by:320 439
Symbol 314 GraphicUses:257Used by:320 439
Symbol 315 GraphicUses:257Used by:320 439
Symbol 316 MovieClipUses:266Used by:320 357 369 385 391 435 436 437 438 439
Symbol 317 GraphicUsed by:320 439
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:318Used by:320 439
Symbol 320 MovieClipUses:264 233 261 245 230 279 113 142 149 280 282 153 154 284 309 310 163 165 215 217 219 223 225 311 236 270 263 267 312 313 248 240 247 256 251 314 315 268 316 317 319Used by:Timeline
Symbol 321 MovieClipUses:150 151 152Used by:357 369 437 438
Symbol 322 MovieClipUses:168 169 170 172 173 174 175 176 177 53 178 179 180 181 182 183 184 185 186 187 188 20 189 190 191 192 193 194 195 196 197 198 19 199 200 201 202 203 204 205 206 207 208 209 210 211 212Used by:357 369 391 434 435 437 438 441
Symbol 323 GraphicUsed by:324
Symbol 324 MovieClipUses:323Used by:357 385 436 438
Symbol 325 MovieClipUses:281Used by:357 438
Symbol 326 BitmapUsed by:327 344
Symbol 327 GraphicUses:326Used by:328 343 350 359
Symbol 328 MovieClipUses:327Used by:357 438
Symbol 329 GraphicUsed by:342 349 358 360
Symbol 330 GraphicUsed by:342 349 358 360
Symbol 331 GraphicUsed by:342 349 358 360
Symbol 332 GraphicUsed by:342 349 358 360
Symbol 333 GraphicUsed by:342 349 358 360
Symbol 334 GraphicUsed by:342 349 358 360
Symbol 335 GraphicUsed by:342 349 358 360
Symbol 336 GraphicUsed by:342 349 358 360
Symbol 337 GraphicUsed by:342 349 358 360
Symbol 338 GraphicUsed by:342 349 358 360
Symbol 339 GraphicUsed by:342 349 358 360
Symbol 340 GraphicUsed by:342 349 358 360
Symbol 341 MovieClipUses:164Used by:342 349 358 360
Symbol 342 MovieClipUses:329 330 74 331 332 17 333 334 335 336 337 338 339 340 341Used by:357 438
Symbol 343 MovieClipUses:327Used by:357 438
Symbol 344 GraphicUses:326Used by:345
Symbol 345 MovieClipUses:344Used by:357 369 391 435 437 438
Symbol 346 MovieClipUses:226Used by:357 438
Symbol 347 GraphicUsed by:348 362
Symbol 348 MovieClipUses:347Used by:357 391 435 438
Symbol 349 MovieClipUses:329 330 74 331 332 17 333 334 335 336 337 338 339 340 341Used by:357 369 391 435 437 438
Symbol 350 MovieClipUses:327Used by:357 369 391 435 437 438
Symbol 351 GraphicUses:257Used by:357 438
Symbol 352 GraphicUses:257 234Used by:357 438
Symbol 353 GraphicUsed by:356
Symbol 354 MovieClipUses:41Used by:356 368 390
Symbol 355 GraphicUsed by:356
Symbol 356 MovieClipUses:353 354 355Used by:357 438
Symbol 357 MovieClipUses:321 279 219 284 113 166 247 322 324 325 163 165 215 217 223 225 328 236 245 256 270 264 267 261 248 233 230 342 343 345 346 348 349 350 351 240 268 352 316 356Used by:Timeline
Symbol 358 MovieClipUses:329 330 74 331 332 17 333 334 335 336 337 338 339 340 341Used by:369 437
Symbol 359 MovieClipUses:327Used by:369 437
Symbol 360 MovieClipUses:329 330 74 331 332 17 333 334 335 336 337 338 339 340 341Used by:369 385 391 435 436 437
Symbol 361 MovieClipUses:285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 15 304 305 307 308Used by:369 437
Symbol 362 MovieClipUses:347Used by:369 437
Symbol 363 MovieClipUses:114 53 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 18 136 137 138 139 140 141Used by:369 437
Symbol 364 GraphicUsed by:369 391 435 437
Symbol 365 GraphicUsed by:369 437
Symbol 366 GraphicUses:234Used by:369 437
Symbol 367 GraphicUsed by:368
Symbol 368 MovieClipUses:354 367Used by:369 437
Symbol 369 MovieClipUses:358 359 149 322 360 321 361 362 113 363 163 165 310 215 217 219 223 225 349 350 345 236 251 263 264 267 261 248 240 364 256 365 245 230 242 253 316 268 366 270 233 368Used by:Timeline
Symbol 370 GraphicUsed by:381 400 401
Symbol 371 GraphicUsed by:381 400 401
Symbol 372 GraphicUsed by:381 400 401
Symbol 373 GraphicUsed by:381 400 401
Symbol 374 GraphicUsed by:381 400 401
Symbol 375 ShapeTweeningUsed by:381 400 401
Symbol 376 ShapeTweeningUsed by:381 400 401
Symbol 377 GraphicUsed by:381 400 401
Symbol 378 ShapeTweeningUsed by:381 400 401
Symbol 379 ShapeTweeningUsed by:381 400 401
Symbol 380 GraphicUsed by:381 400 401
Symbol 381 MovieClipUses:370 371 372 373 374 375 376 377 378 379 380Used by:385 391 434 435 436 441
Symbol 382 GraphicUsed by:385 436
Symbol 383 GraphicUsed by:384
Symbol 384 MovieClipUses:383Used by:385 436
Symbol 385 MovieClipUses:381 360 280 279 163 165 215 217 219 223 225 236 240 251 382 324 270 263 264 267 261 245 316 268 384Used by:Timeline
Symbol 386 MovieClipUses:281Used by:391 435
Symbol 387 MovieClipUses:226Used by:391 435
Symbol 388 GraphicUsed by:391 435
Symbol 389 GraphicUsed by:390
Symbol 390 MovieClipUses:354 389Used by:391 435
Symbol 391 MovieClipUses:236 248 381 322 348 386 387 279 284 163 165 215 217 219 223 225 360 345 349 350 256 251 245 233 240 364 388 264 316 261 268 263 267 390Used by:Timeline
Symbol 392 MovieClipUses:52Used by:434 441
Symbol 393 GraphicUsed by:399
Symbol 394 GraphicUsed by:399
Symbol 395 GraphicUsed by:399
Symbol 396 GraphicUsed by:399
Symbol 397 GraphicUsed by:399
Symbol 398 GraphicUsed by:399
Symbol 399 MovieClipUses:393 394 395 396 53 397 398Used by:434 441
Symbol 400 MovieClipUses:370 371 372 373 374 375 376 377 378 379 380Used by:434 441
Symbol 401 MovieClipUses:370 371 372 373 374 375 376 377 378 379 380Used by:434 441
Symbol 402 GraphicUsed by:414
Symbol 403 GraphicUsed by:414
Symbol 404 GraphicUsed by:414
Symbol 405 GraphicUsed by:414
Symbol 406 GraphicUsed by:414
Symbol 407 GraphicUsed by:414
Symbol 408 GraphicUsed by:414
Symbol 409 GraphicUsed by:414
Symbol 410 GraphicUsed by:414
Symbol 411 GraphicUsed by:414
Symbol 412 GraphicUsed by:414
Symbol 413 GraphicUsed by:414
Symbol 414 MovieClipUses:77 78 79 402 403 81 82 83 404 405 406 407 408 409 410 411 412 413Used by:434 441
Symbol 415 GraphicUsed by:421
Symbol 416 GraphicUsed by:421
Symbol 417 GraphicUsed by:421
Symbol 418 GraphicUsed by:421
Symbol 419 GraphicUsed by:421
Symbol 420 GraphicUsed by:421
Symbol 421 MovieClipUses:415 416 417 418 419 420Used by:427
Symbol 422 BitmapUsed by:423
Symbol 423 GraphicUses:422Used by:427
Symbol 424 GraphicUsed by:427
Symbol 425 BitmapUsed by:426
Symbol 426 GraphicUses:425Used by:427
Symbol 427 MovieClipUses:421 423 424 426 14 13 12Used by:434 441
Symbol 428 GraphicUses:234Used by:434 441
Symbol 429 GraphicUses:257Used by:434 441
Symbol 430 MovieClipUses:260Used by:434 441
Symbol 431 GraphicUses:257Used by:434 441
Symbol 432 GraphicUsed by:433
Symbol 433 MovieClipUses:432Used by:434 441
Symbol 434 MovieClipUses:392 163 165 322 399 400 401 381 414 427 215 217 219 223 225 270 428 245 241 268 429 251 430 431 433Used by:Timeline
Symbol 435 MovieClipUses:236 248 381 322 348 386 387 279 284 163 165 215 217 219 223 225 360 345 349 350 256 251 245 233 240 364 388 264 316 261 268 263 267 390Used by:Timeline
Symbol 436 MovieClipUses:381 360 280 279 163 165 215 217 219 223 225 236 240 251 382 324 270 263 264 267 261 245 316 268 384Used by:Timeline
Symbol 437 MovieClipUses:358 359 149 322 360 321 361 362 113 363 163 165 310 215 217 219 223 225 349 350 345 236 251 263 264 267 261 248 240 364 256 365 245 230 242 253 316 268 366 270 233 368Used by:Timeline
Symbol 438 MovieClipUses:321 279 219 284 113 166 247 322 324 325 163 165 215 217 223 225 328 236 245 256 270 264 267 261 248 233 230 342 343 345 346 348 349 350 351 240 268 352 316 356Used by:Timeline
Symbol 439 MovieClipUses:264 233 261 245 230 279 113 142 149 280 282 153 154 284 309 310 163 165 215 217 219 223 225 311 236 270 263 267 312 313 248 240 247 256 251 314 315 268 316 317 319Used by:Timeline
Symbol 440 MovieClipUses:113 142 149 153 154 163 165 166 213 215 217 219 223 225 227 230 233 236 237 240 241 242 245 247 248 251 252 253 254 256 258 261 263 264 267 268 269 270 271 273Used by:Timeline
Symbol 441 MovieClipUses:392 163 165 322 399 400 401 381 414 427 215 217 219 223 225 270 428 245 241 268 429 251 430 431 433Used by:Timeline

Instance Names

"m"Frame 1Symbol 26 MovieClip
"load"Frame 1Symbol 33 MovieClip
"jukebox"Frame 4Symbol 40 MovieClip
"warper"Frame 4Symbol 44 MovieClip
"fader"Frame 4Symbol 60 MovieClip
"tBoard"Frame 4Symbol 73 MovieClip
"bossGage"Frame 4Symbol 87 MovieClip
"dWindow"Frame 4Symbol 97 MovieClip
"life"Frame 4Symbol 105 MovieClip
"world"Frame 4Symbol 274 MovieClip
"white"Frame 4Symbol 275 MovieClip
"world"Frame 5Symbol 320 MovieClip
"world"Frame 6Symbol 357 MovieClip
"world"Frame 7Symbol 369 MovieClip
"world"Frame 8Symbol 385 MovieClip
"world"Frame 9Symbol 391 MovieClip
"world"Frame 10Symbol 434 MovieClip
"g"Symbol 33 MovieClip Frame 1Symbol 31 MovieClip
"hitMask"Symbol 60 MovieClip Frame 53Symbol 53 MovieClip
"bar"Symbol 87 MovieClip Frame 1Symbol 85 MovieClip
"portrait"Symbol 97 MovieClip Frame 1Symbol 95 MovieClip
"ibar"Symbol 105 MovieClip Frame 1Symbol 85 MovieClip
"bar"Symbol 105 MovieClip Frame 1Symbol 85 MovieClip
"hitMask"Symbol 142 MovieClip Frame 1Symbol 53 MovieClip
"hitMask"Symbol 154 MovieClip Frame 1Symbol 53 MovieClip
"hitMask"Symbol 163 MovieClip Frame 1Symbol 159 MovieClip
"hitMask"Symbol 166 MovieClip Frame 1Symbol 53 MovieClip
"hitMask"Symbol 213 MovieClip Frame 1Symbol 170 MovieClip
"bow"Symbol 213 MovieClip Frame 1Symbol 172 MovieClip
"bow"Symbol 213 MovieClip Frame 2Symbol 174 MovieClip
"hitMask"Symbol 213 MovieClip Frame 4Symbol 53 MovieClip
"attMask"Symbol 213 MovieClip Frame 27Symbol 192 MovieClip
"bow"Symbol 213 MovieClip Frame 32Symbol 172 MovieClip
"enar3"Symbol 274 MovieClip Frame 1Symbol 113 MovieClip
"enar2"Symbol 274 MovieClip Frame 1Symbol 113 MovieClip
"explosion"Symbol 274 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 274 MovieClip Frame 1Symbol 165 MovieClip
"enar1"Symbol 274 MovieClip Frame 1Symbol 113 MovieClip
"player"Symbol 274 MovieClip Frame 1Symbol 213 MovieClip
"spang"Symbol 274 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 274 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 274 MovieClip Frame 1Symbol 225 MovieClip
"mil"Symbol 274 MovieClip Frame 1Symbol 227 MovieClip
"endBlock"Symbol 274 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 274 MovieClip Frame 1Symbol 273 MovieClip
"hitMask"Symbol 280 MovieClip Frame 1Symbol 170 MovieClip
"bow"Symbol 280 MovieClip Frame 1Symbol 172 MovieClip
"bow"Symbol 280 MovieClip Frame 2Symbol 174 MovieClip
"hitMask"Symbol 280 MovieClip Frame 4Symbol 53 MovieClip
"attMask"Symbol 280 MovieClip Frame 27Symbol 192 MovieClip
"bow"Symbol 280 MovieClip Frame 32Symbol 172 MovieClip
"hitMask"Symbol 309 MovieClip Frame 1Symbol 286 MovieClip
"attMask"Symbol 309 MovieClip Frame 33Symbol 307 MovieClip
"hitMask"Symbol 310 MovieClip Frame 1Symbol 53 MovieClip
"enar3"Symbol 320 MovieClip Frame 1Symbol 113 MovieClip
"player"Symbol 320 MovieClip Frame 1Symbol 280 MovieClip
"enar2"Symbol 320 MovieClip Frame 1Symbol 113 MovieClip
"enar1"Symbol 320 MovieClip Frame 1Symbol 113 MovieClip
"explosion"Symbol 320 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 320 MovieClip Frame 1Symbol 165 MovieClip
"spang"Symbol 320 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 320 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 320 MovieClip Frame 1Symbol 225 MovieClip
"endBlock"Symbol 320 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 320 MovieClip Frame 1Symbol 319 MovieClip
"hitMask"Symbol 322 MovieClip Frame 1Symbol 170 MovieClip
"bow"Symbol 322 MovieClip Frame 1Symbol 172 MovieClip
"bow"Symbol 322 MovieClip Frame 2Symbol 174 MovieClip
"hitMask"Symbol 322 MovieClip Frame 4Symbol 53 MovieClip
"attMask"Symbol 322 MovieClip Frame 27Symbol 192 MovieClip
"bow"Symbol 322 MovieClip Frame 32Symbol 172 MovieClip
"tsb1"Symbol 356 MovieClip Frame 1Symbol 354 MovieClip
"enar1"Symbol 357 MovieClip Frame 1Symbol 113 MovieClip
"player"Symbol 357 MovieClip Frame 1Symbol 322 MovieClip
"explosion"Symbol 357 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 357 MovieClip Frame 1Symbol 165 MovieClip
"spang"Symbol 357 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 357 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 357 MovieClip Frame 1Symbol 225 MovieClip
"mil"Symbol 357 MovieClip Frame 1Symbol 346 MovieClip
"fl1"Symbol 357 MovieClip Frame 1Symbol 349 MovieClip
"th1"Symbol 357 MovieClip Frame 1Symbol 350 MovieClip
"endBlock"Symbol 357 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 357 MovieClip Frame 1Symbol 356 MovieClip
"hitMask"Symbol 361 MovieClip Frame 1Symbol 286 MovieClip
"attMask"Symbol 361 MovieClip Frame 33Symbol 307 MovieClip
"hitMask"Symbol 363 MovieClip Frame 1Symbol 53 MovieClip
"tsb2"Symbol 368 MovieClip Frame 1Symbol 354 MovieClip
"tsb1"Symbol 368 MovieClip Frame 1Symbol 354 MovieClip
"fl2"Symbol 369 MovieClip Frame 1Symbol 358 MovieClip
"th2"Symbol 369 MovieClip Frame 1Symbol 359 MovieClip
"player"Symbol 369 MovieClip Frame 1Symbol 322 MovieClip
"enar2"Symbol 369 MovieClip Frame 1Symbol 113 MovieClip
"explosion"Symbol 369 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 369 MovieClip Frame 1Symbol 165 MovieClip
"enar1"Symbol 369 MovieClip Frame 1Symbol 113 MovieClip
"spang"Symbol 369 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 369 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 369 MovieClip Frame 1Symbol 225 MovieClip
"fl1"Symbol 369 MovieClip Frame 1Symbol 349 MovieClip
"th1"Symbol 369 MovieClip Frame 1Symbol 350 MovieClip
"endBlock"Symbol 369 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 369 MovieClip Frame 1Symbol 368 MovieClip
"player"Symbol 385 MovieClip Frame 1Symbol 280 MovieClip
"explosion"Symbol 385 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 385 MovieClip Frame 1Symbol 165 MovieClip
"spang"Symbol 385 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 385 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 385 MovieClip Frame 1Symbol 225 MovieClip
"endBlock"Symbol 385 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 385 MovieClip Frame 1Symbol 384 MovieClip
"tsb1"Symbol 390 MovieClip Frame 1Symbol 354 MovieClip
"player"Symbol 391 MovieClip Frame 1Symbol 322 MovieClip
"mil"Symbol 391 MovieClip Frame 1Symbol 387 MovieClip
"explosion"Symbol 391 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 391 MovieClip Frame 1Symbol 165 MovieClip
"spang"Symbol 391 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 391 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 391 MovieClip Frame 1Symbol 225 MovieClip
"fl1"Symbol 391 MovieClip Frame 1Symbol 349 MovieClip
"th1"Symbol 391 MovieClip Frame 1Symbol 350 MovieClip
"endBlock"Symbol 391 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 391 MovieClip Frame 1Symbol 390 MovieClip
"hitMask"Symbol 399 MovieClip Frame 1Symbol 53 MovieClip
"mRope"Symbol 427 MovieClip Frame 1Symbol 421 MovieClip
"endBlock"Symbol 434 MovieClip Frame 1Symbol 392 MovieClip
"explosion"Symbol 434 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 434 MovieClip Frame 1Symbol 165 MovieClip
"player"Symbol 434 MovieClip Frame 1Symbol 322 MovieClip
"beam"Symbol 434 MovieClip Frame 1Symbol 399 MovieClip
"g3"Symbol 434 MovieClip Frame 1Symbol 400 MovieClip
"g2"Symbol 434 MovieClip Frame 1Symbol 401 MovieClip
"g1"Symbol 434 MovieClip Frame 1Symbol 381 MovieClip
"oni"Symbol 434 MovieClip Frame 1Symbol 414 MovieClip
"shrine"Symbol 434 MovieClip Frame 1Symbol 427 MovieClip
"spang"Symbol 434 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 434 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 434 MovieClip Frame 1Symbol 225 MovieClip
"endBlock"Symbol 434 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 434 MovieClip Frame 1Symbol 433 MovieClip
"player"Symbol 435 MovieClip Frame 1Symbol 322 MovieClip
"mil"Symbol 435 MovieClip Frame 1Symbol 387 MovieClip
"explosion"Symbol 435 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 435 MovieClip Frame 1Symbol 165 MovieClip
"spang"Symbol 435 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 435 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 435 MovieClip Frame 1Symbol 225 MovieClip
"fl1"Symbol 435 MovieClip Frame 1Symbol 349 MovieClip
"th1"Symbol 435 MovieClip Frame 1Symbol 350 MovieClip
"endBlock"Symbol 435 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 435 MovieClip Frame 1Symbol 390 MovieClip
"player"Symbol 436 MovieClip Frame 1Symbol 280 MovieClip
"explosion"Symbol 436 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 436 MovieClip Frame 1Symbol 165 MovieClip
"spang"Symbol 436 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 436 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 436 MovieClip Frame 1Symbol 225 MovieClip
"endBlock"Symbol 436 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 436 MovieClip Frame 1Symbol 384 MovieClip
"fl2"Symbol 437 MovieClip Frame 1Symbol 358 MovieClip
"th2"Symbol 437 MovieClip Frame 1Symbol 359 MovieClip
"player"Symbol 437 MovieClip Frame 1Symbol 322 MovieClip
"enar2"Symbol 437 MovieClip Frame 1Symbol 113 MovieClip
"explosion"Symbol 437 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 437 MovieClip Frame 1Symbol 165 MovieClip
"enar1"Symbol 437 MovieClip Frame 1Symbol 113 MovieClip
"spang"Symbol 437 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 437 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 437 MovieClip Frame 1Symbol 225 MovieClip
"fl1"Symbol 437 MovieClip Frame 1Symbol 349 MovieClip
"th1"Symbol 437 MovieClip Frame 1Symbol 350 MovieClip
"endBlock"Symbol 437 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 437 MovieClip Frame 1Symbol 368 MovieClip
"enar1"Symbol 438 MovieClip Frame 1Symbol 113 MovieClip
"player"Symbol 438 MovieClip Frame 1Symbol 322 MovieClip
"explosion"Symbol 438 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 438 MovieClip Frame 1Symbol 165 MovieClip
"spang"Symbol 438 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 438 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 438 MovieClip Frame 1Symbol 225 MovieClip
"mil"Symbol 438 MovieClip Frame 1Symbol 346 MovieClip
"fl1"Symbol 438 MovieClip Frame 1Symbol 349 MovieClip
"th1"Symbol 438 MovieClip Frame 1Symbol 350 MovieClip
"endBlock"Symbol 438 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 438 MovieClip Frame 1Symbol 356 MovieClip
"enar3"Symbol 439 MovieClip Frame 1Symbol 113 MovieClip
"player"Symbol 439 MovieClip Frame 1Symbol 280 MovieClip
"enar2"Symbol 439 MovieClip Frame 1Symbol 113 MovieClip
"enar1"Symbol 439 MovieClip Frame 1Symbol 113 MovieClip
"explosion"Symbol 439 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 439 MovieClip Frame 1Symbol 165 MovieClip
"spang"Symbol 439 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 439 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 439 MovieClip Frame 1Symbol 225 MovieClip
"endBlock"Symbol 439 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 439 MovieClip Frame 1Symbol 319 MovieClip
"enar3"Symbol 440 MovieClip Frame 1Symbol 113 MovieClip
"enar2"Symbol 440 MovieClip Frame 1Symbol 113 MovieClip
"explosion"Symbol 440 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 440 MovieClip Frame 1Symbol 165 MovieClip
"enar1"Symbol 440 MovieClip Frame 1Symbol 113 MovieClip
"player"Symbol 440 MovieClip Frame 1Symbol 213 MovieClip
"spang"Symbol 440 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 440 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 440 MovieClip Frame 1Symbol 225 MovieClip
"mil"Symbol 440 MovieClip Frame 1Symbol 227 MovieClip
"endBlock"Symbol 440 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 440 MovieClip Frame 1Symbol 273 MovieClip
"endBlock"Symbol 441 MovieClip Frame 1Symbol 392 MovieClip
"explosion"Symbol 441 MovieClip Frame 1Symbol 163 MovieClip
"seed"Symbol 441 MovieClip Frame 1Symbol 165 MovieClip
"player"Symbol 441 MovieClip Frame 1Symbol 322 MovieClip
"beam"Symbol 441 MovieClip Frame 1Symbol 399 MovieClip
"g3"Symbol 441 MovieClip Frame 1Symbol 400 MovieClip
"g2"Symbol 441 MovieClip Frame 1Symbol 401 MovieClip
"g1"Symbol 441 MovieClip Frame 1Symbol 381 MovieClip
"oni"Symbol 441 MovieClip Frame 1Symbol 414 MovieClip
"shrine"Symbol 441 MovieClip Frame 1Symbol 427 MovieClip
"spang"Symbol 441 MovieClip Frame 1Symbol 215 MovieClip
"deathEffect"Symbol 441 MovieClip Frame 1Symbol 223 MovieClip
"arrow1"Symbol 441 MovieClip Frame 1Symbol 225 MovieClip
"endBlock"Symbol 441 MovieClip Frame 1Symbol 268 MovieClip
"ground"Symbol 441 MovieClip Frame 1Symbol 433 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 40 MovieClip Frame 1
"endGuy"Symbol 40 MovieClip Frame 2
"warpIn"Symbol 44 MovieClip Frame 1
"off"Symbol 44 MovieClip Frame 11
"warpOut"Symbol 44 MovieClip Frame 12
"fadeIn"Symbol 60 MovieClip Frame 1
"off"Symbol 60 MovieClip Frame 11
"fadeOut"Symbol 60 MovieClip Frame 12
"gameOver"Symbol 60 MovieClip Frame 53
"run"Symbol 142 MovieClip Frame 2
"jumpUp"Symbol 142 MovieClip Frame 18
"jumpDown"Symbol 142 MovieClip Frame 19
"wince"Symbol 142 MovieClip Frame 20
"shoot"Symbol 142 MovieClip Frame 21
"run"Symbol 154 MovieClip Frame 2
"jumpUp"Symbol 154 MovieClip Frame 18
"jumpDown"Symbol 154 MovieClip Frame 19
"wince"Symbol 154 MovieClip Frame 20
"shoot"Symbol 154 MovieClip Frame 21
"run"Symbol 166 MovieClip Frame 2
"jumpUp"Symbol 166 MovieClip Frame 18
"jumpDown"Symbol 166 MovieClip Frame 19
"wince"Symbol 166 MovieClip Frame 20
"shoot"Symbol 166 MovieClip Frame 21
"stand"Symbol 213 MovieClip Frame 1
"jumpUp"Symbol 213 MovieClip Frame 2
"jumpDown"Symbol 213 MovieClip Frame 3
"wince"Symbol 213 MovieClip Frame 4
"run"Symbol 213 MovieClip Frame 5
"attack"Symbol 213 MovieClip Frame 25
"ko"Symbol 213 MovieClip Frame 31
"shoot"Symbol 213 MovieClip Frame 32
"duck"Symbol 213 MovieClip Frame 41
"roll"Symbol 213 MovieClip Frame 42
"throw"Symbol 213 MovieClip Frame 51
"stand"Symbol 280 MovieClip Frame 1
"jumpUp"Symbol 280 MovieClip Frame 2
"jumpDown"Symbol 280 MovieClip Frame 3
"wince"Symbol 280 MovieClip Frame 4
"run"Symbol 280 MovieClip Frame 5
"attack"Symbol 280 MovieClip Frame 25
"ko"Symbol 280 MovieClip Frame 31
"shoot"Symbol 280 MovieClip Frame 32
"duck"Symbol 280 MovieClip Frame 41
"roll"Symbol 280 MovieClip Frame 42
"throw"Symbol 280 MovieClip Frame 51
"stand"Symbol 309 MovieClip Frame 1
"jump"Symbol 309 MovieClip Frame 2
"wince"Symbol 309 MovieClip Frame 3
"run"Symbol 309 MovieClip Frame 4
"attack"Symbol 309 MovieClip Frame 19
"run"Symbol 310 MovieClip Frame 2
"jumpUp"Symbol 310 MovieClip Frame 18
"jumpDown"Symbol 310 MovieClip Frame 19
"wince"Symbol 310 MovieClip Frame 20
"shoot"Symbol 310 MovieClip Frame 21
"stand"Symbol 322 MovieClip Frame 1
"jumpUp"Symbol 322 MovieClip Frame 2
"jumpDown"Symbol 322 MovieClip Frame 3
"wince"Symbol 322 MovieClip Frame 4
"run"Symbol 322 MovieClip Frame 5
"attack"Symbol 322 MovieClip Frame 25
"ko"Symbol 322 MovieClip Frame 31
"shoot"Symbol 322 MovieClip Frame 32
"duck"Symbol 322 MovieClip Frame 41
"roll"Symbol 322 MovieClip Frame 42
"throw"Symbol 322 MovieClip Frame 51
"grow"Symbol 342 MovieClip Frame 1
"idle   "Symbol 342 MovieClip Frame 33
"grow"Symbol 349 MovieClip Frame 1
"idle   "Symbol 349 MovieClip Frame 33
"grow"Symbol 358 MovieClip Frame 1
"idle   "Symbol 358 MovieClip Frame 33
"grow"Symbol 360 MovieClip Frame 1
"idle   "Symbol 360 MovieClip Frame 33
"stand"Symbol 361 MovieClip Frame 1
"jump"Symbol 361 MovieClip Frame 2
"wince"Symbol 361 MovieClip Frame 3
"run"Symbol 361 MovieClip Frame 4
"attack"Symbol 361 MovieClip Frame 19
"run"Symbol 363 MovieClip Frame 2
"jumpUp"Symbol 363 MovieClip Frame 18
"jumpDown"Symbol 363 MovieClip Frame 19
"wince"Symbol 363 MovieClip Frame 20
"shoot"Symbol 363 MovieClip Frame 21
"float"Symbol 381 MovieClip Frame 1
"poof"Symbol 381 MovieClip Frame 21
"float"Symbol 400 MovieClip Frame 1
"poof"Symbol 400 MovieClip Frame 21
"float"Symbol 401 MovieClip Frame 1
"poof"Symbol 401 MovieClip Frame 21
"shock"Symbol 414 MovieClip Frame 11
"wince"Symbol 414 MovieClip Frame 12
"pull2"Symbol 421 MovieClip Frame 6
"pull"Symbol 421 MovieClip Frame 17

Dynamic Text Variables

_root.count1Symbol 29 EditableText"100"
_root.world.endBlock.srSymbol 67 EditableText"Paladin"
_root.world.endBlock.stSymbol 68 EditableText"10000"
_root.world.endBlock.s3Symbol 69 EditableText"10000"
_root.world.endBlock.s2Symbol 70 EditableText"10000"
_root.world.endBlock.s1Symbol 71 EditableText"10000"
_root.dWindow.messageSymbol 89 EditableText"Hey, you're a Knight of Serenity right?  Thank goodness you're here!  You've got to help us!"
_root.dWindow.messageSymbol 90 EditableText"Hey, you're a Knight of Serenity right?  Thank goodness you're here!  You've got to help us!"
_root.world.player.livesSymbol 101 EditableText"3"
_root.world.player.arrowsSymbol 106 EditableText"00"




http://swfchan.com/16/78737/info.shtml
Created: 3/4 -2019 12:07:19 Last modified: 3/4 -2019 12:07:19 Server time: 21/12 -2024 17:44:34