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

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

Armadillo Knight 3.swf

This is the info page for
Flash #21897

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


Text
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

PLAYER SELECT

Quit

Quit

Quit

Continue

Continue

Continue

Game Over

Click to Continue

Click to Continue

Click to Continue

Paladin

10000

10000

10000

10000

00

(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

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
stop();
Instance of Symbol 57 MovieClip "charDisp" in Frame 4
onClipEvent (load) { stop(); }
Frame 5
function continueNow() { _root.egStart = false; _root.jukebox.snd.stop(); gotoAndPlay (3); } stop(); _root.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 66 MovieClip "jukebox" in Frame 5
onClipEvent (load) { function vReset() { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(4); } snd = new Sound(); vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 98 MovieClip "tBoard" in Frame 5
onClipEvent (load) { this._visible = false; }
Instance of Symbol 102 MovieClip in Frame 5
onClipEvent (enterFrame) { if (0 >= _root.world.player.bombs) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 108 MovieClip "bossGage" in Frame 5
onClipEvent (load) { this._visible = false; }
Instance of Symbol 121 MovieClip "dWindow" in Frame 5
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.egStart) { _root.jukebox.gotoAndPlay(2); _root.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 134 MovieClip in Frame 5
onClipEvent (enterFrame) { if (_parent.world.player.arrows == 0) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 408 MovieClip "world" in Frame 5
onClipEvent (load) { safeY = 5197; startX = this._x; startY = this._y; this._quality = "LOW"; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 409 MovieClip "white" in Frame 5
onClipEvent (load) { this._visible = false; }
Frame 6
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop(); _root.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 453 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(); _root.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 526 MovieClip "world" in Frame 7
onClipEvent (load) { safeY = 2300; 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.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 579 MovieClip "world" in Frame 8
onClipEvent (load) { safeY = 2000; 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.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 586 MovieClip "world" in Frame 9
onClipEvent (load) { safeY = 5197; 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(); _root.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 591 MovieClip "world" in Frame 10
onClipEvent (load) { safeY = 5197; startX = this._x; startY = this._y; this._quality = "LOW"; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Frame 11
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop(); _root.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 607 MovieClip "world" in Frame 11
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 12
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop(); _root.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 617 MovieClip "world" in Frame 12
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 13
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop(); _root.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 625 MovieClip "world" in Frame 13
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 14
function continueNow() { _root.jukebox.snd.stop(); gotoAndPlay (3); } stop(); _root.theTarget = _root.world; if (_root.selectedPlayer == "MILO") { _root.world.player = _root.world.milo; } if (_root.selectedPlayer == "GALLAN") { _root.world.player = _root.world.gallan; }
Instance of Symbol 697 MovieClip "world" in Frame 14
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 104
stop();
Symbol 45 Button
on (rollOver) { _root.charDisp.gotoAndStop(2); } on (rollOut) { _root.charDisp.gotoAndStop(1); } on (release) { _root.selectedPlayer = "MILO"; _root.nextFrame(); }
Symbol 50 Button
on (rollOver) { _root.charDisp.gotoAndStop(3); } on (rollOut) { _root.charDisp.gotoAndStop(1); } on (release) { _root.selectedPlayer = "GALLAN"; _root.nextFrame(); }
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 1
doorFlag = false;
Symbol 69 MovieClip Frame 11
stop(); this._visible = false;
Symbol 69 MovieClip Frame 12
this._visible = true;
Symbol 69 MovieClip Frame 39
_root.nextFrame(); doorFlag = true; this.gotoAndPlay("warpIn"); _root.white._visible = false;
Symbol 75 Button
on (release) { getURL ("doneDonate.html"); }
Symbol 83 Button
on (release) { _root.continueNow(); }
Symbol 85 MovieClip Frame 1
fadeType = "cont"; resetFlag = false;
Symbol 85 MovieClip Frame 11
stop(); this._visible = false;
Symbol 85 MovieClip Frame 12
this._visible = true;
Symbol 85 MovieClip Frame 37
if (fadeType == "cont") { resetFlag = true; }
Symbol 85 MovieClip Frame 39
resetFlag = false;
Symbol 85 MovieClip Frame 52
if (fadeType == "cont") { gotoAndPlay (1); } if (fadeType == "game") { gotoAndPlay (53); }
Symbol 85 MovieClip Frame 53
stop();
Symbol 89 Button
on (release) { _quality = "MEDIUM"; gotoAndPlay (1); }
Symbol 119 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
stop();
Instance of Symbol 123 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (load) { if (_root.selectedPlayer == "GALLAN") { this._visible = true; } else { this._visible = false; } }
Instance of Symbol 125 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (load) { if (_root.selectedPlayer == "MILO") { this._visible = true; } else { this._visible = false; } }
Instance of Symbol 128 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (load) { if (_root.selectedPlayer == "GALLAN") { this.gotoAndStop(1); } if (_root.selectedPlayer == "MILO") { this.gotoAndStop(2); } }
Symbol 148 MovieClip Frame 1
if (_parent.arrows == 0) { this._visible = false; } else { this._visible = true; }
Symbol 150 MovieClip Frame 1
if (_parent.arrows == 0) { this._visible = false; } else { this._visible = true; }
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 238 MovieClip Frame 3
stop();
Symbol 238 MovieClip Frame 4
stop();
Symbol 238 MovieClip Frame 24
gotoAndPlay (5);
Symbol 238 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 238 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 238 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 238 MovieClip Frame 31
stop();
Symbol 238 MovieClip Frame 43
gotoAndPlay (32);
Symbol 238 MovieClip Frame 49
gotoAndPlay (44);
Symbol 238 MovieClip Frame 50
stop();
Symbol 238 MovieClip Frame 51
stop();
Symbol 238 MovieClip Frame 52
stop();
Symbol 238 MovieClip Frame 53
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 238 MovieClip Frame 53
onClipEvent (load) { this._visible = false; }
Symbol 238 MovieClip Frame 60
doneAttack = true; stop();
Symbol 238 MovieClip Frame 61
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 238 MovieClip Frame 69
stop(); doneShoot = true;
Symbol 238 MovieClip Frame 70
stop();
Symbol 238 MovieClip Frame 79
gotoAndPlay (71);
Symbol 238 MovieClip Frame 80
doneThrow = false;
Symbol 238 MovieClip Frame 83
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 238 MovieClip Frame 88
stop(); doneThrow = true;
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
stop();
Symbol 336 MovieClip Frame 3
stop();
Symbol 336 MovieClip Frame 4
stop();
Symbol 336 MovieClip Frame 24
gotoAndPlay (5);
Symbol 336 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 336 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 336 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 336 MovieClip Frame 31
stop();
Symbol 336 MovieClip Frame 43
gotoAndPlay (32);
Symbol 336 MovieClip Frame 49
gotoAndPlay (44);
Symbol 336 MovieClip Frame 50
stop();
Symbol 336 MovieClip Frame 51
stop();
Symbol 336 MovieClip Frame 52
stop();
Symbol 336 MovieClip Frame 53
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 336 MovieClip Frame 53
onClipEvent (load) { this._visible = false; }
Symbol 336 MovieClip Frame 60
doneAttack = true; stop();
Symbol 336 MovieClip Frame 61
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 336 MovieClip Frame 69
stop(); doneShoot = true;
Symbol 336 MovieClip Frame 70
stop();
Symbol 336 MovieClip Frame 79
gotoAndPlay (71);
Symbol 336 MovieClip Frame 80
doneThrow = false;
Symbol 336 MovieClip Frame 83
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 336 MovieClip Frame 88
stop(); doneThrow = true;
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 10
this._y = _root.world.safeY;
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 20
this._y = _root.world.safeY; stop();
Instance of Symbol 398 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 400 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 401 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 400 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 402 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 403 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 0; _parent._parent.player.snowboard = false; _parent._parent.player.groundSlope = 0; } }
Instance of Symbol 405 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 3; _parent._parent.player.slideSpeed = 0; } }
Instance of Symbol 406 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 0; } }
Instance of Symbol 238 MovieClip "gallan" in Symbol 408 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 336 MovieClip "milo" in Symbol 408 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 338 MovieClip "seed" in Symbol 408 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 408 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--; _root.arrowDisplay = _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 342 MovieClip in Symbol 408 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; _root.arrowDisplay = _parent.player.arrows; 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 344 MovieClip in Symbol 408 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 345 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.sb2._visible = true; _parent.player.snowboard = false; _parent.sb1.s.stop("snowSlide"); } }
Instance of Symbol 346 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.player.snowBoard = true; } sb1._visible = false; }
Instance of Symbol 359 MovieClip in Symbol 408 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 361 MovieClip in Symbol 408 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 365 MovieClip "deathEffect" in Symbol 408 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 366 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 386 MovieClip in Symbol 408 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(6, "This is the bunny hill. Thanks for saving Kenora by the way..."); active = false; } }
Instance of Symbol 371 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 392 MovieClip "sb1" in Symbol 408 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = true; s.setVolume(0); s.start(0, 99); } s = new Sound(this); s.attachSound("snowSlide"); vReset(); } onClipEvent (enterFrame) { if (_parent.player.grounded && (_parent.player.snowboard)) { s.setVolume(100); } else { s.setVolume(0); } if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = false; } }
Instance of Symbol 394 MovieClip "sb2" in Symbol 408 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = true; } }
Instance of Symbol 407 MovieClip "ground" in Symbol 408 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
stop();
Symbol 416 MovieClip Frame 3
stop();
Symbol 416 MovieClip Frame 4
stop();
Symbol 416 MovieClip Frame 24
gotoAndPlay (5);
Symbol 416 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 416 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 416 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 416 MovieClip Frame 31
stop();
Symbol 416 MovieClip Frame 43
gotoAndPlay (32);
Symbol 416 MovieClip Frame 49
gotoAndPlay (44);
Symbol 416 MovieClip Frame 50
stop();
Symbol 416 MovieClip Frame 51
stop();
Symbol 416 MovieClip Frame 52
stop();
Symbol 416 MovieClip Frame 53
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 416 MovieClip Frame 53
onClipEvent (load) { this._visible = false; }
Symbol 416 MovieClip Frame 60
doneAttack = true; stop();
Symbol 416 MovieClip Frame 61
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 416 MovieClip Frame 69
stop(); doneShoot = true;
Symbol 416 MovieClip Frame 70
stop();
Symbol 416 MovieClip Frame 79
gotoAndPlay (71);
Symbol 416 MovieClip Frame 80
doneThrow = false;
Symbol 416 MovieClip Frame 83
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 416 MovieClip Frame 88
stop(); doneThrow = true;
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 2
stop();
Symbol 417 MovieClip Frame 3
stop();
Symbol 417 MovieClip Frame 4
stop();
Symbol 417 MovieClip Frame 24
gotoAndPlay (5);
Symbol 417 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 417 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 417 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 417 MovieClip Frame 31
stop();
Symbol 417 MovieClip Frame 43
gotoAndPlay (32);
Symbol 417 MovieClip Frame 49
gotoAndPlay (44);
Symbol 417 MovieClip Frame 50
stop();
Symbol 417 MovieClip Frame 51
stop();
Symbol 417 MovieClip Frame 52
stop();
Symbol 417 MovieClip Frame 53
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 417 MovieClip Frame 53
onClipEvent (load) { this._visible = false; }
Symbol 417 MovieClip Frame 60
doneAttack = true; stop();
Symbol 417 MovieClip Frame 61
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 417 MovieClip Frame 69
stop(); doneShoot = true;
Symbol 417 MovieClip Frame 70
stop();
Symbol 417 MovieClip Frame 79
gotoAndPlay (71);
Symbol 417 MovieClip Frame 80
doneThrow = false;
Symbol 417 MovieClip Frame 83
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 417 MovieClip Frame 88
stop(); doneThrow = true;
Symbol 438 MovieClip Frame 1
stop();
Symbol 438 MovieClip Frame 2
shattering = true;
Symbol 438 MovieClip Frame 14
stop(); deactivate();
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 27
stop();
Instance of Symbol 416 MovieClip "gallan" in Symbol 453 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 453 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 344 MovieClip in Symbol 453 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 418 MovieClip "seed" in Symbol 453 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 453 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 361 MovieClip in Symbol 453 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 365 MovieClip "deathEffect" in Symbol 453 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 453 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--; _root.arrowDisplay = _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 422 MovieClip in Symbol 453 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(3, "Oh, hey Gallan! Haven't seen you at Blizzard Peak for awhile!"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(3, "Welcome to Bilzzard Peak kid! Did you come for the boarding?"); active = false; } } }
Instance of Symbol 424 MovieClip in Symbol 453 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(2, "Are you one of Magenta's friends too?"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(2, "*giggle* You're cute!"); active = false; } } }
Instance of Symbol 426 MovieClip in Symbol 453 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(1, "The caves ahead ice up when it gets cold."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(1, "The caves ahead ice up when it gets cold."); active = false; } } }
Instance of Symbol 427 MovieClip in Symbol 453 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(2, "Goodie! Fresh powder! Time to head to the board park!"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(2, "Cold? What are you talking about?"); active = false; } } }
Instance of Symbol 366 MovieClip in Symbol 453 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 453 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 453 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 438 MovieClip in Symbol 453 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 453 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 452 MovieClip "ground" in Symbol 453 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 460 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 19
this._y = _root.world.safeY; curing = false;
Symbol 460 MovieClip Frame 20
stop();
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 2
stop();
Symbol 464 MovieClip Frame 3
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 17
gotoAndPlay (2);
Symbol 495 MovieClip Frame 18
stop();
Symbol 495 MovieClip Frame 19
stop();
Symbol 495 MovieClip Frame 20
stop();
Symbol 495 MovieClip Frame 21
shooting = true;
Symbol 495 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 495 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 17
gotoAndPlay (2);
Symbol 496 MovieClip Frame 18
stop();
Symbol 496 MovieClip Frame 19
stop();
Symbol 496 MovieClip Frame 20
stop();
Symbol 496 MovieClip Frame 21
shooting = true;
Symbol 496 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 496 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 497 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 27
stop();
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 27
stop();
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 27
stop();
Symbol 500 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 27
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 19
this._y = _root.world.safeY; curing = false;
Symbol 504 MovieClip Frame 20
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 2
shattering = true;
Symbol 505 MovieClip Frame 14
stop(); deactivate();
Instance of Symbol 416 MovieClip "gallan" in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 460 MovieClip in Symbol 526 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 342 MovieClip in Symbol 526 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; _root.arrowDisplay = _parent.player.arrows; 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 359 MovieClip in Symbol 526 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 464 MovieClip in Symbol 526 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 526 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 526 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 526 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) && (Math.abs(_parent.player._y - this._y) < 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 466 MovieClip "enar2" in Symbol 526 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 >= 800) { deactivate(); } } } }
Instance of Symbol 495 MovieClip in Symbol 526 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 466 MovieClip "enar1" in Symbol 526 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 >= 800) { deactivate(); } } } }
Instance of Symbol 496 MovieClip in Symbol 526 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 464 MovieClip in Symbol 526 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 526 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) && (Math.abs(_parent.player._y - this._y) < 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 418 MovieClip "seed" in Symbol 526 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 526 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 361 MovieClip in Symbol 526 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 365 MovieClip "deathEffect" in Symbol 526 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 526 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--; _root.arrowDisplay = _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 366 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 497 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock04; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 498 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock03; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 499 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock02; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 500 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 342 MovieClip in Symbol 526 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; _root.arrowDisplay = _parent.player.arrows; 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 371 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 501 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 504 MovieClip in Symbol 526 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 505 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 505 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 505 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 505 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 505 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 509 MovieClip "ballTrigger" in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vreset() { active = false; } vreset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _parent.snowball.activate(); active = true; } } }
Instance of Symbol 511 MovieClip "snowball" in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { rollDirection = -1; maxRoll = 10; active = false; grounded = false; hVelocity = 0; vVelocity = 0; tVelocity = 30; gravity = 4; this._x = startX; this._y = startY; damage = 50; } function activate() { this._x = 3870; this._y = 1151; active = true; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (active) { if (grounded) { if ((hVelocity < maxRoll) && (rollDirection == 1)) { hVelocity = hVelocity + (1 * rollDirection); } if (((maxRoll * -1) < hVelocity) && (rollDirection == -1)) { hVelocity = hVelocity + (1 * rollDirection); } } if (0 < hVelocity) { this._rotation = this._rotation + 5; } if (hVelocity < 0) { this._rotation = this._rotation - 5; } if ((this.hitmask.hitTest(_root.world.player.hitMask) && (active)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x - (350 * rollDirection), 25, true); this.hVelocity = (this.hVelocity / 2) - 1; } 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) + vVelocity, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true)) { } this._x = this._x + hVelocity; if (_parent.ground.hitTest(this._x + _parent._x, (newY + (this._height / 2)) + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, (newY + (this._height / 2)) + _parent._y, true)) { newY--; } grounded = true; } } this._y = newY; if (_root.world.safeY < this._y) { active = false; } } }
Instance of Symbol 438 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 525 MovieClip "ground" in Symbol 526 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
stop();
Symbol 527 MovieClip Frame 3
stop();
Symbol 527 MovieClip Frame 4
stop();
Symbol 527 MovieClip Frame 24
gotoAndPlay (5);
Symbol 527 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 527 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 527 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 527 MovieClip Frame 31
stop();
Symbol 527 MovieClip Frame 43
gotoAndPlay (32);
Symbol 527 MovieClip Frame 49
gotoAndPlay (44);
Symbol 527 MovieClip Frame 50
stop();
Symbol 527 MovieClip Frame 51
stop();
Symbol 527 MovieClip Frame 52
stop();
Symbol 527 MovieClip Frame 53
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 527 MovieClip Frame 53
onClipEvent (load) { this._visible = false; }
Symbol 527 MovieClip Frame 60
doneAttack = true; stop();
Symbol 527 MovieClip Frame 61
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 527 MovieClip Frame 69
stop(); doneShoot = true;
Symbol 527 MovieClip Frame 70
stop();
Symbol 527 MovieClip Frame 79
gotoAndPlay (71);
Symbol 527 MovieClip Frame 80
doneThrow = false;
Symbol 527 MovieClip Frame 83
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 527 MovieClip Frame 88
stop(); doneThrow = true;
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 2
stop();
Symbol 528 MovieClip Frame 3
stop();
Symbol 528 MovieClip Frame 4
stop();
Symbol 528 MovieClip Frame 24
gotoAndPlay (5);
Symbol 528 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 528 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 528 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 528 MovieClip Frame 31
stop();
Symbol 528 MovieClip Frame 43
gotoAndPlay (32);
Symbol 528 MovieClip Frame 49
gotoAndPlay (44);
Symbol 528 MovieClip Frame 50
stop();
Symbol 528 MovieClip Frame 51
stop();
Symbol 528 MovieClip Frame 52
stop();
Symbol 528 MovieClip Frame 53
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 528 MovieClip Frame 53
onClipEvent (load) { this._visible = false; }
Symbol 528 MovieClip Frame 60
doneAttack = true; stop();
Symbol 528 MovieClip Frame 61
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 528 MovieClip Frame 69
stop(); doneShoot = true;
Symbol 528 MovieClip Frame 70
stop();
Symbol 528 MovieClip Frame 79
gotoAndPlay (71);
Symbol 528 MovieClip Frame 80
doneThrow = false;
Symbol 528 MovieClip Frame 83
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 528 MovieClip Frame 88
stop(); doneThrow = true;
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 2
stop();
Symbol 552 MovieClip Frame 3
stop();
Symbol 552 MovieClip Frame 18
gotoAndPlay (4);
Symbol 552 MovieClip Frame 37
attacking = false; goFight = false;
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 27
stop();
Symbol 562 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 27
stop();
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 27
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 27
stop();
Instance of Symbol 527 MovieClip "gallan" in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = startX; this._y = startY; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = startX; this._y = startY; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 528 MovieClip "milo" in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = startX; this._y = startY; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = startX; this._y = startY; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 464 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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 552 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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.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 552 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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.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 464 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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 344 MovieClip in Symbol 579 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 504 MovieClip in Symbol 579 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 504 MovieClip in Symbol 579 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 552 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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.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 344 MovieClip in Symbol 579 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 464 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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 554 MovieClip in Symbol 579 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++; _root.livesDisplay = _parent.player.lives; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { } }
Instance of Symbol 464 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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 418 MovieClip "seed" in Symbol 579 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 579 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 361 MovieClip in Symbol 579 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 365 MovieClip "deathEffect" in Symbol 579 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 579 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--; _root.arrowDisplay = _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 366 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 555 MovieClip in Symbol 579 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(1, "The board park ahead is experts only."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(1, "The board park ahead is experts only."); active = false; } } }
Instance of Symbol 371 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 556 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(3, "I haven't seen Magenta for a long time! She must be snuggled down for the winter."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(3, "I haven't seen Magenta for a long time! She must be snuggled down for the winter."); active = false; } } }
Instance of Symbol 557 MovieClip in Symbol 579 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(2, "Magenta doesn't like snowboarding she says it's det-ri-ment-al to her health."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(2, "Magenta doesn't like snowboarding she says it's det-ri-ment-al to her health."); active = false; } } }
Instance of Symbol 558 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(3, "Strange creatures? Well, no I haven't seen any, have you?"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(3, "Strange creatures? Well, no I haven't seen any, have you?"); active = false; } } }
Instance of Symbol 559 MovieClip in Symbol 579 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(1, "Hello again Sir Gallan! Magenta's hut is up ahead, beyond the board park."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(1, "Magenta's hut? It's up ahead, past the board park."); active = false; } } }
Instance of Symbol 501 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 561 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock08; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 562 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock07; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 563 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock06; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 564 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock05; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 497 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock04; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 498 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock03; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 499 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock02; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 552 MovieClip in Symbol 579 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) && (Math.abs(_parent.player._y - this._y) < 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.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 500 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 438 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 577 MovieClip "ground" in Symbol 579 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 580 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 2
stop();
Symbol 580 MovieClip Frame 3
stop();
Symbol 580 MovieClip Frame 4
stop();
Symbol 580 MovieClip Frame 24
gotoAndPlay (5);
Symbol 580 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 580 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 580 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 580 MovieClip Frame 31
stop();
Symbol 580 MovieClip Frame 43
gotoAndPlay (32);
Symbol 580 MovieClip Frame 49
gotoAndPlay (44);
Symbol 580 MovieClip Frame 50
stop();
Symbol 580 MovieClip Frame 51
stop();
Symbol 580 MovieClip Frame 52
stop();
Symbol 580 MovieClip Frame 53
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 580 MovieClip Frame 53
onClipEvent (load) { this._visible = false; }
Symbol 580 MovieClip Frame 60
doneAttack = true; stop();
Symbol 580 MovieClip Frame 61
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 580 MovieClip Frame 69
stop(); doneShoot = true;
Symbol 580 MovieClip Frame 70
stop();
Symbol 580 MovieClip Frame 79
gotoAndPlay (71);
Symbol 580 MovieClip Frame 80
doneThrow = false;
Symbol 580 MovieClip Frame 83
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 580 MovieClip Frame 88
stop(); doneThrow = true;
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 2
stop();
Symbol 581 MovieClip Frame 3
stop();
Symbol 581 MovieClip Frame 4
stop();
Symbol 581 MovieClip Frame 24
gotoAndPlay (5);
Symbol 581 MovieClip Frame 25
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 581 MovieClip Frame 27
onClipEvent (load) { this._visible = false; }
Symbol 581 MovieClip Frame 30
stop(); doneAttack = true;
Symbol 581 MovieClip Frame 31
stop();
Symbol 581 MovieClip Frame 43
gotoAndPlay (32);
Symbol 581 MovieClip Frame 49
gotoAndPlay (44);
Symbol 581 MovieClip Frame 50
stop();
Symbol 581 MovieClip Frame 51
stop();
Symbol 581 MovieClip Frame 52
stop();
Symbol 581 MovieClip Frame 53
doneAttack = false;
Instance of Symbol 168 MovieClip "attMask" in Symbol 581 MovieClip Frame 53
onClipEvent (load) { this._visible = false; }
Symbol 581 MovieClip Frame 60
doneAttack = true; stop();
Symbol 581 MovieClip Frame 61
doneShoot = false; if (0 < this._xscale) { _parent.arrow1.activateRight(); } else { _parent.arrow1.activateLeft(); }
Symbol 581 MovieClip Frame 69
stop(); doneShoot = true;
Symbol 581 MovieClip Frame 70
stop();
Symbol 581 MovieClip Frame 79
gotoAndPlay (71);
Symbol 581 MovieClip Frame 80
doneThrow = false;
Symbol 581 MovieClip Frame 83
if (0 < this._xscale) { _parent.seed.activateRight(); } else { _parent.seed.activateLeft(); }
Symbol 581 MovieClip Frame 88
stop(); doneThrow = true;
Instance of Symbol 401 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 400 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 401 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 400 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 402 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 403 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 0; _parent._parent.player.snowboard = false; _parent._parent.player.groundSlope = 0; } }
Instance of Symbol 405 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 3; _parent._parent.player.slideSpeed = 0; } }
Instance of Symbol 406 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 0; } }
Instance of Symbol 580 MovieClip "gallan" in Symbol 586 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; _root.arrowDisplay = arrows; _root.bombDisplay = bombs; score = _root.scorePass; prevScore = score; snowboard = false; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 581 MovieClip "milo" in Symbol 586 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; _root.arrowDisplay = arrows; _root.bombDisplay = bombs; score = _root.scorePass; prevScore = score; snowboard = false; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 554 MovieClip in Symbol 586 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++; _root.livesDisplay = _parent.player.lives; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { } }
Instance of Symbol 338 MovieClip "seed" in Symbol 586 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 586 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--; _root.arrowDisplay = _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 345 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.sb2._visible = true; _parent.player.snowboard = false; _parent.sb1.s.stop("snowSlide"); } }
Instance of Symbol 346 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.player.snowBoard = true; } sb1._visible = false; }
Instance of Symbol 359 MovieClip in Symbol 586 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 361 MovieClip in Symbol 586 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 365 MovieClip "deathEffect" in Symbol 586 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 582 MovieClip in Symbol 586 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)) { if (_root.selectedPlayer == "GALLAN") { if (2 < _root.world.player.lives) { _root.dWindow.open(1, "Wow! Those were some kickin' moves sir!"); active = false; } if (_root.world.player.lives < 3) { _root.dWindow.open(1, "That was um...interesting...why don't you try skiing?"); active = false; } } if (_root.selectedPlayer == "MILO") { if (2 < _root.world.player.lives) { _root.dWindow.open(1, "Hey, not bad! I've never seen you before. Are you from the Castle?"); active = false; } if (_root.world.player.lives < 3) { _root.dWindow.open(1, "You should be careful kid. This is not a run for beginners."); active = false; } } } }
Instance of Symbol 366 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 501 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 501 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 392 MovieClip "sb1" in Symbol 586 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = true; s.setVolume(0); s.start(0, 99); } s = new Sound(this); s.attachSound("snowSlide"); vReset(); } onClipEvent (enterFrame) { if (_parent.player.grounded && (_parent.player.snowboard)) { s.setVolume(100); } else { s.setVolume(0); } if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = false; } }
Instance of Symbol 394 MovieClip "sb2" in Symbol 586 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = true; } }
Instance of Symbol 371 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 585 MovieClip "ground" in Symbol 586 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 401 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 401 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 400 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 401 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 398 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 400 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 402 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 399 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = -3; _parent._parent.player.slideSpeed = 12; } }
Instance of Symbol 403 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 0; _parent._parent.player.snowboard = false; _parent._parent.player.groundSlope = 0; } }
Instance of Symbol 405 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20, true)) { _parent._parent.player.groundSlope = 3; _parent._parent.player.slideSpeed = 0; } }
Instance of Symbol 406 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent._parent.player._x + _root.world._x, (_parent._parent.player._y + _root.world._y) + 20)) { _parent._parent.player.groundSlope = 0; _parent._parent.player.slideSpeed = 0; } }
Instance of Symbol 580 MovieClip "gallan" in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; _root.arrowDisplay = arrows; _root.bombDisplay = bombs; score = _root.scorePass; prevScore = score; snowboard = false; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 581 MovieClip "milo" in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; _root.arrowDisplay = arrows; _root.bombDisplay = bombs; score = _root.scorePass; prevScore = score; snowboard = false; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 464 MovieClip in Symbol 591 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 591 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 591 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 591 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 591 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 591 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 591 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) && (Math.abs(_parent.player._y - this._y) < 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 338 MovieClip "seed" in Symbol 591 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 591 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--; _root.arrowDisplay = _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 345 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.sb2._visible = true; _parent.player.snowboard = false; _parent.sb1.s.stop("snowSlide"); } }
Instance of Symbol 346 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.player.snowBoard = true; } sb1._visible = false; }
Instance of Symbol 359 MovieClip in Symbol 591 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 361 MovieClip in Symbol 591 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 365 MovieClip "deathEffect" in Symbol 591 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 366 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 501 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 501 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 438 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 371 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 501 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 501 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 392 MovieClip "sb1" in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = true; s.setVolume(0); s.start(0, 99); } s = new Sound(this); s.attachSound("snowSlide"); vReset(); } onClipEvent (enterFrame) { if (_parent.player.grounded && (_parent.player.snowboard)) { s.setVolume(100); } else { s.setVolume(0); } if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = false; } }
Instance of Symbol 394 MovieClip "sb2" in Symbol 591 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = true; } }
Instance of Symbol 371 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 590 MovieClip "ground" in Symbol 591 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 17
gotoAndPlay (2);
Symbol 594 MovieClip Frame 18
stop();
Symbol 594 MovieClip Frame 19
stop();
Symbol 594 MovieClip Frame 20
stop();
Symbol 594 MovieClip Frame 21
shooting = true;
Symbol 594 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 594 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 595 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 17
gotoAndPlay (2);
Symbol 595 MovieClip Frame 18
stop();
Symbol 595 MovieClip Frame 19
stop();
Symbol 595 MovieClip Frame 20
stop();
Symbol 595 MovieClip Frame 21
shooting = true;
Symbol 595 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 595 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 596 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 17
gotoAndPlay (2);
Symbol 596 MovieClip Frame 18
stop();
Symbol 596 MovieClip Frame 19
stop();
Symbol 596 MovieClip Frame 20
stop();
Symbol 596 MovieClip Frame 21
shooting = true;
Symbol 596 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 596 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 597 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 17
gotoAndPlay (2);
Symbol 597 MovieClip Frame 18
stop();
Symbol 597 MovieClip Frame 19
stop();
Symbol 597 MovieClip Frame 20
stop();
Symbol 597 MovieClip Frame 21
shooting = true;
Symbol 597 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 597 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 17
gotoAndPlay (2);
Symbol 598 MovieClip Frame 18
stop();
Symbol 598 MovieClip Frame 19
stop();
Symbol 598 MovieClip Frame 20
stop();
Symbol 598 MovieClip Frame 21
shooting = true;
Symbol 598 MovieClip Frame 27
shootArrow(); arrowCount++;
Symbol 598 MovieClip Frame 31
shooting = false; gotoAndStop (1);
Instance of Symbol 416 MovieClip "gallan" in Symbol 607 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 607 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 466 MovieClip "enar5" in Symbol 607 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 >= 800) { deactivate(); } } } }
Instance of Symbol 594 MovieClip in Symbol 607 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.enar5.activateLeft(this._x, this._y); } else { _parent.enar5.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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 460 MovieClip in Symbol 607 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 464 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 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 552 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 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.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 342 MovieClip in Symbol 607 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; _root.arrowDisplay = _parent.player.arrows; 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 466 MovieClip "enar1" in Symbol 607 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 >= 800) { deactivate(); } } } }
Instance of Symbol 595 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 552 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 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.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 464 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 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 552 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 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.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 504 MovieClip in Symbol 607 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 466 MovieClip "enar4" in Symbol 607 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 >= 800) { deactivate(); } } } }
Instance of Symbol 596 MovieClip in Symbol 607 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.enar4.activateLeft(this._x, this._y); } else { _parent.enar4.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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 466 MovieClip "enar3" in Symbol 607 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 >= 800) { deactivate(); } } } }
Instance of Symbol 597 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 466 MovieClip "enar2" in Symbol 607 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 >= 800) { deactivate(); } } } }
Instance of Symbol 598 MovieClip in Symbol 607 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 418 MovieClip "seed" in Symbol 607 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 607 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 361 MovieClip in Symbol 607 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 365 MovieClip "deathEffect" in Symbol 607 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 607 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--; _root.arrowDisplay = _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 366 MovieClip in Symbol 607 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 607 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 607 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 438 MovieClip in Symbol 607 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 607 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 606 MovieClip "ground" in Symbol 607 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 416 MovieClip "gallan" in Symbol 617 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 617 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 464 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 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 504 MovieClip in Symbol 617 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 504 MovieClip in Symbol 617 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 344 MovieClip in Symbol 617 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 466 MovieClip "enar5" in Symbol 617 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 >= 800) { deactivate(); } } } }
Instance of Symbol 594 MovieClip in Symbol 617 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.enar5.activateLeft(this._x, this._y); } else { _parent.enar5.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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 342 MovieClip in Symbol 617 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; _root.arrowDisplay = _parent.player.arrows; 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 466 MovieClip "enar1" in Symbol 617 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 >= 800) { deactivate(); } } } }
Instance of Symbol 595 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 464 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 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 552 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 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.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 466 MovieClip "enar2" in Symbol 617 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 >= 800) { deactivate(); } } } }
Instance of Symbol 598 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 418 MovieClip "seed" in Symbol 617 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 617 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 361 MovieClip in Symbol 617 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 365 MovieClip "deathEffect" in Symbol 617 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 617 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--; _root.arrowDisplay = _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 466 MovieClip "enar4" in Symbol 617 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 >= 800) { deactivate(); } } } }
Instance of Symbol 596 MovieClip in Symbol 617 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.enar4.activateLeft(this._x, this._y); } else { _parent.enar4.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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 466 MovieClip "enar3" in Symbol 617 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 >= 800) { deactivate(); } } } }
Instance of Symbol 597 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 366 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 464 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 617 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) && (Math.abs(_parent.player._y - this._y) < 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 371 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 438 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 616 MovieClip "ground" in Symbol 617 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 416 MovieClip "gallan" in Symbol 625 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 625 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 464 MovieClip in Symbol 625 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 625 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) && (Math.abs(_parent.player._y - this._y) < 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 418 MovieClip "seed" in Symbol 625 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 625 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 365 MovieClip "deathEffect" in Symbol 625 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 625 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--; _root.arrowDisplay = _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 366 MovieClip in Symbol 625 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 618 MovieClip in Symbol 625 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this) && (active)) { _root.jukebox.snd.stop(); if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(4, "This was Magenta's hut! This must've burned weeks ago! What's going on?"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(5, "Magenta's hut!? It's torched! Why would she burn her own hut?"); active = false; } } }
Instance of Symbol 371 MovieClip in Symbol 625 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 625 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 438 MovieClip in Symbol 625 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 625 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 624 MovieClip "ground" in Symbol 625 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Symbol 683 MovieClip Frame 1
stop();
Symbol 683 MovieClip Frame 9
gotoAndPlay(jump);
Symbol 683 MovieClip Frame 29
attacking = false; goFight = false;
Symbol 683 MovieClip Frame 44
gotoAndPlay (30);
Symbol 683 MovieClip Frame 46
stop();
Symbol 684 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 9
gotoAndPlay(jump);
Symbol 684 MovieClip Frame 29
attacking = false; goFight = false;
Symbol 684 MovieClip Frame 44
gotoAndPlay (30);
Symbol 684 MovieClip Frame 46
stop();
Symbol 690 MovieClip Frame 1
stop();
Symbol 690 MovieClip Frame 27
stop();
Instance of Symbol 416 MovieClip "gallan" in Symbol 697 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 697 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 683 MovieClip "g2" in Symbol 697 MovieClip Frame 1
onClipEvent (load) { function vReset() { lockMe = true; prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 300; maxHp = hp; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; attackMax = 2; attackCount = 0; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 83; goFight = false; voiceRatio = 0.5; dead = false; _root.bossGage.barA._xscale = (hp / maxHp) * 100; } 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(); } _root.bossGage.barA._xscale = (hp / maxHp) * 100; if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } function jump() { this.grounded = false; this.vVelocity = -40; this.hVelocity = (30 * (this._xscale / 100)) * -1; flip.start(); } slash = new Sound(this); slash.attachSound("slash2"); g = new Sound(this); g.attachSound("goatHit"); flip = new Sound(this); flip.attachSound("goatFlip"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (lockMe == false) { 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) { if (grounded) { hVelocity = speed * -1; } } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { if (grounded) { hVelocity = 0; } } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { if (grounded) { hVelocity = speed; } } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { if (grounded) { hVelocity = 0; } } } if (waitTimer == waitDelay) { waitTimer = 0; attackCount++; goFight = true; if (Math.random() < voiceRatio) { g.start(); } attackTarget = _parent.player._x; } else { waitTimer++; } if (attackCount == attackMax) { jump(); attackCount = 0; } 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.attackMask.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } } if (this.hitMask.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _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 684 MovieClip "g1" in Symbol 697 MovieClip Frame 1
onClipEvent (load) { function vReset() { lockMe = true; prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 300; maxHp = hp; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; attackMax = 2; attackCount = 0; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 60; waitDelay = 80; goFight = false; voiceRatio = 0.5; dead = false; _root.bossGage.barB._xscale = (hp / maxHp) * 100; } 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(); } _root.bossGage.barB._xscale = (hp / maxHp) * 100; if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } function jump() { this.grounded = false; this.vVelocity = -40; this.hVelocity = (30 * (this._xscale / 100)) * -1; flip.start(); } slash = new Sound(this); slash.attachSound("slash2"); g = new Sound(this); g.attachSound("goatHit"); flip = new Sound(this); flip.attachSound("goatFlip"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (lockMe == false) { 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) { if (grounded) { hVelocity = speed * -1; } } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { if (grounded) { hVelocity = 0; } } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { if (grounded) { hVelocity = speed; } } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { if (grounded) { hVelocity = 0; } } } if (waitTimer == waitDelay) { waitTimer = 0; attackCount++; goFight = true; if (Math.random() < voiceRatio) { g.start(); } attackTarget = _parent.player._x; } else { waitTimer++; } if (attackCount == attackMax) { jump(); attackCount = 0; } 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.attackMask.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } } if (this.hitMask.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _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 418 MovieClip "seed" in Symbol 697 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 697 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 365 MovieClip "deathEffect" in Symbol 697 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 697 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--; _root.arrowDisplay = _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 691 MovieClip "endBlock" in Symbol 697 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = true; msgID = 0; _root.egStart = false; tally = false; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 5000; scorePlay = false; deathWait = 0; deathWaitMax = 30; } vReset(); _root.attackOK = false; } onClipEvent (enterFrame) { if (_parent.g1.dead && (_parent.g2.dead)) { deathWait++; if (deathWait == deathWaitMax) { tally = true; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; } 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; } if (_root.fader.resetFlag) { vReset(); } if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.attackOK == true) { _parent.g1.lockMe = false; _parent.g2.lockMe = false; _root.bossGage._visible = true; _root.jukebox.gotoAndPlay(2); active = false; } } if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.attackOK == false) { if (_root.selectedPlayer == "GALLAN") { if (msgID == 0) { _root.dWindow.open(7, "A bit late, aren't we Gallan? I was expecting you AGES ago old boy! Terribly bad manners..."); _root.egstart = true; msgID = 1; } if ((msgID == 1) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "Sir Snargil!? What are you doing here? Where's Magenta?"); msgID = 2; } if ((msgID == 2) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "She's taking a little resort vacation, courtesy of yours truly..."); msgID = 3; } if ((msgID == 3) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "That's Magneta's Magic Book! What's going on here Snargil?"); msgID = 4; } if ((msgID == 4) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Oh my dear Gallan, haven't you figured it out? I sent the dragon! I stirred up the woods..."); msgID = 5; } if ((msgID == 5) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "And this is just the beginning! MWA HA HA HA HA HA!!!"); msgID = 6; } if ((msgID == 6) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "What? Maniacal laughter!? You can't do this! You were a Knight of Serenity! Like me!"); msgID = 7; } if ((msgID == 7) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Yes Gallan, like you...I'm your SHADOW!"); msgID = 8; } if ((msgID == 8) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "...that is SO overdone..."); msgID = 9; } if ((msgID == 9) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Worth a try anyway...now if you'll excuse me...I've a kingdom to take over!"); msgID = 10; } if ((msgID == 10) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "I don't suppose we're going to fight before you go?"); msgID = 11; } if ((msgID == 11) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Of course not. That is what henchmen and teleportation are for. Hodge! Podge! Take him!"); msgID = 12; } if ((msgID == 12) && (_root.dWindow.goNext)) { msgID = 13; _parent.snargil.gotoAndPlay(2); active = false; _root.attackOK = true; _parent.g1.lockMe = false; _parent.g2.lockMe = false; _root.bossGage._visible = true; } } if (_root.selectedPlayer == "MILO") { if (msgID == 0) { _root.dWindow.open(7, "Well if it isn't Jr.! Gallan got your running errands for him?"); _root.egstart = true; msgID = 1; } if ((msgID == 1) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "Huh? Who are you?"); msgID = 2; } if ((msgID == 2) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "You're probably too young to remember kid. It was before your time. I am Sir Snargil."); msgID = 3; } if ((msgID == 3) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "Gallan told me about you. You and King Oblig used to be knights."); msgID = 4; } if ((msgID == 4) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Yes, My old friend King Oblig is going to be stepping down I'm afraid..."); msgID = 5; } if ((msgID == 5) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "What are you talking about?"); msgID = 6; } if ((msgID == 6) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Revenge boy! With Magenta's Magic Book the Kingdom of Serenity will be mine!"); msgID = 7; } if ((msgID == 7) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "So YOU'RE the one behind this! It wasn't Magenta at all!"); msgID = 8; } if ((msgID == 8) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Brilliant! Looks like you figured it out, but too late I'm afraid."); msgID = 9; } if ((msgID == 9) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "Come on Snargil! I'll take you on right now!"); msgID = 10; } if ((msgID == 10) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Obviously you're new at this. You're no match for me son. You're not even a knight yet."); msgID = 11; } if ((msgID == 11) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Besides, you don't get a crack at me until you defeat a half-dozen or so of my henchmen."); msgID = 12; } if ((msgID == 12) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Hodge! Podge! Let's show our little friend how difficult becoming a knight can be!"); msgID = 13; } if ((msgID == 13) && (_root.dWindow.goNext)) { msgID = 14; _parent.snargil.gotoAndPlay(2); active = false; _root.attackOK = true; _parent.g1.lockMe = false; _parent.g2.lockMe = false; _root.bossGage._visible = true; } } } } }
Instance of Symbol 438 MovieClip in Symbol 697 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 697 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 696 MovieClip "ground" in Symbol 697 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 416 MovieClip "gallan" in Symbol 699 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 699 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 683 MovieClip "g2" in Symbol 699 MovieClip Frame 1
onClipEvent (load) { function vReset() { lockMe = true; prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 300; maxHp = hp; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; attackMax = 2; attackCount = 0; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 58; waitDelay = 83; goFight = false; voiceRatio = 0.5; dead = false; _root.bossGage.barA._xscale = (hp / maxHp) * 100; } 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(); } _root.bossGage.barA._xscale = (hp / maxHp) * 100; if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } function jump() { this.grounded = false; this.vVelocity = -40; this.hVelocity = (30 * (this._xscale / 100)) * -1; flip.start(); } slash = new Sound(this); slash.attachSound("slash2"); g = new Sound(this); g.attachSound("goatHit"); flip = new Sound(this); flip.attachSound("goatFlip"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (lockMe == false) { 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) { if (grounded) { hVelocity = speed * -1; } } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { if (grounded) { hVelocity = 0; } } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { if (grounded) { hVelocity = speed; } } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { if (grounded) { hVelocity = 0; } } } if (waitTimer == waitDelay) { waitTimer = 0; attackCount++; goFight = true; if (Math.random() < voiceRatio) { g.start(); } attackTarget = _parent.player._x; } else { waitTimer++; } if (attackCount == attackMax) { jump(); attackCount = 0; } 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.attackMask.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } } if (this.hitMask.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _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 684 MovieClip "g1" in Symbol 699 MovieClip Frame 1
onClipEvent (load) { function vReset() { lockMe = true; prevPose = ""; pose = "jump"; attackPwr = 20; touchAttack = 8; hp = 300; maxHp = hp; vVelocity = 0; gravity = 4; tVelocity = 30; grounded = false; hVelocity = 0; maxSpeed = 6; speed = 6; attackMax = 2; attackCount = 0; this._x = startX; this._y = starty; stunned = false; attacking = false; waitTimer = 60; waitDelay = 80; goFight = false; voiceRatio = 0.5; dead = false; _root.bossGage.barB._xscale = (hp / maxHp) * 100; } 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(); } _root.bossGage.barB._xscale = (hp / maxHp) * 100; if (xoff < this._x) { this.vVelocity = -10; this.hVelocity = 10; grounded = false; } else { this.vVelocity = -10; this.hVelocity = -10; grounded = false; } } function jump() { this.grounded = false; this.vVelocity = -40; this.hVelocity = (30 * (this._xscale / 100)) * -1; flip.start(); } slash = new Sound(this); slash.attachSound("slash2"); g = new Sound(this); g.attachSound("goatHit"); flip = new Sound(this); flip.attachSound("goatFlip"); startX = this._x; startY = this._y; attackTarget = _parent.player._x; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (lockMe == false) { 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) { if (grounded) { hVelocity = speed * -1; } } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { if (grounded) { hVelocity = 0; } } } else { this._xscale = -100; if (((attackTarget - this._x) < 500) && (0 < (attackTarget - this._x))) { if (stunned == false) { if (goFight) { if (grounded) { hVelocity = speed; } } } } if (((this._x - 10) < attackTarget) && (attackTarget < (this._x + 10))) { if (grounded) { hVelocity = 0; } } } if (waitTimer == waitDelay) { waitTimer = 0; attackCount++; goFight = true; if (Math.random() < voiceRatio) { g.start(); } attackTarget = _parent.player._x; } else { waitTimer++; } if (attackCount == attackMax) { jump(); attackCount = 0; } 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.attackMask.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { if (attacking) { _parent.player.getHit(attackPwr, this._x, 14, true); } } if (this.hitMask.hitTest(_parent.player.hitMask) && (_parent.player.wincing == false)) { _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 418 MovieClip "seed" in Symbol 699 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 699 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 365 MovieClip "deathEffect" in Symbol 699 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 699 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--; _root.arrowDisplay = _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 691 MovieClip "endBlock" in Symbol 699 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = true; msgID = 0; _root.egStart = false; tally = false; s1 = 0; s2 = 0; s3 = 0; st = 0; sr = "Paladin"; scoreDone = 0; lifeDone = 0; healthDone = 0; si = 5000; scorePlay = false; deathWait = 0; deathWaitMax = 30; } vReset(); _root.attackOK = false; } onClipEvent (enterFrame) { if (_parent.g1.dead && (_parent.g2.dead)) { deathWait++; if (deathWait == deathWaitMax) { tally = true; } } if (tally) { if (scorePlay == false) { _root.jukebox.snd.stop(); _root.jukebox.gotoAndPlay(3); scorePlay = true; } 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; } if (_root.fader.resetFlag) { vReset(); } if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.attackOK == true) { _parent.g1.lockMe = false; _parent.g2.lockMe = false; _root.bossGage._visible = true; _root.jukebox.gotoAndPlay(2); active = false; } } if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.attackOK == false) { if (_root.selectedPlayer == "GALLAN") { if (msgID == 0) { _root.dWindow.open(7, "A bit late, aren't we Gallan? I was expecting you AGES ago old boy! Terribly bad manners..."); _root.egstart = true; msgID = 1; } if ((msgID == 1) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "Sir Snargil!? What are you doing here? Where's Magenta?"); msgID = 2; } if ((msgID == 2) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "She's taking a little resort vacation, courtesy of yours truly..."); msgID = 3; } if ((msgID == 3) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "That's Magneta's Magic Book! What's going on here Snargil?"); msgID = 4; } if ((msgID == 4) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Oh my dear Gallan, haven't you figured it out? I sent the dragon! I stirred up the woods..."); msgID = 5; } if ((msgID == 5) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "And this is just the beginning! MWA HA HA HA HA HA!!!"); msgID = 6; } if ((msgID == 6) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "What? Maniacal laughter!? You can't do this! You were a Knight of Serenity! Like me!"); msgID = 7; } if ((msgID == 7) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Yes Gallan, like you...I'm your SHADOW!"); msgID = 8; } if ((msgID == 8) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "...that is SO overdone..."); msgID = 9; } if ((msgID == 9) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Worth a try anyway...now if you'll excuse me...I've a kingdom to take over!"); msgID = 10; } if ((msgID == 10) && (_root.dWindow.goNext)) { _root.dWindow.open(4, "I don't suppose we're going to fight before you go?"); msgID = 11; } if ((msgID == 11) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Of course not. That is what henchmen and teleportation are for. Hodge! Podge! Take him!"); msgID = 12; } if ((msgID == 12) && (_root.dWindow.goNext)) { msgID = 13; _parent.snargil.gotoAndPlay(2); active = false; _root.attackOK = true; _parent.g1.lockMe = false; _parent.g2.lockMe = false; _root.bossGage._visible = true; } } if (_root.selectedPlayer == "MILO") { if (msgID == 0) { _root.dWindow.open(7, "Well if it isn't Jr.! Gallan got your running errands for him?"); _root.egstart = true; msgID = 1; } if ((msgID == 1) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "Huh? Who are you?"); msgID = 2; } if ((msgID == 2) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "You're probably too young to remember kid. It was before your time. I am Sir Snargil."); msgID = 3; } if ((msgID == 3) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "Gallan told me about you. You and King Oblig used to be knights."); msgID = 4; } if ((msgID == 4) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Yes, My old friend King Oblig is going to be stepping down I'm afraid..."); msgID = 5; } if ((msgID == 5) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "What are you talking about?"); msgID = 6; } if ((msgID == 6) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Revenge boy! With Magenta's Magic Book the Kingdom of Serenity will be mine!"); msgID = 7; } if ((msgID == 7) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "So YOU'RE the one behind this! It wasn't Magenta at all!"); msgID = 8; } if ((msgID == 8) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Brilliant! Looks like you figured it out, but too late I'm afraid."); msgID = 9; } if ((msgID == 9) && (_root.dWindow.goNext)) { _root.dWindow.open(5, "Come on Snargil! I'll take you on right now!"); msgID = 10; } if ((msgID == 10) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Obviously you're new at this. You're no match for me son. You're not even a knight yet."); msgID = 11; } if ((msgID == 11) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Besides, you don't get a crack at me until you defeat a half-dozen or so of my henchmen."); msgID = 12; } if ((msgID == 12) && (_root.dWindow.goNext)) { _root.dWindow.open(7, "Hodge! Podge! Let's show our little friend how difficult becoming a knight can be!"); msgID = 13; } if ((msgID == 13) && (_root.dWindow.goNext)) { msgID = 14; _parent.snargil.gotoAndPlay(2); active = false; _root.attackOK = true; _parent.g1.lockMe = false; _parent.g2.lockMe = false; _root.bossGage._visible = true; } } } } }
Instance of Symbol 438 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 696 MovieClip "ground" in Symbol 699 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 416 MovieClip "gallan" in Symbol 700 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 700 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 464 MovieClip in Symbol 700 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 700 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) && (Math.abs(_parent.player._y - this._y) < 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 418 MovieClip "seed" in Symbol 700 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 700 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 365 MovieClip "deathEffect" in Symbol 700 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 700 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--; _root.arrowDisplay = _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 366 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 618 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this) && (active)) { _root.jukebox.snd.stop(); if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(4, "This was Magenta's hut! This must've burned weeks ago! What's going on?"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(5, "Magenta's hut!? It's torched! Why would she burn her own hut?"); active = false; } } }
Instance of Symbol 371 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 438 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 624 MovieClip "ground" in Symbol 700 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 416 MovieClip "gallan" in Symbol 701 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 701 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 464 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 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 504 MovieClip in Symbol 701 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 504 MovieClip in Symbol 701 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 344 MovieClip in Symbol 701 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 466 MovieClip "enar5" in Symbol 701 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 >= 800) { deactivate(); } } } }
Instance of Symbol 594 MovieClip in Symbol 701 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.enar5.activateLeft(this._x, this._y); } else { _parent.enar5.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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 342 MovieClip in Symbol 701 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; _root.arrowDisplay = _parent.player.arrows; 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 466 MovieClip "enar1" in Symbol 701 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 >= 800) { deactivate(); } } } }
Instance of Symbol 595 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 464 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 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 552 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 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.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 466 MovieClip "enar2" in Symbol 701 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 >= 800) { deactivate(); } } } }
Instance of Symbol 598 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 418 MovieClip "seed" in Symbol 701 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 701 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 361 MovieClip in Symbol 701 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 365 MovieClip "deathEffect" in Symbol 701 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 701 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--; _root.arrowDisplay = _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 466 MovieClip "enar4" in Symbol 701 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 >= 800) { deactivate(); } } } }
Instance of Symbol 596 MovieClip in Symbol 701 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.enar4.activateLeft(this._x, this._y); } else { _parent.enar4.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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 466 MovieClip "enar3" in Symbol 701 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 >= 800) { deactivate(); } } } }
Instance of Symbol 597 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 366 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 464 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 701 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) && (Math.abs(_parent.player._y - this._y) < 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 371 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 438 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 616 MovieClip "ground" in Symbol 701 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 416 MovieClip "gallan" in Symbol 702 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 702 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 466 MovieClip "enar5" in Symbol 702 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 >= 800) { deactivate(); } } } }
Instance of Symbol 594 MovieClip in Symbol 702 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.enar5.activateLeft(this._x, this._y); } else { _parent.enar5.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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 460 MovieClip in Symbol 702 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 464 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 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 552 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 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.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 342 MovieClip in Symbol 702 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; _root.arrowDisplay = _parent.player.arrows; 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 466 MovieClip "enar1" in Symbol 702 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 >= 800) { deactivate(); } } } }
Instance of Symbol 595 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 552 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 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.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 464 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 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 552 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 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.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 504 MovieClip in Symbol 702 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 466 MovieClip "enar4" in Symbol 702 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 >= 800) { deactivate(); } } } }
Instance of Symbol 596 MovieClip in Symbol 702 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.enar4.activateLeft(this._x, this._y); } else { _parent.enar4.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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 466 MovieClip "enar3" in Symbol 702 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 >= 800) { deactivate(); } } } }
Instance of Symbol 597 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 466 MovieClip "enar2" in Symbol 702 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 >= 800) { deactivate(); } } } }
Instance of Symbol 598 MovieClip in Symbol 702 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 418 MovieClip "seed" in Symbol 702 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 702 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 361 MovieClip in Symbol 702 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 365 MovieClip "deathEffect" in Symbol 702 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 702 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--; _root.arrowDisplay = _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 366 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 438 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 606 MovieClip "ground" in Symbol 702 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 580 MovieClip "gallan" in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; _root.arrowDisplay = arrows; _root.bombDisplay = bombs; score = _root.scorePass; prevScore = score; snowboard = false; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 581 MovieClip "milo" in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; _root.arrowDisplay = arrows; _root.bombDisplay = bombs; score = _root.scorePass; prevScore = score; snowboard = false; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 464 MovieClip in Symbol 703 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 703 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 703 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 703 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 703 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 703 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 703 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) && (Math.abs(_parent.player._y - this._y) < 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 338 MovieClip "seed" in Symbol 703 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 703 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--; _root.arrowDisplay = _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 345 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.sb2._visible = true; _parent.player.snowboard = false; _parent.sb1.s.stop("snowSlide"); } }
Instance of Symbol 346 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.player.snowBoard = true; } sb1._visible = false; }
Instance of Symbol 359 MovieClip in Symbol 703 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 361 MovieClip in Symbol 703 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 365 MovieClip "deathEffect" in Symbol 703 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 366 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 501 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 501 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 438 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 371 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 501 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 501 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 392 MovieClip "sb1" in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = true; s.setVolume(0); s.start(0, 99); } s = new Sound(this); s.attachSound("snowSlide"); vReset(); } onClipEvent (enterFrame) { if (_parent.player.grounded && (_parent.player.snowboard)) { s.setVolume(100); } else { s.setVolume(0); } if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = false; } }
Instance of Symbol 394 MovieClip "sb2" in Symbol 703 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = true; } }
Instance of Symbol 371 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 590 MovieClip "ground" in Symbol 703 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 238 MovieClip "gallan" in Symbol 704 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 336 MovieClip "milo" in Symbol 704 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 338 MovieClip "seed" in Symbol 704 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 704 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--; _root.arrowDisplay = _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 342 MovieClip in Symbol 704 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; _root.arrowDisplay = _parent.player.arrows; 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 344 MovieClip in Symbol 704 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 345 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.sb2._visible = true; _parent.player.snowboard = false; _parent.sb1.s.stop("snowSlide"); } }
Instance of Symbol 346 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.player.snowBoard = true; } sb1._visible = false; }
Instance of Symbol 359 MovieClip in Symbol 704 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 361 MovieClip in Symbol 704 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 365 MovieClip "deathEffect" in Symbol 704 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 366 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 386 MovieClip in Symbol 704 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(6, "This is the bunny hill. Thanks for saving Kenora by the way..."); active = false; } }
Instance of Symbol 371 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 392 MovieClip "sb1" in Symbol 704 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = true; s.setVolume(0); s.start(0, 99); } s = new Sound(this); s.attachSound("snowSlide"); vReset(); } onClipEvent (enterFrame) { if (_parent.player.grounded && (_parent.player.snowboard)) { s.setVolume(100); } else { s.setVolume(0); } if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = false; } }
Instance of Symbol 394 MovieClip "sb2" in Symbol 704 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = true; } }
Instance of Symbol 407 MovieClip "ground" in Symbol 704 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 527 MovieClip "gallan" in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = startX; this._y = startY; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = startX; this._y = startY; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 528 MovieClip "milo" in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = startX; this._y = startY; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = startX; this._y = startY; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 464 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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 552 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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.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 552 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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.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 464 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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 344 MovieClip in Symbol 705 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 504 MovieClip in Symbol 705 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 504 MovieClip in Symbol 705 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 552 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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.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 344 MovieClip in Symbol 705 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 464 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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 554 MovieClip in Symbol 705 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++; _root.livesDisplay = _parent.player.lives; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { } }
Instance of Symbol 464 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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 418 MovieClip "seed" in Symbol 705 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 705 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 361 MovieClip in Symbol 705 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 365 MovieClip "deathEffect" in Symbol 705 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 705 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--; _root.arrowDisplay = _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 366 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 555 MovieClip in Symbol 705 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(1, "The board park ahead is experts only."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(1, "The board park ahead is experts only."); active = false; } } }
Instance of Symbol 371 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 556 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(3, "I haven't seen Magenta for a long time! She must be snuggled down for the winter."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(3, "I haven't seen Magenta for a long time! She must be snuggled down for the winter."); active = false; } } }
Instance of Symbol 557 MovieClip in Symbol 705 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(2, "Magenta doesn't like snowboarding she says it's det-ri-ment-al to her health."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(2, "Magenta doesn't like snowboarding she says it's det-ri-ment-al to her health."); active = false; } } }
Instance of Symbol 558 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(3, "Strange creatures? Well, no I haven't seen any, have you?"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(3, "Strange creatures? Well, no I haven't seen any, have you?"); active = false; } } }
Instance of Symbol 559 MovieClip in Symbol 705 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(1, "Hello again Sir Gallan! Magenta's hut is up ahead, beyond the board park."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(1, "Magenta's hut? It's up ahead, past the board park."); active = false; } } }
Instance of Symbol 501 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 561 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock08; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 562 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock07; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 563 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock06; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 564 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock05; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 497 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock04; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 498 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock03; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 499 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock02; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 552 MovieClip in Symbol 705 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) && (Math.abs(_parent.player._y - this._y) < 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.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 500 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 438 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 577 MovieClip "ground" in Symbol 705 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 416 MovieClip "gallan" in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 460 MovieClip in Symbol 706 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 342 MovieClip in Symbol 706 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; _root.arrowDisplay = _parent.player.arrows; 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 359 MovieClip in Symbol 706 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 464 MovieClip in Symbol 706 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 706 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 706 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 706 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) && (Math.abs(_parent.player._y - this._y) < 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 466 MovieClip "enar2" in Symbol 706 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 >= 800) { deactivate(); } } } }
Instance of Symbol 495 MovieClip in Symbol 706 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 466 MovieClip "enar1" in Symbol 706 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 >= 800) { deactivate(); } } } }
Instance of Symbol 496 MovieClip in Symbol 706 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) && (Math.abs(_parent.player._y - this._y) < 500)) { 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 464 MovieClip in Symbol 706 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) && (Math.abs(_parent.player._y - this._y) < 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 464 MovieClip in Symbol 706 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) && (Math.abs(_parent.player._y - this._y) < 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 418 MovieClip "seed" in Symbol 706 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 706 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 361 MovieClip in Symbol 706 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 365 MovieClip "deathEffect" in Symbol 706 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 706 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--; _root.arrowDisplay = _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 366 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 497 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock04; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 498 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock03; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 499 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock02; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 500 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { tBlk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } if (this.hitTest(_parent.seed)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); tBlk._yscale = 0; } }
Instance of Symbol 342 MovieClip in Symbol 706 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; _root.arrowDisplay = _parent.player.arrows; 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 371 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 501 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 504 MovieClip in Symbol 706 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 505 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 505 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 505 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 505 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 505 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if ((Math.abs(_root.world.player._x - this._x) < activationRange) && (_parent.ballTrigger.active)) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 509 MovieClip "ballTrigger" in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vreset() { active = false; } vreset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _parent.snowball.activate(); active = true; } } }
Instance of Symbol 511 MovieClip "snowball" in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { rollDirection = -1; maxRoll = 10; active = false; grounded = false; hVelocity = 0; vVelocity = 0; tVelocity = 30; gravity = 4; this._x = startX; this._y = startY; damage = 50; } function activate() { this._x = 3870; this._y = 1151; active = true; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (active) { if (grounded) { if ((hVelocity < maxRoll) && (rollDirection == 1)) { hVelocity = hVelocity + (1 * rollDirection); } if (((maxRoll * -1) < hVelocity) && (rollDirection == -1)) { hVelocity = hVelocity + (1 * rollDirection); } } if (0 < hVelocity) { this._rotation = this._rotation + 5; } if (hVelocity < 0) { this._rotation = this._rotation - 5; } if ((this.hitmask.hitTest(_root.world.player.hitMask) && (active)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x - (350 * rollDirection), 25, true); this.hVelocity = (this.hVelocity / 2) - 1; } 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) + vVelocity, true) == false) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true)) { } this._x = this._x + hVelocity; if (_parent.ground.hitTest(this._x + _parent._x, (newY + (this._height / 2)) + _parent._y, true)) { if (0 < vVelocity) { while (_parent.ground.hitTest(this._x + _parent._x, (newY + (this._height / 2)) + _parent._y, true)) { newY--; } grounded = true; } } this._y = newY; if (_root.world.safeY < this._y) { active = false; } } }
Instance of Symbol 438 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 438 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 525 MovieClip "ground" in Symbol 706 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 416 MovieClip "gallan" in Symbol 707 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 417 MovieClip "milo" in Symbol 707 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; score = _root.scorePass; prevScore = score; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bombs = 0; _root.bombDisplay = bombs; bow._visible = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = startX; _parent.player._y = startY; this._x = -452; this._y = -638; } 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); _root.livesDisplay = lives; } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } 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 (0 < bombs) { 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 344 MovieClip in Symbol 707 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.bombs = _parent.player.bombs + 3; _root.bombDisplay = _parent.player.bombs; s.start(); _parent.player.doneThrow = true; this._y = _root.world.safeY; } if (_root.fader.resetFlag) { this._x = startX; this._y = startY; } }
Instance of Symbol 418 MovieClip "seed" in Symbol 707 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 359 MovieClip in Symbol 707 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 361 MovieClip in Symbol 707 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 365 MovieClip "deathEffect" in Symbol 707 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 707 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--; _root.arrowDisplay = _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 422 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) { active = true; } onClipEvent (enterFrame) { if (_parent.player.hitMask.hitTest(this) && (active)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(3, "Oh, hey Gallan! Haven't seen you at Blizzard Peak for awhile!"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(3, "Welcome to Bilzzard Peak kid! Did you come for the boarding?"); active = false; } } }
Instance of Symbol 424 MovieClip in Symbol 707 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(2, "Are you one of Magenta's friends too?"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(2, "*giggle* You're cute!"); active = false; } } }
Instance of Symbol 426 MovieClip in Symbol 707 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(1, "The caves ahead ice up when it gets cold."); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(1, "The caves ahead ice up when it gets cold."); active = false; } } }
Instance of Symbol 427 MovieClip in Symbol 707 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)) { if (_root.selectedPlayer == "GALLAN") { _root.dWindow.open(2, "Goodie! Fresh powder! Time to head to the board park!"); active = false; } if (_root.selectedPlayer == "MILO") { _root.dWindow.open(2, "Cold? What are you talking about?"); active = false; } } }
Instance of Symbol 366 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 371 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 438 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) { function vReset() { active = false; activationRange = 150; vVelocity = 0; hVelocity = 0; tVelocity = 30; gravity = 4; damage = 20; shattering = false; this.gotoAndStop(1); this._x = startX; this._y = startY; } function deactivate() { this._x = 0; this._y = _root.world.safeY; } startX = this._x; startY = this._y; vReset(); } onClipEvent (enterFrame) { if (Math.abs(_root.world.player._x - this._x) < activationRange) { active = true; } if (_root.fader.resetFlag) { vReset(); } if (active) { if ((this.hitTest(_root.world.player.hitMask) && (shattering == false)) && (_root.world.player.wincing == false)) { _root.world.player.getHit(damage, this._x, 14, true); } vVelocity = vVelocity + gravity; if (tVelocity < vVelocity) { vVelocity = tVelocity; } newX = this._x + hVelocity; newY = this._y + vVelocity; if (_parent.ground.hitTest(this._x + _parent._x, newY + _parent._y, true)) { if (0 < vVelocity) { vVelocity = 0; if (!shattering) { this.gotoAndPlay("break"); } } } if (active) { this._y = newY; } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 440 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) { function vReset() { tblk._yscale = tbos; this.gotoAndStop(1); this._xscale = xReset; } tBlk = _parent.ground.cblock01; tbos = tBlk._yscale; xReset = this._xscale; } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.attMask)) { if (this._x < _root.world.player._x) { this._xscale = -100; } this.gotoAndPlay("break"); _parent.ground.cblock01._yscale = 0; } }
Instance of Symbol 452 MovieClip "ground" in Symbol 707 MovieClip Frame 1
onClipEvent (load) { this._alpha = 0; }
Instance of Symbol 580 MovieClip "gallan" in Symbol 708 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; _root.arrowDisplay = arrows; _root.bombDisplay = bombs; score = _root.scorePass; prevScore = score; snowboard = false; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 581 MovieClip "milo" in Symbol 708 MovieClip Frame 1
onClipEvent (load) { function sReset() { this._visible = false; arrows = _root.arrowPass; if (arrows == 0) { bow._visible = false; } bombs = _root.bombPass; lives = _root.lifePass; _root.livesDisplay = lives; _root.arrowDisplay = arrows; _root.bombDisplay = bombs; score = _root.scorePass; prevScore = score; snowboard = false; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } function vReset() { this._visible = false; arrows = 0; _root.arrowDisplay = arrows; bow._visible = false; bombs = 0; _root.bombDisplay = bombs; snowboard = false; score = prevScore; prevPose = ""; vLock = false; screenNudge = 0; maxNudge = 160; dead = false; actionLock = true; 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; groundSlope = 0; slideSpeed = 0; 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; _parent.player._visible = true; _parent.player.actionLock = false; _parent.player._x = -101; _parent.player._y = -508; } 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; groundSlope = 0; 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--; _root.livesDisplay = lives; if (lives >= 0) { _root.fader.fadeType = "cont"; } else { _root.fader.fadeType = "game"; lives++; } _root.fader.gotoAndPlay("fadeOut"); } u = new Sound(this); if (_root.selectedPlayer == "GALLAN") { u.attachSound("urg"); } if (_root.selectedPlayer == "MILO") { u.attachSound("ow"); } p = new Sound(this); p.attachSound("tink"); startX = this._x; startY = this._y; prevScore = 0; score = 0; lives = 3; _root.livesDisplay = lives; 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)) { if (snowboard == false) { _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 (snowboard) { pose = "boardRun"; if (Key.isDown(Key.RIGHT)) { pose = "boardSprint"; } if (Key.isDown(Key.LEFT)) { pose = "boardCarve"; } if ((grounded == false) && (vVelocity < 4)) { pose = "boardJumpUp"; } if ((grounded == false) && (4 < vVelocity)) { pose = "boardJumpDown"; } if ((countAttack == 1) || (doneAttack == false)) { if (grounded == false) { pose = "boardBackFlip"; } } } else 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) && (grounded == false)) { pose = "jumpUp"; } if ((0 < vVelocity) && (grounded == false)) { pose = "jumpDown"; } if (0 < bombs) { 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 (snowBoard) { if (((maxRun / 2) * -1) < hVelocity) { hVelocity--; } } else 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; groundSlope = 0; } } 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; } } if (grounded) { if (groundSlope != 0) { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); _root.world._y = _root.world._y + (-1 * vVelocity); } } newX = this._x + hVelocity; newY = this._y + vVelocity; if ((_parent.ground.hitTest(newX + _parent._x, ((this._y + _parent._y) + 3) + vVelocity, true) == false) && (groundSlope == 0)) { grounded = false; } if (_parent.ground.hitTest(newX + _parent._x, (this._y + _parent._y) + vVelocity, true) && (groundSlope == 0)) { hVelocity = 0; } this._x = this._x + (hVelocity + slideSpeed); _root.world._x = _root.world._x + ((hVelocity + slideSpeed) * -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; if (groundSlope == 0) { vVelocity = 0; } else { vVelocity = -1 * ((hVelocity + slideSpeed) / groundSlope); } if (wincePose) { wincePose = false; } if (hp == 0) { die(); } } } this._y = newY; if (_root.world.safeY < this._y) { die(); } if (vLock == false) { if (300 < (this._y + _parent._y)) { _root.world._y = _root.world._y - 25; } if ((this._y + _parent._y) < 130) { _root.world._y = _root.world._y + 10; } } } }
Instance of Symbol 554 MovieClip in Symbol 708 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++; _root.livesDisplay = _parent.player.lives; s.start(); this._y = _root.world.safeY; } if (_root.fader.resetFlag) { } }
Instance of Symbol 338 MovieClip "seed" in Symbol 708 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; this._xscale = -100; } } 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; this._xscale = 100; } } function deactivate() { active = false; this._x = returnX; this._y = returnY; _parent.player.bombs = _parent.player.bombs - 1; _root.bombDisplay = _parent.player.bombs; } 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 (_root.world.safeY < this._y) { deactivate(); } if (hVelocity != 0) { if (-1 >= hVelocity) { hVelocity = hVelocity + 1; } if (hVelocity >= 1) { hVelocity = hVelocity - 1; } } } }
Instance of Symbol 340 MovieClip "arrow1" in Symbol 708 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--; _root.arrowDisplay = _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 345 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.sb2._visible = true; _parent.player.snowboard = false; _parent.sb1.s.stop("snowSlide"); } }
Instance of Symbol 346 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { _parent.player.snowBoard = true; } sb1._visible = false; }
Instance of Symbol 359 MovieClip in Symbol 708 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 361 MovieClip in Symbol 708 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 365 MovieClip "deathEffect" in Symbol 708 MovieClip Frame 1
onClipEvent (load) { s = new Sound(this); s.attachSound("swoosh2"); }
Instance of Symbol 582 MovieClip in Symbol 708 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)) { if (_root.selectedPlayer == "GALLAN") { if (2 < _root.world.player.lives) { _root.dWindow.open(1, "Wow! Those were some kickin' moves sir!"); active = false; } if (_root.world.player.lives < 3) { _root.dWindow.open(1, "That was um...interesting...why don't you try skiing?"); active = false; } } if (_root.selectedPlayer == "MILO") { if (2 < _root.world.player.lives) { _root.dWindow.open(1, "Hey, not bad! I've never seen you before. Are you from the Castle?"); active = false; } if (_root.world.player.lives < 3) { _root.dWindow.open(1, "You should be careful kid. This is not a run for beginners."); active = false; } } } }
Instance of Symbol 366 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) { function vReset() { _root.jukebox.gotoAndStop(1); } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } }
Instance of Symbol 371 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 501 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 501 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.getHit(100, this._x, 0, false); _parent.player.die(); _parent.player._y = _parent.player._y + this._height; } }
Instance of Symbol 502 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_parent.player._x + _parent._x, _parent.player._y + _parent._y, false)) { _parent.player.vLock = true; } }
Instance of Symbol 392 MovieClip "sb1" in Symbol 708 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = true; s.setVolume(0); s.start(0, 99); } s = new Sound(this); s.attachSound("snowSlide"); vReset(); } onClipEvent (enterFrame) { if (_parent.player.grounded && (_parent.player.snowboard)) { s.setVolume(100); } else { s.setVolume(0); } if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = false; } }
Instance of Symbol 394 MovieClip "sb2" in Symbol 708 MovieClip Frame 1
onClipEvent (load) { function vReset() { this._visible = false; } vReset(); } onClipEvent (enterFrame) { if (_root.fader.resetFlag) { vReset(); } if (this.hitTest(_parent.player.hitMask)) { this._visible = true; } }
Instance of Symbol 371 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) { active = false; } onClipEvent (enterFrame) { if (this.hitTest(_parent.player.hitMask)) { if (active == false) { _root.arrowPass = _parent.player.arrows; _root.bombPass = _parent.player.bombs; _root.lifePass = _parent.player.lives; _root.hpPass = _parent.player.hp; _root.scorePass = _parent.player.score; _root.warper.gotoAndPlay("warpOut"); active = true; } } }
Instance of Symbol 585 MovieClip "ground" in Symbol 708 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 [snowSlide]
Symbol 6 Sound [slash2]
Symbol 7 Sound [bounce]
Symbol 8 Sound [seedP]
Symbol 9 Sound [raieetFast]
Symbol 10 Sound [ow]
Symbol 11 Sound [now]
Symbol 12 Sound [heh]
Symbol 13 Sound [goatHit]
Symbol 14 Sound [goatFlip]
Symbol 15 Sound [flag]
Symbol 16 Sound [door]
Symbol 17 Sound [c]
Symbol 18 Sound [bolt]
Symbol 19 Sound [swishLow]Used by:683 684
Symbol 20 Sound [rar]Used by:552
Symbol 21 Sound [arw1]Used by:495 496 594 595 596 597 598
Symbol 22 Sound [scoreTally]Used by:66
Symbol 23 Sound [cb]Used by:238 336 416 417 527 528 580 581
Symbol 24 Sound [ex3]Used by:355
Symbol 25 Sound [airSwish2]Used by:57 75 83 89 238 336 416 417 527 528 580 581
Symbol 26 FontUsed by:27 86 87 88
Symbol 27 EditableTextUses:26Used by:Timeline
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClipUses:28Used by:Timeline
Symbol 30 GraphicUsed by:Timeline
Symbol 31 FontUsed by:32 58
Symbol 32 EditableTextUses:31Used by:Timeline
Symbol 33 GraphicUsed by:34 409
Symbol 34 MovieClipUses:33Used by:36
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:34 35Used by:Timeline
Symbol 37 GraphicUsed by:Timeline
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClipUses:38Used by:Timeline
Symbol 40 GraphicUsed by:Timeline
Symbol 41 GraphicUsed by:45
Symbol 42 GraphicUsed by:45
Symbol 43 GraphicUsed by:45
Symbol 44 GraphicUsed by:45
Symbol 45 ButtonUses:41 42 43 44Used by:Timeline
Symbol 46 GraphicUsed by:50
Symbol 47 GraphicUsed by:50
Symbol 48 GraphicUsed by:50
Symbol 49 GraphicUsed by:50 67 68 397 398 399 400 401 402 403 406 450 522
Symbol 50 ButtonUses:46 47 48 49Used by:Timeline
Symbol 51 GraphicUsed by:52 55
Symbol 52 MovieClipUses:51Used by:57
Symbol 53 GraphicUsed by:54 56
Symbol 54 MovieClipUses:53Used by:57
Symbol 55 MovieClipUses:51Used by:57
Symbol 56 MovieClipUses:53Used by:57
Symbol 57 MovieClipUses:52 54 55 56 25Used by:Timeline
Symbol 58 TextUses:31Used by:59
Symbol 59 MovieClipUses:58Used by:Timeline
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClipUses:60Used by:Timeline
Symbol 62 GraphicUsed by:Timeline
Symbol 63 GraphicUsed by:66
Symbol 64 SoundUsed by:66
Symbol 65 SoundUsed by:66
Symbol 66 MovieClipUses:63 64 65 22Used by:Timeline
Symbol 67 MovieClipUses:49Used by:69 85
Symbol 68 MovieClipUses:49Used by:69 85
Symbol 69 MovieClipUses:67 68Used by:Timeline
Symbol 70 FontUsed by:71 72 73 80 81 82 84
Symbol 71 TextUses:70Used by:75
Symbol 72 TextUses:70Used by:75
Symbol 73 TextUses:70Used by:75
Symbol 74 GraphicUsed by:75 83 89
Symbol 75 ButtonUses:71 72 73 74 25Used by:85
Symbol 76 GraphicUsed by:85
Symbol 77 GraphicUsed by:78 146 168 345 346 351 366 371 501 502 509 530 618 691
Symbol 78 MovieClipUses:77Used by:85 238 336 416 417 495 496 527 528 580 581 594 595 596 597 598
Symbol 79 GraphicUsed by:85
Symbol 80 TextUses:70Used by:83
Symbol 81 TextUses:70Used by:83
Symbol 82 TextUses:70Used by:83
Symbol 83 ButtonUses:80 81 82 74 25Used by:85
Symbol 84 TextUses:70Used by:85
Symbol 85 MovieClipUses:67 68 75 76 78 79 83 84Used by:Timeline
Symbol 86 EditableTextUses:26Used by:89
Symbol 87 EditableTextUses:26Used by:89
Symbol 88 EditableTextUses:26Used by:89
Symbol 89 ButtonUses:86 87 88 74 25Used by:98
Symbol 90 GraphicUsed by:98
Symbol 91 FontUsed by:92 93 94 95 96 109 110 111
Symbol 92 EditableTextUses:91Used by:98
Symbol 93 EditableTextUses:91Used by:98
Symbol 94 EditableTextUses:91Used by:98
Symbol 95 EditableTextUses:91Used by:98
Symbol 96 EditableTextUses:91Used by:98
Symbol 97 GraphicUsed by:98
Symbol 98 MovieClipUses:89 90 92 93 94 95 96 97Used by:Timeline
Symbol 99 FontUsed by:100 129 132
Symbol 100 EditableTextUses:99Used by:102
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:100 101Used by:Timeline
Symbol 103 GraphicUsed by:104
Symbol 104 MovieClipUses:103Used by:108
Symbol 105 GraphicUsed by:106
Symbol 106 MovieClipUses:105Used by:108 131
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:104 106 107Used by:Timeline
Symbol 109 EditableTextUses:91Used by:121
Symbol 110 EditableTextUses:91Used by:121
Symbol 111 EditableTextUses:91Used by:121
Symbol 112 GraphicUsed by:119
Symbol 113 GraphicUsed by:119
Symbol 114 GraphicUsed by:119
Symbol 115 GraphicUsed by:119
Symbol 116 GraphicUsed by:119
Symbol 117 GraphicUsed by:119
Symbol 118 GraphicUsed by:119
Symbol 119 MovieClipUses:112 113 114 115 116 117 118Used by:121
Symbol 120 GraphicUsed by:121
Symbol 121 MovieClipUses:109 110 111 119 120Used by:Timeline
Symbol 122 GraphicUsed by:123
Symbol 123 MovieClipUses:122Used by:131
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClipUses:124Used by:131
Symbol 126 GraphicUsed by:128
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:126 127Used by:131
Symbol 129 EditableTextUses:99Used by:131
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:123 125 128 106 129 130Used by:Timeline
Symbol 132 EditableTextUses:99Used by:134
Symbol 133 GraphicUsed by:134
Symbol 134 MovieClipUses:132 133Used by:Timeline
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:137
Symbol 137 MovieClipUses:136Used by:Timeline
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:140
Symbol 140 MovieClipUses:139Used by:408 586 591 703 704 708
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:141Used by:408 453 526 579 586 591 703 704 705 706 707 708
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClipUses:143Used by:238 416 527 580
Symbol 145 GraphicUsed by:238 416 527 580
Symbol 146 MovieClipUses:77Used by:238 336 416 417 527 528 580 581
Symbol 147 GraphicUsed by:148 150
Symbol 148 MovieClipUses:147Used by:238 336 416 417 527 528 580 581
Symbol 149 GraphicUsed by:238 416 527 580
Symbol 150 MovieClipUses:147Used by:238 336 416 417 527 528 580 581
Symbol 151 GraphicUsed by:238 416 527 580
Symbol 152 GraphicUsed by:238 416 527 580
Symbol 153 GraphicUsed by:238 416 527 580
Symbol 154 GraphicUsed by:238 416 527 580
Symbol 155 GraphicUsed by:238 416 527 580
Symbol 156 GraphicUsed by:238 416 527 580
Symbol 157 GraphicUsed by:238 416 527 580
Symbol 158 GraphicUsed by:238 416 527 580
Symbol 159 GraphicUsed by:238 416 527 580
Symbol 160 GraphicUsed by:238 416 527 580
Symbol 161 GraphicUsed by:238 416 527 580
Symbol 162 GraphicUsed by:238 416 527 580
Symbol 163 GraphicUsed by:238 416 527 580
Symbol 164 GraphicUsed by:238 416 527 580
Symbol 165 GraphicUsed by:238 416 527 580
Symbol 166 GraphicUsed by:238 416 527 580
Symbol 167 GraphicUsed by:238 416 527 580
Symbol 168 MovieClipUses:77Used by:238 336 416 417 527 528 580 581
Symbol 169 GraphicUsed by:238 416 527 580
Symbol 170 GraphicUsed by:238 416 527 580
Symbol 171 GraphicUsed by:238 416 527 580
Symbol 172 GraphicUsed by:238 416 527 580
Symbol 173 GraphicUsed by:238 416 527 580
Symbol 174 GraphicUsed by:238 416 527 580
Symbol 175 GraphicUsed by:187
Symbol 176 GraphicUsed by:187
Symbol 177 GraphicUsed by:187
Symbol 178 GraphicUsed by:187
Symbol 179 GraphicUsed by:187
Symbol 180 GraphicUsed by:187
Symbol 181 GraphicUsed by:187
Symbol 182 GraphicUsed by:187
Symbol 183 GraphicUsed by:187
Symbol 184 GraphicUsed by:187
Symbol 185 GraphicUsed by:187
Symbol 186 GraphicUsed by:187
Symbol 187 MovieClipUses:175 176 177 178 179 180 181 182 183 184 185 186Used by:238 336 416 417 527 528 580 581
Symbol 188 GraphicUsed by:238 416 527 580
Symbol 189 GraphicUsed by:238 416 527 580
Symbol 190 GraphicUsed by:238 416 527 580
Symbol 191 GraphicUsed by:238 416 527 580
Symbol 192 GraphicUsed by:238 416 527 580
Symbol 193 GraphicUsed by:238 416 527 580
Symbol 194 GraphicUsed by:238 416 527 580
Symbol 195 GraphicUsed by:238 416 527 580
Symbol 196 GraphicUsed by:238 416 527 580
Symbol 197 GraphicUsed by:238 416 527 580
Symbol 198 GraphicUsed by:238 416 527 580
Symbol 199 GraphicUsed by:238 416 527 580
Symbol 200 GraphicUsed by:238 416 527 580
Symbol 201 GraphicUsed by:238 416 527 580
Symbol 202 GraphicUsed by:238 416 527 580
Symbol 203 GraphicUsed by:238 416 527 580
Symbol 204 GraphicUsed by:238 416 527 580
Symbol 205 GraphicUsed by:238 416 527 580
Symbol 206 GraphicUsed by:238 416 527 580
Symbol 207 GraphicUsed by:238 416 527 580
Symbol 208 GraphicUsed by:238 416 527 580
Symbol 209 GraphicUsed by:238 416 527 580
Symbol 210 GraphicUsed by:238 416 527 580
Symbol 211 GraphicUsed by:238 416 527 580
Symbol 212 GraphicUsed by:238 416 527 580
Symbol 213 GraphicUsed by:238 416 527 580
Symbol 214 GraphicUsed by:238 416 527 580
Symbol 215 GraphicUsed by:238 416 527 580
Symbol 216 GraphicUsed by:238 416 527 580
Symbol 217 GraphicUsed by:238 416 527 580
Symbol 218 GraphicUsed by:238 416 527 580
Symbol 219 GraphicUsed by:238 416 527 580
Symbol 220 GraphicUsed by:238 416 527 580
Symbol 221 GraphicUsed by:238 416 527 580
Symbol 222 GraphicUsed by:238 416 527 580
Symbol 223 GraphicUsed by:238 416 527 580
Symbol 224 GraphicUsed by:238 416 527 580
Symbol 225 GraphicUsed by:238 416 527 580
Symbol 226 GraphicUsed by:238 416 527 580
Symbol 227 GraphicUsed by:238 416 527 580
Symbol 228 GraphicUsed by:238 416 527 580
Symbol 229 GraphicUsed by:238 416 527 580
Symbol 230 GraphicUsed by:238 416 527 580
Symbol 231 GraphicUsed by:238 416 527 580
Symbol 232 GraphicUsed by:238 416 527 580
Symbol 233 GraphicUsed by:238 416 527 580
Symbol 234 GraphicUsed by:238 416 527 580
Symbol 235 GraphicUsed by:238 416 527 580
Symbol 236 GraphicUsed by:238 416 527 580
Symbol 237 GraphicUsed by:238 416 527 580
Symbol 238 MovieClipUses:144 145 146 148 149 150 151 152 153 78 154 155 156 157 158 159 160 161 162 163 164 25 165 166 167 168 169 170 171 172 173 174 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 23 224 225 226 227 228 229 230 231 232 233 234 235 236 237Used by:408 704
Symbol 239 GraphicUsed by:336 417 528 581
Symbol 240 GraphicUsed by:241 243
Symbol 241 MovieClipUses:240Used by:336 417 528 581
Symbol 242 GraphicUsed by:336 417 528 581
Symbol 243 MovieClipUses:240Used by:336 417 528 581
Symbol 244 GraphicUsed by:336 417 528 581
Symbol 245 GraphicUsed by:336 417 528 581
Symbol 246 GraphicUsed by:336 417 528 581
Symbol 247 GraphicUsed by:336 417 528 581
Symbol 248 GraphicUsed by:336 417 528 581
Symbol 249 GraphicUsed by:336 417 528 581
Symbol 250 GraphicUsed by:336 417 528 581
Symbol 251 GraphicUsed by:336 417 528 581
Symbol 252 GraphicUsed by:336 417 528 581
Symbol 253 GraphicUsed by:336 417 528 581
Symbol 254 GraphicUsed by:336 417 528 581
Symbol 255 GraphicUsed by:336 417 528 581
Symbol 256 GraphicUsed by:336 417 528 581
Symbol 257 GraphicUsed by:336 417 528 581
Symbol 258 GraphicUsed by:336 417 528 581
Symbol 259 GraphicUsed by:336 417 528 581
Symbol 260 GraphicUsed by:336 417 528 581
Symbol 261 GraphicUsed by:336 417 528 581
Symbol 262 GraphicUsed by:336 417 528 581
Symbol 263 GraphicUsed by:336 417 528 581
Symbol 264 GraphicUsed by:336 417 528 581
Symbol 265 GraphicUsed by:336 417 528 581
Symbol 266 GraphicUsed by:336 417 528 581
Symbol 267 GraphicUsed by:336 417 528 581
Symbol 268 GraphicUsed by:336 417 528 581
Symbol 269 GraphicUsed by:336 417 528 581
Symbol 270 GraphicUsed by:336 417 528 581
Symbol 271 GraphicUsed by:336 417 528 581
Symbol 272 GraphicUsed by:336 417 528 581
Symbol 273 GraphicUsed by:336 417 528 581
Symbol 274 GraphicUsed by:336 417 528 581
Symbol 275 GraphicUsed by:336 417 528 581
Symbol 276 GraphicUsed by:336 417 528 581
Symbol 277 GraphicUsed by:336 417 528 581
Symbol 278 GraphicUsed by:336 417 528 581
Symbol 279 GraphicUsed by:336 417 528 581
Symbol 280 GraphicUsed by:336 417 528 581
Symbol 281 GraphicUsed by:336 417 528 581
Symbol 282 GraphicUsed by:336 417 528 581
Symbol 283 GraphicUsed by:336 417 528 581
Symbol 284 GraphicUsed by:336 417 528 581
Symbol 285 GraphicUsed by:336 417 528 581
Symbol 286 GraphicUsed by:336 417 528 581
Symbol 287 GraphicUsed by:336 417 528 581
Symbol 288 GraphicUsed by:336 417 528 581
Symbol 289 GraphicUsed by:336 417 528 581
Symbol 290 GraphicUsed by:336 417 528 581
Symbol 291 GraphicUsed by:336 417 528 581
Symbol 292 GraphicUsed by:336 417 528 581
Symbol 293 GraphicUsed by:336 417 528 581
Symbol 294 GraphicUsed by:336 417 528 581
Symbol 295 GraphicUsed by:336 417 528 581
Symbol 296 GraphicUsed by:336 417 528 581
Symbol 297 GraphicUsed by:336 417 528 581
Symbol 298 GraphicUsed by:336 417 528 581
Symbol 299 GraphicUsed by:336 417 528 581
Symbol 300 GraphicUsed by:336 417 528 581
Symbol 301 GraphicUsed by:336 417 528 581
Symbol 302 GraphicUsed by:336 417 528 581
Symbol 303 GraphicUsed by:336 417 528 581
Symbol 304 GraphicUsed by:336 417 528 581
Symbol 305 GraphicUsed by:336 417 528 581
Symbol 306 GraphicUsed by:336 417 528 581
Symbol 307 GraphicUsed by:336 417 528 581
Symbol 308 GraphicUsed by:336 417 528 581
Symbol 309 GraphicUsed by:336 417 528 581
Symbol 310 GraphicUsed by:336 417 528 581
Symbol 311 GraphicUsed by:336 417 528 581
Symbol 312 GraphicUsed by:336 417 528 581
Symbol 313 GraphicUsed by:336 417 528 581
Symbol 314 GraphicUsed by:336 417 528 581
Symbol 315 GraphicUsed by:336 417 528 581
Symbol 316 GraphicUsed by:336 417 528 581
Symbol 317 GraphicUsed by:336 417 528 581
Symbol 318 GraphicUsed by:336 417 528 581
Symbol 319 GraphicUsed by:336 417 528 581
Symbol 320 GraphicUsed by:336 417 528 581
Symbol 321 GraphicUsed by:336 417 528 581
Symbol 322 GraphicUsed by:336 417 528 581
Symbol 323 GraphicUsed by:336 417 528 581
Symbol 324 GraphicUsed by:336 417 528 581
Symbol 325 GraphicUsed by:336 417 528 581
Symbol 326 GraphicUsed by:336 417 528 581
Symbol 327 GraphicUsed by:336 417 528 581
Symbol 328 GraphicUsed by:336 417 528 581
Symbol 329 GraphicUsed by:336 417 528 581
Symbol 330 GraphicUsed by:336 417 528 581
Symbol 331 GraphicUsed by:336 417 528 581
Symbol 332 GraphicUsed by:336 417 528 581
Symbol 333 GraphicUsed by:336 417 528 581
Symbol 334 GraphicUsed by:336 417 528 581
Symbol 335 GraphicUsed by:336 417 528 581
Symbol 336 MovieClipUses:239 241 146 148 242 243 244 150 245 246 247 248 249 250 251 78 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 25 272 273 274 275 168 276 277 278 279 280 281 282 187 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 23 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335Used by:408 704
Symbol 337 GraphicUsed by:338 418
Symbol 338 MovieClipUses:337Used by:408 586 591 703 704 708
Symbol 339 GraphicUsed by:340
Symbol 340 MovieClipUses:339Used by:408 453 526 579 586 591 607 617 625 697 699 700 701 702 703 704 705 706 707 708
Symbol 341 GraphicUsed by:342
Symbol 342 MovieClipUses:341Used by:408 526 607 617 701 702 704 706
Symbol 343 GraphicUsed by:344
Symbol 344 MovieClipUses:343Used by:408 453 579 617 701 704 705 707
Symbol 345 MovieClipUses:77Used by:408 586 591 703 704 708
Symbol 346 MovieClipUses:77Used by:408 586 591 703 704 708
Symbol 347 GraphicUsed by:355
Symbol 348 GraphicUsed by:349 350 355
Symbol 349 MovieClipUses:348Used by:355
Symbol 350 MovieClipUses:348Used by:355
Symbol 351 MovieClipUses:77Used by:355 511 683 684
Symbol 352 GraphicUsed by:355
Symbol 353 GraphicUsed by:355
Symbol 354 GraphicUsed by:355
Symbol 355 MovieClipUses:347 348 349 350 351 24 352 353 354Used by:408 453 526 579 586 591 607 617 625 697 699 700 701 702 703 704 705 706 707 708
Symbol 356 GraphicUsed by:357
Symbol 357 MovieClipUses:356Used by:408 453 526 579 586 591 607 617 625 697 699 700 701 702 703 704 705 706 707 708
Symbol 358 GraphicUsed by:359
Symbol 359 MovieClipUses:358Used by:408 453 526 579 586 591 607 617 625 697 699 700 701 702 703 704 705 706 707 708
Symbol 360 GraphicUsed by:361
Symbol 361 MovieClipUses:360Used by:408 453 526 579 586 591 607 617 701 702 703 704 705 706 707 708
Symbol 362 GraphicUsed by:363 689
Symbol 363 MovieClipUses:362Used by:365
Symbol 364 GraphicUsed by:365
Symbol 365 MovieClipUses:363 364Used by:408 453 526 579 586 591 607 617 625 697 699 700 701 702 703 704 705 706 707 708
Symbol 366 MovieClipUses:77Used by:408 453 526 579 586 591 607 617 625 700 701 702 703 704 705 706 707 708
Symbol 367 GraphicUsed by:368 565
Symbol 368 MovieClipUses:367Used by:408 448 453 526 579 591 607 617 625 697 699 700 701 702 703 704 705 706 707
Symbol 369 GraphicUsed by:370
Symbol 370 MovieClipUses:369Used by:408 453 526 579 607 617 625 697 699 700 701 702 704 705 706 707
Symbol 371 MovieClipUses:77Used by:408 453 526 579 586 591 607 617 625 700 701 702 703 704 705 706 707 708
Symbol 372 GraphicUsed by:373 390
Symbol 373 MovieClipUses:372Used by:408 453 526 586 591 607 697 699 702 703 704 706 707 708
Symbol 374 GraphicUsed by:408 453 526 579 586 591 607 617 625 697 699 700 701 702 703 704 705 706 707 708
Symbol 375 GraphicUsed by:376
Symbol 376 MovieClipUses:375Used by:378 620
Symbol 377 GraphicUsed by:378
Symbol 378 MovieClipUses:376 377Used by:408 453 579 704 705 707
Symbol 379 GraphicUsed by:380
Symbol 380 MovieClipUses:379Used by:408 453 579 586 591 607 702 703 704 705 707 708
Symbol 381 GraphicUsed by:382 391
Symbol 382 MovieClipUses:381Used by:408 453 526 579 586 591 607 617 625 700 701 702 703 704 705 706 707 708
Symbol 383 GraphicUsed by:386
Symbol 384 GraphicUsed by:385 392 394
Symbol 385 MovieClipUses:384Used by:386
Symbol 386 MovieClipUses:383 385Used by:408 704
Symbol 387 GraphicUsed by:388 583
Symbol 388 MovieClipUses:387Used by:408 586 591 703 704 708
Symbol 389 GraphicUsed by:408 453 579 586 591 607 617 625 697 699 700 701 702 703 704 705 707 708
Symbol 390 MovieClipUses:372Used by:408 453 526 579 586 591 607 617 625 697 699 700 701 702 703 704 705 706 707 708
Symbol 391 MovieClipUses:381Used by:408 586 591 703 704 708
Symbol 392 MovieClipUses:384Used by:408 586 591 703 704 708
Symbol 393 GraphicUsed by:408 586 591 703 704 708
Symbol 394 MovieClipUses:384Used by:408 586 591 703 704 708
Symbol 395 GraphicUsed by:408 704
Symbol 396 GraphicUsed by:407
Symbol 397 MovieClipUses:49Used by:407 585 590
Symbol 398 MovieClipUses:49Used by:407 585 590
Symbol 399 MovieClipUses:49Used by:407 585 590
Symbol 400 MovieClipUses:49Used by:407 585 590
Symbol 401 MovieClipUses:49Used by:407 585 590
Symbol 402 MovieClipUses:49Used by:407 585 590
Symbol 403 MovieClipUses:49Used by:407 585 590
Symbol 404 GraphicUsed by:405
Symbol 405 MovieClipUses:404Used by:407 585 590
Symbol 406 MovieClipUses:49Used by:407 585 590
Symbol 407 MovieClipUses:396 397 398 399 400 401 402 403 405 406Used by:408 704
Symbol 408 MovieClipUses:140 142 238 336 338 340 342 344 345 346 355 357 359 361 365 366 368 370 371 373 374 378 380 382 386 388 389 390 391 392 393 394 395 407Used by:Timeline
Symbol 409 MovieClipUses:33Used by:Timeline
Symbol 410 BitmapUsed by:411
Symbol 411 GraphicUses:410Used by:Timeline
Symbol 412 GraphicUsed by:415
Symbol 413 GraphicUsed by:414
Symbol 414 MovieClipUses:413Used by:415
Symbol 415 MovieClipUses:412 414Used by:Timeline
Symbol 416 MovieClipUses:144 145 146 148 149 150 151 152 153 78 154 155 156 157 158 159 160 161 162 163 164 25 165 166 167 168 169 170 171 172 173 174 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 23 224 225 226 227 228 229 230 231 232 233 234 235 236 237Used by:453 526 607 617 625 697 699 700 701 702 706 707
Symbol 417 MovieClipUses:239 241 146 148 242 243 244 150 245 246 247 248 249 250 251 78 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 25 272 273 274 275 168 276 277 278 279 280 281 282 187 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 23 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335Used by:453 526 607 617 625 697 699 700 701 702 706 707
Symbol 418 MovieClipUses:337Used by:453 526 579 607 617 625 697 699 700 701 702 705 706 707
Symbol 419 GraphicUsed by:420
Symbol 420 MovieClipUses:419Used by:453 579 607 617 701 702 705 707
Symbol 421 GraphicUsed by:422 556 558
Symbol 422 MovieClipUses:421Used by:453 707
Symbol 423 GraphicUsed by:424 427 557
Symbol 424 MovieClipUses:423Used by:453 707
Symbol 425 GraphicUsed by:426 555 559 582
Symbol 426 MovieClipUses:425Used by:453 707
Symbol 427 MovieClipUses:423Used by:453 707
Symbol 428 BitmapUsed by:429
Symbol 429 GraphicUses:428Used by:430
Symbol 430 MovieClipUses:429Used by:453 526 579 705 706 707
Symbol 431 GraphicUsed by:453 707
Symbol 432 GraphicUsed by:438 505
Symbol 433 GraphicUsed by:434
Symbol 434 MovieClipUses:433Used by:438 440 497 498 499 500 505 561 562 563 564
Symbol 435 GraphicUsed by:438 440 497 498 499 500 505 561 562 563 564
Symbol 436 GraphicUsed by:438 440 497 498 499 500 505 561 562 563 564
Symbol 437 SoundUsed by:438 440 497 498 499 500 505 561 562 563 564
Symbol 438 MovieClipUses:432 434 435 436 437Used by:453 526 579 591 607 617 625 697 699 700 701 702 703 705 706 707
Symbol 439 GraphicUsed by:440 497 498 499 500 561 562 563 564
Symbol 440 MovieClipUses:439 434 435 436 437Used by:453 607 617 625 697 699 700 701 702 707
Symbol 441 GraphicUsed by:442
Symbol 442 MovieClipUses:441Used by:444
Symbol 443 GraphicUsed by:444
Symbol 444 MovieClipUses:442 443Used by:453 579 607 702 705 707
Symbol 445 GraphicUsed by:453 607 702 707
Symbol 446 GraphicUsed by:453 707
Symbol 447 GraphicUsed by:448
Symbol 448 MovieClipUses:368 447Used by:453 526 579 591 607 617 625 697 699 700 701 702 703 705 706 707
Symbol 449 GraphicUsed by:452
Symbol 450 MovieClipUses:49Used by:452 525 606 616 624 696
Symbol 451 GraphicUsed by:452
Symbol 452 MovieClipUses:449 450 451Used by:453 707
Symbol 453 MovieClipUses:368 416 417 344 355 418 357 359 361 365 340 420 422 424 426 427 366 371 373 430 370 431 374 142 438 440 389 390 444 378 445 380 382 446 448 452Used by:Timeline
Symbol 454 GraphicUsed by:460
Symbol 455 GraphicUsed by:456
Symbol 456 MovieClipUses:455Used by:460 504
Symbol 457 GraphicUsed by:460 504
Symbol 458 GraphicUsed by:460 504
Symbol 459 GraphicUsed by:460 504
Symbol 460 MovieClipUses:454 456 457 458 459Used by:526 607 702 706
Symbol 461 GraphicUsed by:464
Symbol 462 GraphicUsed by:464
Symbol 463 GraphicUsed by:464
Symbol 464 MovieClipUses:461 462 463Used by:526 579 591 607 617 625 700 701 702 703 705 706
Symbol 465 GraphicUsed by:466
Symbol 466 MovieClipUses:465Used by:526 607 617 701 702 706
Symbol 467 GraphicUsed by:495 496 594 595 596 597 598
Symbol 468 GraphicUsed by:495 496 594 595 596 597 598
Symbol 469 GraphicUsed by:495 496 594 595 596 597 598
Symbol 470 GraphicUsed by:495 496 594 595 596 597 598
Symbol 471 GraphicUsed by:495 496 594 595 596 597 598
Symbol 472 GraphicUsed by:495 496 594 595 596 597 598
Symbol 473 GraphicUsed by:495 496 594 595 596 597 598
Symbol 474 GraphicUsed by:495 496 594 595 596 597 598
Symbol 475 GraphicUsed by:495 496 594 595 596 597 598
Symbol 476 GraphicUsed by:495 496 594 595 596 597 598
Symbol 477 GraphicUsed by:495 496 594 595 596 597 598
Symbol 478 GraphicUsed by:495 496 594 595 596 597 598
Symbol 479 GraphicUsed by:495 496 594 595 596 597 598
Symbol 480 GraphicUsed by:495 496 594 595 596 597 598
Symbol 481 GraphicUsed by:495 496 594 595 596 597 598
Symbol 482 GraphicUsed by:495 496 594 595 596 597 598
Symbol 483 GraphicUsed by:495 496 594 595 596 597 598
Symbol 484 GraphicUsed by:495 496 594 595 596 597 598
Symbol 485 GraphicUsed by:495 496 594 595 596 597 598
Symbol 486 GraphicUsed by:495 496 594 595 596 597 598
Symbol 487 GraphicUsed by:495 496 594 595 596 597 598
Symbol 488 GraphicUsed by:495 496 594 595 596 597 598
Symbol 489 GraphicUsed by:495 496 594 595 596 597 598
Symbol 490 GraphicUsed by:495 496 594 595 596 597 598
Symbol 491 GraphicUsed by:495 496 594 595 596 597 598
Symbol 492 GraphicUsed by:495 496 594 595 596 597 598
Symbol 493 GraphicUsed by:495 496 594 595 596 597 598
Symbol 494 GraphicUsed by:495 496 594 595 596 597 598
Symbol 495 MovieClipUses:467 78 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 21 489 490 491 492 493 494Used by:526 706
Symbol 496 MovieClipUses:467 78 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 21 489 490 491 492 493 494Used by:526 706
Symbol 497 MovieClipUses:439 434 435 436 437Used by:526 579 705 706
Symbol 498 MovieClipUses:439 434 435 436 437Used by:526 579 705 706
Symbol 499 MovieClipUses:439 434 435 436 437Used by:526 579 705 706
Symbol 500 MovieClipUses:439 434 435 436 437Used by:526 579 705 706
Symbol 501 MovieClipUses:77Used by:526 579 586 591 703 705 706 708
Symbol 502 MovieClipUses:77Used by:526 579 586 591 703 705 706 708
Symbol 503 GraphicUsed by:504
Symbol 504 MovieClipUses:503 456 457 458 459Used by:526 579 607 617 701 702 705 706
Symbol 505 MovieClipUses:432 434 435 436 437Used by:526 706
Symbol 506 GraphicUsed by:526 706
Symbol 507 GraphicUsed by:508
Symbol 508 MovieClipUses:507Used by:526 706
Symbol 509 MovieClipUses:77Used by:526 706
Symbol 510 GraphicUsed by:511
Symbol 511 MovieClipUses:351 510Used by:526 706
Symbol 512 GraphicUsed by:513 515
Symbol 513 MovieClipUses:512Used by:526 579 705 706
Symbol 514 GraphicUsed by:526 706
Symbol 515 MovieClipUses:512Used by:526 706
Symbol 516 GraphicUsed by:526 706
Symbol 517 GraphicUsed by:518
Symbol 518 MovieClipUses:517Used by:526 579 591 703 705 706
Symbol 519 GraphicUsed by:526 706
Symbol 520 GraphicUsed by:526 706
Symbol 521 GraphicUsed by:525
Symbol 522 MovieClipUses:49Used by:525 577
Symbol 523 GraphicUsed by:525
Symbol 524 GraphicUsed by:525
Symbol 525 MovieClipUses:521 522 523 450 524Used by:526 706
Symbol 526 MovieClipUses:368 416 417 460 342 359 464 466 495 496 355 418 357 361 365 340 366 497 498 499 500 371 501 502 504 505 370 390 506 508 509 511 513 373 514 430 515 438 142 374 382 516 518 448 519 520 525Used by:Timeline
Symbol 527 MovieClipUses:144 145 146 148 149 150 151 152 153 78 154 155 156 157 158 159 160 161 162 163 164 25 165 166 167 168 169 170 171 172 173 174 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 23 224 225 226 227 228 229 230 231 232 233 234 235 236 237Used by:579 705
Symbol 528 MovieClipUses:239 241 146 148 242 243 244 150 245 246 247 248 249 250 251 78 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 25 272 273 274 275 168 276 277 278 279 280 281 282 187 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 23 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335Used by:579 705
Symbol 529 GraphicUsed by:552
Symbol 530 MovieClipUses:77Used by:552
Symbol 531 GraphicUsed by:552
Symbol 532 GraphicUsed by:552
Symbol 533 GraphicUsed by:552
Symbol 534 GraphicUsed by:552
Symbol 535 GraphicUsed by:552
Symbol 536 GraphicUsed by:552
Symbol 537 GraphicUsed by:552
Symbol 538 GraphicUsed by:552
Symbol 539 GraphicUsed by:552
Symbol 540 GraphicUsed by:552
Symbol 541 GraphicUsed by:552
Symbol 542 GraphicUsed by:552
Symbol 543 GraphicUsed by:552
Symbol 544 GraphicUsed by:552
Symbol 545 GraphicUsed by:552
Symbol 546 GraphicUsed by:552
Symbol 547 GraphicUsed by:552
Symbol 548 GraphicUsed by:552
Symbol 549 GraphicUsed by:550 654
Symbol 550 MovieClipUses:549Used by:552
Symbol 551 GraphicUsed by:552
Symbol 552 MovieClipUses:529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 20 547 548 550 551Used by:579 607 617 701 702 705
Symbol 553 GraphicUsed by:554
Symbol 554 MovieClipUses:553Used by:579 586 705 708
Symbol 555 MovieClipUses:425Used by:579 705
Symbol 556 MovieClipUses:421Used by:579 705
Symbol 557 MovieClipUses:423Used by:579 705
Symbol 558 MovieClipUses:421Used by:579 705
Symbol 559 MovieClipUses:425Used by:579 705
Symbol 560 GraphicUsed by:579 705
Symbol 561 MovieClipUses:439 434 435 436 437Used by:579 705
Symbol 562 MovieClipUses:439 434 435 436 437Used by:579 705
Symbol 563 MovieClipUses:439 434 435 436 437Used by:579 705
Symbol 564 MovieClipUses:439 434 435 436 437Used by:579 705
Symbol 565 MovieClipUses:367Used by:579 705
Symbol 566 GraphicUsed by:579 705
Symbol 567 GraphicUsed by:579 705
Symbol 568 GraphicUsed by:579 705
Symbol 569 GraphicUsed by:579 705
Symbol 570 GraphicUsed by:579 705
Symbol 571 GraphicUsed by:579 705
Symbol 572 GraphicUsed by:579 705
Symbol 573 GraphicUsed by:579 705
Symbol 574 GraphicUsed by:579 705
Symbol 575 GraphicUsed by:577
Symbol 576 GraphicUsed by:577
Symbol 577 MovieClipUses:575 522 576Used by:579 705
Symbol 578 GraphicUsed by:579 705
Symbol 579 MovieClipUses:368 527 528 464 552 344 504 554 355 418 357 359 361 365 340 366 555 371 390 556 557 558 420 380 559 430 142 370 382 560 501 502 374 561 562 563 564 497 498 499 565 566 513 500 567 568 448 569 438 518 570 571 572 444 573 378 389 574 577 578Used by:Timeline
Symbol 580 MovieClipUses:144 145 146 148 149 150 151 152 153 78 154 155 156 157 158 159 160 161 162 163 164 25 165 166 167 168 169 170 171 172 173 174 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 23 224 225 226 227 228 229 230 231 232 233 234 235 236 237Used by:586 591 703 708
Symbol 581 MovieClipUses:239 241 146 148 242 243 244 150 245 246 247 248 249 250 251 78 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 25 272 273 274 275 168 276 277 278 279 280 281 282 187 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 23 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335Used by:586 591 703 708
Symbol 582 MovieClipUses:425Used by:586 708
Symbol 583 MovieClipUses:387Used by:586 591 703 708
Symbol 584 GraphicUsed by:586 708
Symbol 585 MovieClipUses:397 401 398 399 400 402 403 405 406Used by:586 708
Symbol 586 MovieClipUses:140 142 580 581 554 338 340 345 346 355 357 359 361 365 582 366 388 389 371 501 502 373 583 374 390 382 391 392 393 394 584 380 585Used by:Timeline
Symbol 587 GraphicUsed by:591 703
Symbol 588 GraphicUsed by:591 703
Symbol 589 GraphicUsed by:591 703
Symbol 590 MovieClipUses:397 401 398 400 399 402 403 405 406Used by:591 703
Symbol 591 MovieClipUses:140 142 580 581 464 338 340 345 346 355 357 359 361 365 366 368 501 502 438 373 388 389 371 583 374 518 390 382 587 391 392 393 394 448 588 589 380 590Used by:Timeline
Symbol 592 GraphicUsed by:593
Symbol 593 MovieClipUses:592Used by:607 617 701 702
Symbol 594 MovieClipUses:467 78 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 21 489 490 491 492 493 494Used by:607 617 701 702
Symbol 595 MovieClipUses:467 78 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 21 489 490 491 492 493 494Used by:607 617 701 702
Symbol 596 MovieClipUses:467 78 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 21 489 490 491 492 493 494Used by:607 617 701 702
Symbol 597 MovieClipUses:467 78 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 21 489 490 491 492 493 494Used by:607 617 701 702
Symbol 598 MovieClipUses:467 78 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 21 489 490 491 492 493 494Used by:607 617 701 702
Symbol 599 GraphicUsed by:607 702
Symbol 600 GraphicUsed by:607 702
Symbol 601 GraphicUsed by:607 702
Symbol 602 GraphicUsed by:603
Symbol 603 MovieClipUses:602Used by:607 702
Symbol 604 GraphicUsed by:606
Symbol 605 GraphicUsed by:606
Symbol 606 MovieClipUses:604 450 605Used by:607 702
Symbol 607 MovieClipUses:593 368 416 417 466 594 460 464 552 342 595 504 596 597 420 598 355 418 357 359 361 365 340 366 370 373 371 599 600 438 440 389 374 390 445 380 382 601 444 603 448 606Used by:Timeline
Symbol 608 GraphicUsed by:617 701
Symbol 609 GraphicUsed by:617 701
Symbol 610 GraphicUsed by:617 701
Symbol 611 GraphicUsed by:617 701
Symbol 612 GraphicUsed by:617 701
Symbol 613 GraphicUsed by:617 701
Symbol 614 GraphicUsed by:616
Symbol 615 GraphicUsed by:616
Symbol 616 MovieClipUses:614 450 615Used by:617 701
Symbol 617 MovieClipUses:368 593 416 417 464 504 420 344 466 594 342 595 552 598 355 418 357 359 361 365 340 596 597 366 371 390 370 608 382 438 440 389 374 609 610 611 612 448 613 616Used by:Timeline
Symbol 618 MovieClipUses:77Used by:625 700
Symbol 619 GraphicUsed by:620
Symbol 620 MovieClipUses:376 619Used by:625 700
Symbol 621 GraphicUsed by:625 700
Symbol 622 GraphicUsed by:624
Symbol 623 GraphicUsed by:624
Symbol 624 MovieClipUses:622 450 623Used by:625 700
Symbol 625 MovieClipUses:368 416 417 464 355 418 357 359 365 340 366 618 620 390 371 370 438 440 389 374 621 382 448 624Used by:Timeline
Symbol 626 GraphicUsed by:683 684
Symbol 627 GraphicUsed by:628
Symbol 628 MovieClipUses:627Used by:683 684
Symbol 629 GraphicUsed by:683 684
Symbol 630 GraphicUsed by:683 684
Symbol 631 GraphicUsed by:683 684
Symbol 632 GraphicUsed by:683 684
Symbol 633 GraphicUsed by:683 684
Symbol 634 GraphicUsed by:683 684
Symbol 635 GraphicUsed by:683 684
Symbol 636 GraphicUsed by:683 684
Symbol 637 GraphicUsed by:683 684
Symbol 638 GraphicUsed by:683 684
Symbol 639 GraphicUsed by:683 684
Symbol 640 GraphicUsed by:683 684
Symbol 641 GraphicUsed by:683 684
Symbol 642 GraphicUsed by:683 684
Symbol 643 GraphicUsed by:683 684
Symbol 644 GraphicUsed by:683 684
Symbol 645 GraphicUsed by:683 684
Symbol 646 GraphicUsed by:683 684
Symbol 647 GraphicUsed by:683 684
Symbol 648 GraphicUsed by:683 684
Symbol 649 GraphicUsed by:683 684
Symbol 650 GraphicUsed by:683 684
Symbol 651 GraphicUsed by:683 684
Symbol 652 GraphicUsed by:683 684
Symbol 653 GraphicUsed by:683 684
Symbol 654 MovieClipUses:549Used by:683 684
Symbol 655 GraphicUsed by:683 684
Symbol 656 GraphicUsed by:683 684
Symbol 657 GraphicUsed by:683 684
Symbol 658 GraphicUsed by:683 684
Symbol 659 GraphicUsed by:683 684
Symbol 660 GraphicUsed by:683 684
Symbol 661 GraphicUsed by:683 684
Symbol 662 GraphicUsed by:683 684
Symbol 663 GraphicUsed by:683 684
Symbol 664 GraphicUsed by:683 684
Symbol 665 GraphicUsed by:683 684
Symbol 666 GraphicUsed by:683 684
Symbol 667 GraphicUsed by:683 684
Symbol 668 GraphicUsed by:683 684
Symbol 669 GraphicUsed by:683 684
Symbol 670 GraphicUsed by:683 684
Symbol 671 GraphicUsed by:683 684
Symbol 672 GraphicUsed by:683 684
Symbol 673 GraphicUsed by:683 684
Symbol 674 GraphicUsed by:683 684
Symbol 675 GraphicUsed by:683 684
Symbol 676 GraphicUsed by:683 684
Symbol 677 GraphicUsed by:683 684
Symbol 678 GraphicUsed by:683 684
Symbol 679 GraphicUsed by:683 684
Symbol 680 GraphicUsed by:683 684
Symbol 681 GraphicUsed by:683 684
Symbol 682 GraphicUsed by:683 684
Symbol 683 MovieClipUses:626 628 629 351 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 19 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682Used by:697 699
Symbol 684 MovieClipUses:626 628 629 351 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 19 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682Used by:697 699
Symbol 685 GraphicUsed by:686
Symbol 686 MovieClipUses:685Used by:690
Symbol 687 GraphicUsed by:688
Symbol 688 MovieClipUses:687Used by:690
Symbol 689 MovieClipUses:362Used by:690
Symbol 690 MovieClipUses:686 688 689Used by:697 699
Symbol 691 MovieClipUses:77Used by:697 699
Symbol 692 GraphicUsed by:697 699
Symbol 693 GraphicUsed by:697 699
Symbol 694 GraphicUsed by:696
Symbol 695 GraphicUsed by:696
Symbol 696 MovieClipUses:694 450 695Used by:697 699
Symbol 697 MovieClipUses:416 417 683 684 355 418 357 359 365 340 690 691 390 368 373 692 370 438 440 693 389 448 374 696Used by:Timeline
Symbol 698 GraphicUsed by:Timeline
Symbol 699 MovieClipUses:416 417 683 684 355 418 357 359 365 340 690 691 390 368 373 692 370 438 440 693 389 448 374 696Used by:Timeline
Symbol 700 MovieClipUses:368 416 417 464 355 418 357 359 365 340 366 618 620 390 371 370 438 440 389 374 621 382 448 624Used by:Timeline
Symbol 701 MovieClipUses:368 593 416 417 464 504 420 344 466 594 342 595 552 598 355 418 357 359 361 365 340 596 597 366 371 390 370 608 382 438 440 389 374 609 610 611 612 448 613 616Used by:Timeline
Symbol 702 MovieClipUses:593 368 416 417 466 594 460 464 552 342 595 504 596 597 420 598 355 418 357 359 361 365 340 366 370 373 371 599 600 438 440 389 374 390 445 380 382 601 444 603 448 606Used by:Timeline
Symbol 703 MovieClipUses:140 142 580 581 464 338 340 345 346 355 357 359 361 365 366 368 501 502 438 373 388 389 371 583 374 518 390 382 587 391 392 393 394 448 588 589 380 590Used by:Timeline
Symbol 704 MovieClipUses:140 142 238 336 338 340 342 344 345 346 355 357 359 361 365 366 368 370 371 373 374 378 380 382 386 388 389 390 391 392 393 394 395 407Used by:Timeline
Symbol 705 MovieClipUses:368 527 528 464 552 344 504 554 355 418 357 359 361 365 340 366 555 371 390 556 557 558 420 380 559 430 142 370 382 560 501 502 374 561 562 563 564 497 498 499 565 566 513 500 567 568 448 569 438 518 570 571 572 444 573 378 389 574 577 578Used by:Timeline
Symbol 706 MovieClipUses:368 416 417 460 342 359 464 466 495 496 355 418 357 361 365 340 366 497 498 499 500 371 501 502 504 505 370 390 506 508 509 511 513 373 514 430 515 438 142 374 382 516 518 448 519 520 525Used by:Timeline
Symbol 707 MovieClipUses:368 416 417 344 355 418 357 359 361 365 340 420 422 424 426 427 366 371 373 430 370 431 374 142 438 440 389 390 444 378 445 380 382 446 448 452Used by:Timeline
Symbol 708 MovieClipUses:140 142 580 581 554 338 340 345 346 355 357 359 361 365 582 366 388 389 371 501 502 373 583 374 390 382 391 392 393 394 584 380 585Used by:Timeline

Instance Names

"m"Frame 1Symbol 29 MovieClip
"load"Frame 1Symbol 36 MovieClip
"charDisp"Frame 4Symbol 57 MovieClip
"jukebox"Frame 5Symbol 66 MovieClip
"warper"Frame 5Symbol 69 MovieClip
"fader"Frame 5Symbol 85 MovieClip
"tBoard"Frame 5Symbol 98 MovieClip
"bossGage"Frame 5Symbol 108 MovieClip
"dWindow"Frame 5Symbol 121 MovieClip
"life"Frame 5Symbol 131 MovieClip
"world"Frame 5Symbol 408 MovieClip
"white"Frame 5Symbol 409 MovieClip
"world"Frame 6Symbol 453 MovieClip
"world"Frame 7Symbol 526 MovieClip
"world"Frame 8Symbol 579 MovieClip
"world"Frame 9Symbol 586 MovieClip
"world"Frame 10Symbol 591 MovieClip
"world"Frame 11Symbol 607 MovieClip
"world"Frame 12Symbol 617 MovieClip
"world"Frame 13Symbol 625 MovieClip
"world"Frame 14Symbol 697 MovieClip
"g"Symbol 36 MovieClip Frame 1Symbol 34 MovieClip
"hitMask"Symbol 85 MovieClip Frame 53Symbol 78 MovieClip
"barB"Symbol 108 MovieClip Frame 1Symbol 106 MovieClip
"barA"Symbol 108 MovieClip Frame 1Symbol 106 MovieClip
"portrait"Symbol 121 MovieClip Frame 1Symbol 119 MovieClip
"ibar"Symbol 131 MovieClip Frame 1Symbol 106 MovieClip
"bar"Symbol 131 MovieClip Frame 1Symbol 106 MovieClip
"hitMask"Symbol 238 MovieClip Frame 1Symbol 146 MovieClip
"bow"Symbol 238 MovieClip Frame 1Symbol 148 MovieClip
"bow"Symbol 238 MovieClip Frame 2Symbol 150 MovieClip
"hitMask"Symbol 238 MovieClip Frame 4Symbol 78 MovieClip
"attMask"Symbol 238 MovieClip Frame 27Symbol 168 MovieClip
"attMask"Symbol 238 MovieClip Frame 53Symbol 168 MovieClip
"bow"Symbol 238 MovieClip Frame 61Symbol 148 MovieClip
"hitMask"Symbol 336 MovieClip Frame 1Symbol 146 MovieClip
"bow"Symbol 336 MovieClip Frame 1Symbol 148 MovieClip
"bow"Symbol 336 MovieClip Frame 2Symbol 150 MovieClip
"hitMask"Symbol 336 MovieClip Frame 5Symbol 78 MovieClip
"hitMask"Symbol 336 MovieClip Frame 25Symbol 146 MovieClip
"hitMask"Symbol 336 MovieClip Frame 26Symbol 78 MovieClip
"attMask"Symbol 336 MovieClip Frame 27Symbol 168 MovieClip
"attMask"Symbol 336 MovieClip Frame 53Symbol 168 MovieClip
"bow"Symbol 336 MovieClip Frame 61Symbol 148 MovieClip
"hitMask"Symbol 355 MovieClip Frame 1Symbol 351 MovieClip
"gallan"Symbol 408 MovieClip Frame 1Symbol 238 MovieClip
"milo"Symbol 408 MovieClip Frame 1Symbol 336 MovieClip
"seed"Symbol 408 MovieClip Frame 1Symbol 338 MovieClip
"arrow1"Symbol 408 MovieClip Frame 1Symbol 340 MovieClip
"explosion"Symbol 408 MovieClip Frame 1Symbol 355 MovieClip
"spang"Symbol 408 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 408 MovieClip Frame 1Symbol 365 MovieClip
"sb1"Symbol 408 MovieClip Frame 1Symbol 392 MovieClip
"sb2"Symbol 408 MovieClip Frame 1Symbol 394 MovieClip
"ground"Symbol 408 MovieClip Frame 1Symbol 407 MovieClip
"hitMask"Symbol 416 MovieClip Frame 1Symbol 146 MovieClip
"bow"Symbol 416 MovieClip Frame 1Symbol 148 MovieClip
"bow"Symbol 416 MovieClip Frame 2Symbol 150 MovieClip
"hitMask"Symbol 416 MovieClip Frame 4Symbol 78 MovieClip
"attMask"Symbol 416 MovieClip Frame 27Symbol 168 MovieClip
"attMask"Symbol 416 MovieClip Frame 53Symbol 168 MovieClip
"bow"Symbol 416 MovieClip Frame 61Symbol 148 MovieClip
"hitMask"Symbol 417 MovieClip Frame 1Symbol 146 MovieClip
"bow"Symbol 417 MovieClip Frame 1Symbol 148 MovieClip
"bow"Symbol 417 MovieClip Frame 2Symbol 150 MovieClip
"hitMask"Symbol 417 MovieClip Frame 5Symbol 78 MovieClip
"hitMask"Symbol 417 MovieClip Frame 25Symbol 146 MovieClip
"hitMask"Symbol 417 MovieClip Frame 26Symbol 78 MovieClip
"attMask"Symbol 417 MovieClip Frame 27Symbol 168 MovieClip
"attMask"Symbol 417 MovieClip Frame 53Symbol 168 MovieClip
"bow"Symbol 417 MovieClip Frame 61Symbol 148 MovieClip
"cblock01"Symbol 452 MovieClip Frame 1Symbol 450 MovieClip
"gallan"Symbol 453 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 453 MovieClip Frame 1Symbol 417 MovieClip
"explosion"Symbol 453 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 453 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 453 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 453 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 453 MovieClip Frame 1Symbol 340 MovieClip
"ground"Symbol 453 MovieClip Frame 1Symbol 452 MovieClip
"hitMask"Symbol 495 MovieClip Frame 1Symbol 78 MovieClip
"hitMask"Symbol 496 MovieClip Frame 1Symbol 78 MovieClip
"hitmask"Symbol 511 MovieClip Frame 1Symbol 351 MovieClip
"cblock04"Symbol 525 MovieClip Frame 1Symbol 522 MovieClip
"cblock03"Symbol 525 MovieClip Frame 1Symbol 450 MovieClip
"cblock02"Symbol 525 MovieClip Frame 1Symbol 522 MovieClip
"cblock01"Symbol 525 MovieClip Frame 1Symbol 450 MovieClip
"gallan"Symbol 526 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 526 MovieClip Frame 1Symbol 417 MovieClip
"enar2"Symbol 526 MovieClip Frame 1Symbol 466 MovieClip
"enar1"Symbol 526 MovieClip Frame 1Symbol 466 MovieClip
"explosion"Symbol 526 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 526 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 526 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 526 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 526 MovieClip Frame 1Symbol 340 MovieClip
"ballTrigger"Symbol 526 MovieClip Frame 1Symbol 509 MovieClip
"snowball"Symbol 526 MovieClip Frame 1Symbol 511 MovieClip
"ground"Symbol 526 MovieClip Frame 1Symbol 525 MovieClip
"hitMask"Symbol 527 MovieClip Frame 1Symbol 146 MovieClip
"bow"Symbol 527 MovieClip Frame 1Symbol 148 MovieClip
"bow"Symbol 527 MovieClip Frame 2Symbol 150 MovieClip
"hitMask"Symbol 527 MovieClip Frame 4Symbol 78 MovieClip
"attMask"Symbol 527 MovieClip Frame 27Symbol 168 MovieClip
"attMask"Symbol 527 MovieClip Frame 53Symbol 168 MovieClip
"bow"Symbol 527 MovieClip Frame 61Symbol 148 MovieClip
"hitMask"Symbol 528 MovieClip Frame 1Symbol 146 MovieClip
"bow"Symbol 528 MovieClip Frame 1Symbol 148 MovieClip
"bow"Symbol 528 MovieClip Frame 2Symbol 150 MovieClip
"hitMask"Symbol 528 MovieClip Frame 5Symbol 78 MovieClip
"hitMask"Symbol 528 MovieClip Frame 25Symbol 146 MovieClip
"hitMask"Symbol 528 MovieClip Frame 26Symbol 78 MovieClip
"attMask"Symbol 528 MovieClip Frame 27Symbol 168 MovieClip
"attMask"Symbol 528 MovieClip Frame 53Symbol 168 MovieClip
"bow"Symbol 528 MovieClip Frame 61Symbol 148 MovieClip
"hitMask"Symbol 552 MovieClip Frame 1Symbol 530 MovieClip
"attMask"Symbol 552 MovieClip Frame 33Symbol 550 MovieClip
"cblock08"Symbol 577 MovieClip Frame 1Symbol 522 MovieClip
"cblock06"Symbol 577 MovieClip Frame 1Symbol 522 MovieClip
"cblock07"Symbol 577 MovieClip Frame 1Symbol 522 MovieClip
"cblock05"Symbol 577 MovieClip Frame 1Symbol 522 MovieClip
"cblock04"Symbol 577 MovieClip Frame 1Symbol 522 MovieClip
"cblock03"Symbol 577 MovieClip Frame 1Symbol 522 MovieClip
"cblock02"Symbol 577 MovieClip Frame 1Symbol 522 MovieClip
"cblock01"Symbol 577 MovieClip Frame 1Symbol 522 MovieClip
"gallan"Symbol 579 MovieClip Frame 1Symbol 527 MovieClip
"milo"Symbol 579 MovieClip Frame 1Symbol 528 MovieClip
"explosion"Symbol 579 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 579 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 579 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 579 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 579 MovieClip Frame 1Symbol 340 MovieClip
"ground"Symbol 579 MovieClip Frame 1Symbol 577 MovieClip
"hitMask"Symbol 580 MovieClip Frame 1Symbol 146 MovieClip
"bow"Symbol 580 MovieClip Frame 1Symbol 148 MovieClip
"bow"Symbol 580 MovieClip Frame 2Symbol 150 MovieClip
"hitMask"Symbol 580 MovieClip Frame 4Symbol 78 MovieClip
"attMask"Symbol 580 MovieClip Frame 27Symbol 168 MovieClip
"attMask"Symbol 580 MovieClip Frame 53Symbol 168 MovieClip
"bow"Symbol 580 MovieClip Frame 61Symbol 148 MovieClip
"hitMask"Symbol 581 MovieClip Frame 1Symbol 146 MovieClip
"bow"Symbol 581 MovieClip Frame 1Symbol 148 MovieClip
"bow"Symbol 581 MovieClip Frame 2Symbol 150 MovieClip
"hitMask"Symbol 581 MovieClip Frame 5Symbol 78 MovieClip
"hitMask"Symbol 581 MovieClip Frame 25Symbol 146 MovieClip
"hitMask"Symbol 581 MovieClip Frame 26Symbol 78 MovieClip
"attMask"Symbol 581 MovieClip Frame 27Symbol 168 MovieClip
"attMask"Symbol 581 MovieClip Frame 53Symbol 168 MovieClip
"bow"Symbol 581 MovieClip Frame 61Symbol 148 MovieClip
"gallan"Symbol 586 MovieClip Frame 1Symbol 580 MovieClip
"milo"Symbol 586 MovieClip Frame 1Symbol 581 MovieClip
"seed"Symbol 586 MovieClip Frame 1Symbol 338 MovieClip
"arrow1"Symbol 586 MovieClip Frame 1Symbol 340 MovieClip
"explosion"Symbol 586 MovieClip Frame 1Symbol 355 MovieClip
"spang"Symbol 586 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 586 MovieClip Frame 1Symbol 365 MovieClip
"sb1"Symbol 586 MovieClip Frame 1Symbol 392 MovieClip
"sb2"Symbol 586 MovieClip Frame 1Symbol 394 MovieClip
"ground"Symbol 586 MovieClip Frame 1Symbol 585 MovieClip
"gallan"Symbol 591 MovieClip Frame 1Symbol 580 MovieClip
"milo"Symbol 591 MovieClip Frame 1Symbol 581 MovieClip
"seed"Symbol 591 MovieClip Frame 1Symbol 338 MovieClip
"arrow1"Symbol 591 MovieClip Frame 1Symbol 340 MovieClip
"explosion"Symbol 591 MovieClip Frame 1Symbol 355 MovieClip
"spang"Symbol 591 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 591 MovieClip Frame 1Symbol 365 MovieClip
"sb1"Symbol 591 MovieClip Frame 1Symbol 392 MovieClip
"sb2"Symbol 591 MovieClip Frame 1Symbol 394 MovieClip
"ground"Symbol 591 MovieClip Frame 1Symbol 590 MovieClip
"hitMask"Symbol 594 MovieClip Frame 1Symbol 78 MovieClip
"hitMask"Symbol 595 MovieClip Frame 1Symbol 78 MovieClip
"hitMask"Symbol 596 MovieClip Frame 1Symbol 78 MovieClip
"hitMask"Symbol 597 MovieClip Frame 1Symbol 78 MovieClip
"hitMask"Symbol 598 MovieClip Frame 1Symbol 78 MovieClip
"cblock01"Symbol 606 MovieClip Frame 1Symbol 450 MovieClip
"gallan"Symbol 607 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 607 MovieClip Frame 1Symbol 417 MovieClip
"enar5"Symbol 607 MovieClip Frame 1Symbol 466 MovieClip
"enar1"Symbol 607 MovieClip Frame 1Symbol 466 MovieClip
"enar4"Symbol 607 MovieClip Frame 1Symbol 466 MovieClip
"enar3"Symbol 607 MovieClip Frame 1Symbol 466 MovieClip
"enar2"Symbol 607 MovieClip Frame 1Symbol 466 MovieClip
"explosion"Symbol 607 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 607 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 607 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 607 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 607 MovieClip Frame 1Symbol 340 MovieClip
"ground"Symbol 607 MovieClip Frame 1Symbol 606 MovieClip
"cblock01"Symbol 616 MovieClip Frame 1Symbol 450 MovieClip
"gallan"Symbol 617 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 617 MovieClip Frame 1Symbol 417 MovieClip
"enar5"Symbol 617 MovieClip Frame 1Symbol 466 MovieClip
"enar1"Symbol 617 MovieClip Frame 1Symbol 466 MovieClip
"enar2"Symbol 617 MovieClip Frame 1Symbol 466 MovieClip
"explosion"Symbol 617 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 617 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 617 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 617 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 617 MovieClip Frame 1Symbol 340 MovieClip
"enar4"Symbol 617 MovieClip Frame 1Symbol 466 MovieClip
"enar3"Symbol 617 MovieClip Frame 1Symbol 466 MovieClip
"ground"Symbol 617 MovieClip Frame 1Symbol 616 MovieClip
"cblock01"Symbol 624 MovieClip Frame 1Symbol 450 MovieClip
"gallan"Symbol 625 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 625 MovieClip Frame 1Symbol 417 MovieClip
"explosion"Symbol 625 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 625 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 625 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 625 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 625 MovieClip Frame 1Symbol 340 MovieClip
"ground"Symbol 625 MovieClip Frame 1Symbol 624 MovieClip
"hitMask"Symbol 683 MovieClip Frame 1Symbol 351 MovieClip
"attackMask"Symbol 683 MovieClip Frame 14Symbol 654 MovieClip
"attackMask"Symbol 683 MovieClip Frame 22Symbol 654 MovieClip
"hitMask"Symbol 684 MovieClip Frame 1Symbol 351 MovieClip
"attackMask"Symbol 684 MovieClip Frame 14Symbol 654 MovieClip
"attackMask"Symbol 684 MovieClip Frame 22Symbol 654 MovieClip
"cblock01"Symbol 696 MovieClip Frame 1Symbol 450 MovieClip
"gallan"Symbol 697 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 697 MovieClip Frame 1Symbol 417 MovieClip
"g2"Symbol 697 MovieClip Frame 1Symbol 683 MovieClip
"g1"Symbol 697 MovieClip Frame 1Symbol 684 MovieClip
"explosion"Symbol 697 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 697 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 697 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 697 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 697 MovieClip Frame 1Symbol 340 MovieClip
"snargil"Symbol 697 MovieClip Frame 1Symbol 690 MovieClip
"endBlock"Symbol 697 MovieClip Frame 1Symbol 691 MovieClip
"ground"Symbol 697 MovieClip Frame 1Symbol 696 MovieClip
"gallan"Symbol 699 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 699 MovieClip Frame 1Symbol 417 MovieClip
"g2"Symbol 699 MovieClip Frame 1Symbol 683 MovieClip
"g1"Symbol 699 MovieClip Frame 1Symbol 684 MovieClip
"explosion"Symbol 699 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 699 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 699 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 699 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 699 MovieClip Frame 1Symbol 340 MovieClip
"snargil"Symbol 699 MovieClip Frame 1Symbol 690 MovieClip
"endBlock"Symbol 699 MovieClip Frame 1Symbol 691 MovieClip
"ground"Symbol 699 MovieClip Frame 1Symbol 696 MovieClip
"gallan"Symbol 700 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 700 MovieClip Frame 1Symbol 417 MovieClip
"explosion"Symbol 700 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 700 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 700 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 700 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 700 MovieClip Frame 1Symbol 340 MovieClip
"ground"Symbol 700 MovieClip Frame 1Symbol 624 MovieClip
"gallan"Symbol 701 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 701 MovieClip Frame 1Symbol 417 MovieClip
"enar5"Symbol 701 MovieClip Frame 1Symbol 466 MovieClip
"enar1"Symbol 701 MovieClip Frame 1Symbol 466 MovieClip
"enar2"Symbol 701 MovieClip Frame 1Symbol 466 MovieClip
"explosion"Symbol 701 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 701 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 701 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 701 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 701 MovieClip Frame 1Symbol 340 MovieClip
"enar4"Symbol 701 MovieClip Frame 1Symbol 466 MovieClip
"enar3"Symbol 701 MovieClip Frame 1Symbol 466 MovieClip
"ground"Symbol 701 MovieClip Frame 1Symbol 616 MovieClip
"gallan"Symbol 702 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 702 MovieClip Frame 1Symbol 417 MovieClip
"enar5"Symbol 702 MovieClip Frame 1Symbol 466 MovieClip
"enar1"Symbol 702 MovieClip Frame 1Symbol 466 MovieClip
"enar4"Symbol 702 MovieClip Frame 1Symbol 466 MovieClip
"enar3"Symbol 702 MovieClip Frame 1Symbol 466 MovieClip
"enar2"Symbol 702 MovieClip Frame 1Symbol 466 MovieClip
"explosion"Symbol 702 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 702 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 702 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 702 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 702 MovieClip Frame 1Symbol 340 MovieClip
"ground"Symbol 702 MovieClip Frame 1Symbol 606 MovieClip
"gallan"Symbol 703 MovieClip Frame 1Symbol 580 MovieClip
"milo"Symbol 703 MovieClip Frame 1Symbol 581 MovieClip
"seed"Symbol 703 MovieClip Frame 1Symbol 338 MovieClip
"arrow1"Symbol 703 MovieClip Frame 1Symbol 340 MovieClip
"explosion"Symbol 703 MovieClip Frame 1Symbol 355 MovieClip
"spang"Symbol 703 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 703 MovieClip Frame 1Symbol 365 MovieClip
"sb1"Symbol 703 MovieClip Frame 1Symbol 392 MovieClip
"sb2"Symbol 703 MovieClip Frame 1Symbol 394 MovieClip
"ground"Symbol 703 MovieClip Frame 1Symbol 590 MovieClip
"gallan"Symbol 704 MovieClip Frame 1Symbol 238 MovieClip
"milo"Symbol 704 MovieClip Frame 1Symbol 336 MovieClip
"seed"Symbol 704 MovieClip Frame 1Symbol 338 MovieClip
"arrow1"Symbol 704 MovieClip Frame 1Symbol 340 MovieClip
"explosion"Symbol 704 MovieClip Frame 1Symbol 355 MovieClip
"spang"Symbol 704 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 704 MovieClip Frame 1Symbol 365 MovieClip
"sb1"Symbol 704 MovieClip Frame 1Symbol 392 MovieClip
"sb2"Symbol 704 MovieClip Frame 1Symbol 394 MovieClip
"ground"Symbol 704 MovieClip Frame 1Symbol 407 MovieClip
"gallan"Symbol 705 MovieClip Frame 1Symbol 527 MovieClip
"milo"Symbol 705 MovieClip Frame 1Symbol 528 MovieClip
"explosion"Symbol 705 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 705 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 705 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 705 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 705 MovieClip Frame 1Symbol 340 MovieClip
"ground"Symbol 705 MovieClip Frame 1Symbol 577 MovieClip
"gallan"Symbol 706 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 706 MovieClip Frame 1Symbol 417 MovieClip
"enar2"Symbol 706 MovieClip Frame 1Symbol 466 MovieClip
"enar1"Symbol 706 MovieClip Frame 1Symbol 466 MovieClip
"explosion"Symbol 706 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 706 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 706 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 706 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 706 MovieClip Frame 1Symbol 340 MovieClip
"ballTrigger"Symbol 706 MovieClip Frame 1Symbol 509 MovieClip
"snowball"Symbol 706 MovieClip Frame 1Symbol 511 MovieClip
"ground"Symbol 706 MovieClip Frame 1Symbol 525 MovieClip
"gallan"Symbol 707 MovieClip Frame 1Symbol 416 MovieClip
"milo"Symbol 707 MovieClip Frame 1Symbol 417 MovieClip
"explosion"Symbol 707 MovieClip Frame 1Symbol 355 MovieClip
"seed"Symbol 707 MovieClip Frame 1Symbol 418 MovieClip
"spang"Symbol 707 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 707 MovieClip Frame 1Symbol 365 MovieClip
"arrow1"Symbol 707 MovieClip Frame 1Symbol 340 MovieClip
"ground"Symbol 707 MovieClip Frame 1Symbol 452 MovieClip
"gallan"Symbol 708 MovieClip Frame 1Symbol 580 MovieClip
"milo"Symbol 708 MovieClip Frame 1Symbol 581 MovieClip
"seed"Symbol 708 MovieClip Frame 1Symbol 338 MovieClip
"arrow1"Symbol 708 MovieClip Frame 1Symbol 340 MovieClip
"explosion"Symbol 708 MovieClip Frame 1Symbol 355 MovieClip
"spang"Symbol 708 MovieClip Frame 1Symbol 357 MovieClip
"deathEffect"Symbol 708 MovieClip Frame 1Symbol 365 MovieClip
"sb1"Symbol 708 MovieClip Frame 1Symbol 392 MovieClip
"sb2"Symbol 708 MovieClip Frame 1Symbol 394 MovieClip
"ground"Symbol 708 MovieClip Frame 1Symbol 585 MovieClip

Special Tags

Protect (24)Timeline Frame 131 bytes "..$1$.e$fxEaw7JCa7UJckU.t/GZ/1."
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 "snowSlide"
ExportAssets (56)Timeline Frame 1Symbol 6 as "slash2"
ExportAssets (56)Timeline Frame 1Symbol 7 as "bounce"
ExportAssets (56)Timeline Frame 1Symbol 8 as "seedP"
ExportAssets (56)Timeline Frame 1Symbol 9 as "raieetFast"
ExportAssets (56)Timeline Frame 1Symbol 10 as "ow"
ExportAssets (56)Timeline Frame 1Symbol 11 as "now"
ExportAssets (56)Timeline Frame 1Symbol 12 as "heh"
ExportAssets (56)Timeline Frame 1Symbol 13 as "goatHit"
ExportAssets (56)Timeline Frame 1Symbol 14 as "goatFlip"
ExportAssets (56)Timeline Frame 1Symbol 15 as "flag"
ExportAssets (56)Timeline Frame 1Symbol 16 as "door"
ExportAssets (56)Timeline Frame 1Symbol 17 as "c"
ExportAssets (56)Timeline Frame 1Symbol 18 as "bolt"
ExportAssets (56)Timeline Frame 1Symbol 19 as "swishLow"
ExportAssets (56)Timeline Frame 1Symbol 20 as "rar"
ExportAssets (56)Timeline Frame 1Symbol 21 as "arw1"
ExportAssets (56)Timeline Frame 1Symbol 22 as "scoreTally"
ExportAssets (56)Timeline Frame 1Symbol 23 as "cb"
ExportAssets (56)Timeline Frame 1Symbol 24 as "ex3"
ExportAssets (56)Timeline Frame 1Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 4Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 4Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 5Symbol 22 as "scoreTally"
ExportAssets (56)Timeline Frame 5Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 5Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 5Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 5Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 5Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 5Symbol 23 as "cb"
ExportAssets (56)Timeline Frame 5Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 5Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 5Symbol 23 as "cb"
ExportAssets (56)Timeline Frame 5Symbol 24 as "ex3"
ExportAssets (56)Timeline Frame 6Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 6Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 6Symbol 23 as "cb"
ExportAssets (56)Timeline Frame 6Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 6Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 6Symbol 23 as "cb"
ExportAssets (56)Timeline Frame 7Symbol 21 as "arw1"
ExportAssets (56)Timeline Frame 7Symbol 21 as "arw1"
ExportAssets (56)Timeline Frame 8Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 8Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 8Symbol 23 as "cb"
ExportAssets (56)Timeline Frame 8Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 8Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 8Symbol 23 as "cb"
ExportAssets (56)Timeline Frame 8Symbol 20 as "rar"
ExportAssets (56)Timeline Frame 9Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 9Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 9Symbol 23 as "cb"
ExportAssets (56)Timeline Frame 9Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 9Symbol 25 as "airSwish2"
ExportAssets (56)Timeline Frame 9Symbol 23 as "cb"
ExportAssets (56)Timeline Frame 11Symbol 21 as "arw1"
ExportAssets (56)Timeline Frame 11Symbol 21 as "arw1"
ExportAssets (56)Timeline Frame 11Symbol 21 as "arw1"
ExportAssets (56)Timeline Frame 11Symbol 21 as "arw1"
ExportAssets (56)Timeline Frame 11Symbol 21 as "arw1"
ExportAssets (56)Timeline Frame 14Symbol 19 as "swishLow"
ExportAssets (56)Timeline Frame 14Symbol 19 as "swishLow"
ExportAssets (56)Timeline Frame 14Symbol 19 as "swishLow"
ExportAssets (56)Timeline Frame 14Symbol 19 as "swishLow"

Labels

"A"Frame 10
"board"Symbol 66 MovieClip Frame 1
"endGuy"Symbol 66 MovieClip Frame 2
"warpIn"Symbol 69 MovieClip Frame 1
"off"Symbol 69 MovieClip Frame 11
"warpOut"Symbol 69 MovieClip Frame 12
"fadeIn"Symbol 85 MovieClip Frame 1
"off"Symbol 85 MovieClip Frame 11
"fadeOut"Symbol 85 MovieClip Frame 12
"gameOver"Symbol 85 MovieClip Frame 53
"stand"Symbol 238 MovieClip Frame 1
"jumpUp"Symbol 238 MovieClip Frame 2
"jumpDown"Symbol 238 MovieClip Frame 3
"wince"Symbol 238 MovieClip Frame 4
"run"Symbol 238 MovieClip Frame 5
"attack"Symbol 238 MovieClip Frame 25
"ko"Symbol 238 MovieClip Frame 31
"boardRun"Symbol 238 MovieClip Frame 32
"boardSprint"Symbol 238 MovieClip Frame 44
"boardCarve"Symbol 238 MovieClip Frame 50
"boardJumpUp"Symbol 238 MovieClip Frame 51
"boardJumpDown"Symbol 238 MovieClip Frame 52
"boardBackFlip"Symbol 238 MovieClip Frame 53
"shoot"Symbol 238 MovieClip Frame 61
"duck"Symbol 238 MovieClip Frame 70
"roll"Symbol 238 MovieClip Frame 71
"throw"Symbol 238 MovieClip Frame 80
"stand"Symbol 336 MovieClip Frame 1
"jumpUp"Symbol 336 MovieClip Frame 2
"jumpDown"Symbol 336 MovieClip Frame 3
"wince"Symbol 336 MovieClip Frame 4
"run"Symbol 336 MovieClip Frame 5
"attack"Symbol 336 MovieClip Frame 25
"ko"Symbol 336 MovieClip Frame 31
"boardRun"Symbol 336 MovieClip Frame 32
"boardSprint"Symbol 336 MovieClip Frame 44
"boardCarve"Symbol 336 MovieClip Frame 50
"boardJumpUp"Symbol 336 MovieClip Frame 51
"boardJumpDown"Symbol 336 MovieClip Frame 52
"boardBackFlip"Symbol 336 MovieClip Frame 53
"shoot"Symbol 336 MovieClip Frame 61
"duck"Symbol 336 MovieClip Frame 70
"roll"Symbol 336 MovieClip Frame 71
"throw"Symbol 336 MovieClip Frame 80
"stand"Symbol 416 MovieClip Frame 1
"jumpUp"Symbol 416 MovieClip Frame 2
"jumpDown"Symbol 416 MovieClip Frame 3
"wince"Symbol 416 MovieClip Frame 4
"run"Symbol 416 MovieClip Frame 5
"attack"Symbol 416 MovieClip Frame 25
"ko"Symbol 416 MovieClip Frame 31
"boardRun"Symbol 416 MovieClip Frame 32
"boardSprint"Symbol 416 MovieClip Frame 44
"boardCarve"Symbol 416 MovieClip Frame 50
"boardJumpUp"Symbol 416 MovieClip Frame 51
"boardJumpDown"Symbol 416 MovieClip Frame 52
"boardBackFlip"Symbol 416 MovieClip Frame 53
"shoot"Symbol 416 MovieClip Frame 61
"duck"Symbol 416 MovieClip Frame 70
"roll"Symbol 416 MovieClip Frame 71
"throw"Symbol 416 MovieClip Frame 80
"stand"Symbol 417 MovieClip Frame 1
"jumpUp"Symbol 417 MovieClip Frame 2
"jumpDown"Symbol 417 MovieClip Frame 3
"wince"Symbol 417 MovieClip Frame 4
"run"Symbol 417 MovieClip Frame 5
"attack"Symbol 417 MovieClip Frame 25
"ko"Symbol 417 MovieClip Frame 31
"boardRun"Symbol 417 MovieClip Frame 32
"boardSprint"Symbol 417 MovieClip Frame 44
"boardCarve"Symbol 417 MovieClip Frame 50
"boardJumpUp"Symbol 417 MovieClip Frame 51
"boardJumpDown"Symbol 417 MovieClip Frame 52
"boardBackFlip"Symbol 417 MovieClip Frame 53
"shoot"Symbol 417 MovieClip Frame 61
"duck"Symbol 417 MovieClip Frame 70
"roll"Symbol 417 MovieClip Frame 71
"throw"Symbol 417 MovieClip Frame 80
"break"Symbol 438 MovieClip Frame 2
"break"Symbol 440 MovieClip Frame 2
"cblock01"Symbol 452 MovieClip Frame 1
"run"Symbol 495 MovieClip Frame 2
"jumpUp"Symbol 495 MovieClip Frame 18
"jumpDown"Symbol 495 MovieClip Frame 19
"wince"Symbol 495 MovieClip Frame 20
"shoot"Symbol 495 MovieClip Frame 21
"run"Symbol 496 MovieClip Frame 2
"jumpUp"Symbol 496 MovieClip Frame 18
"jumpDown"Symbol 496 MovieClip Frame 19
"wince"Symbol 496 MovieClip Frame 20
"shoot"Symbol 496 MovieClip Frame 21
"break"Symbol 497 MovieClip Frame 2
"break"Symbol 498 MovieClip Frame 2
"break"Symbol 499 MovieClip Frame 2
"break"Symbol 500 MovieClip Frame 2
"break"Symbol 505 MovieClip Frame 2
"stand"Symbol 527 MovieClip Frame 1
"jumpUp"Symbol 527 MovieClip Frame 2
"jumpDown"Symbol 527 MovieClip Frame 3
"wince"Symbol 527 MovieClip Frame 4
"run"Symbol 527 MovieClip Frame 5
"attack"Symbol 527 MovieClip Frame 25
"ko"Symbol 527 MovieClip Frame 31
"boardRun"Symbol 527 MovieClip Frame 32
"boardSprint"Symbol 527 MovieClip Frame 44
"boardCarve"Symbol 527 MovieClip Frame 50
"boardJumpUp"Symbol 527 MovieClip Frame 51
"boardJumpDown"Symbol 527 MovieClip Frame 52
"boardBackFlip"Symbol 527 MovieClip Frame 53
"shoot"Symbol 527 MovieClip Frame 61
"duck"Symbol 527 MovieClip Frame 70
"roll"Symbol 527 MovieClip Frame 71
"throw"Symbol 527 MovieClip Frame 80
"stand"Symbol 528 MovieClip Frame 1
"jumpUp"Symbol 528 MovieClip Frame 2
"jumpDown"Symbol 528 MovieClip Frame 3
"wince"Symbol 528 MovieClip Frame 4
"run"Symbol 528 MovieClip Frame 5
"attack"Symbol 528 MovieClip Frame 25
"ko"Symbol 528 MovieClip Frame 31
"boardRun"Symbol 528 MovieClip Frame 32
"boardSprint"Symbol 528 MovieClip Frame 44
"boardCarve"Symbol 528 MovieClip Frame 50
"boardJumpUp"Symbol 528 MovieClip Frame 51
"boardJumpDown"Symbol 528 MovieClip Frame 52
"boardBackFlip"Symbol 528 MovieClip Frame 53
"shoot"Symbol 528 MovieClip Frame 61
"duck"Symbol 528 MovieClip Frame 70
"roll"Symbol 528 MovieClip Frame 71
"throw"Symbol 528 MovieClip Frame 80
"stand"Symbol 552 MovieClip Frame 1
"jump"Symbol 552 MovieClip Frame 2
"wince"Symbol 552 MovieClip Frame 3
"run"Symbol 552 MovieClip Frame 4
"attack"Symbol 552 MovieClip Frame 19
"break"Symbol 561 MovieClip Frame 2
"break"Symbol 562 MovieClip Frame 2
"break"Symbol 563 MovieClip Frame 2
"break"Symbol 564 MovieClip Frame 2
"stand"Symbol 580 MovieClip Frame 1
"jumpUp"Symbol 580 MovieClip Frame 2
"jumpDown"Symbol 580 MovieClip Frame 3
"wince"Symbol 580 MovieClip Frame 4
"run"Symbol 580 MovieClip Frame 5
"attack"Symbol 580 MovieClip Frame 25
"ko"Symbol 580 MovieClip Frame 31
"boardRun"Symbol 580 MovieClip Frame 32
"boardSprint"Symbol 580 MovieClip Frame 44
"boardCarve"Symbol 580 MovieClip Frame 50
"boardJumpUp"Symbol 580 MovieClip Frame 51
"boardJumpDown"Symbol 580 MovieClip Frame 52
"boardBackFlip"Symbol 580 MovieClip Frame 53
"shoot"Symbol 580 MovieClip Frame 61
"duck"Symbol 580 MovieClip Frame 70
"roll"Symbol 580 MovieClip Frame 71
"throw"Symbol 580 MovieClip Frame 80
"stand"Symbol 581 MovieClip Frame 1
"jumpUp"Symbol 581 MovieClip Frame 2
"jumpDown"Symbol 581 MovieClip Frame 3
"wince"Symbol 581 MovieClip Frame 4
"run"Symbol 581 MovieClip Frame 5
"attack"Symbol 581 MovieClip Frame 25
"ko"Symbol 581 MovieClip Frame 31
"boardRun"Symbol 581 MovieClip Frame 32
"boardSprint"Symbol 581 MovieClip Frame 44
"boardCarve"Symbol 581 MovieClip Frame 50
"boardJumpUp"Symbol 581 MovieClip Frame 51
"boardJumpDown"Symbol 581 MovieClip Frame 52
"boardBackFlip"Symbol 581 MovieClip Frame 53
"shoot"Symbol 581 MovieClip Frame 61
"duck"Symbol 581 MovieClip Frame 70
"roll"Symbol 581 MovieClip Frame 71
"throw"Symbol 581 MovieClip Frame 80
"run"Symbol 594 MovieClip Frame 2
"jumpUp"Symbol 594 MovieClip Frame 18
"jumpDown"Symbol 594 MovieClip Frame 19
"wince"Symbol 594 MovieClip Frame 20
"shoot"Symbol 594 MovieClip Frame 21
"run"Symbol 595 MovieClip Frame 2
"jumpUp"Symbol 595 MovieClip Frame 18
"jumpDown"Symbol 595 MovieClip Frame 19
"wince"Symbol 595 MovieClip Frame 20
"shoot"Symbol 595 MovieClip Frame 21
"run"Symbol 596 MovieClip Frame 2
"jumpUp"Symbol 596 MovieClip Frame 18
"jumpDown"Symbol 596 MovieClip Frame 19
"wince"Symbol 596 MovieClip Frame 20
"shoot"Symbol 596 MovieClip Frame 21
"run"Symbol 597 MovieClip Frame 2
"jumpUp"Symbol 597 MovieClip Frame 18
"jumpDown"Symbol 597 MovieClip Frame 19
"wince"Symbol 597 MovieClip Frame 20
"shoot"Symbol 597 MovieClip Frame 21
"run"Symbol 598 MovieClip Frame 2
"jumpUp"Symbol 598 MovieClip Frame 18
"jumpDown"Symbol 598 MovieClip Frame 19
"wince"Symbol 598 MovieClip Frame 20
"shoot"Symbol 598 MovieClip Frame 21
"cblock01"Symbol 606 MovieClip Frame 1
"cblock01"Symbol 616 MovieClip Frame 1
"cblock01"Symbol 624 MovieClip Frame 1
"stand"Symbol 683 MovieClip Frame 1
"jump"Symbol 683 MovieClip Frame 2
"attack"Symbol 683 MovieClip Frame 10
"run"Symbol 683 MovieClip Frame 30
"wince"Symbol 683 MovieClip Frame 46
"stand"Symbol 684 MovieClip Frame 1
"jump"Symbol 684 MovieClip Frame 2
"attack"Symbol 684 MovieClip Frame 10
"run"Symbol 684 MovieClip Frame 30
"wince"Symbol 684 MovieClip Frame 46
"cblock01"Symbol 696 MovieClip Frame 1

Dynamic Text Variables

_root.count1Symbol 32 EditableText"100"
_root.world.endBlock.srSymbol 92 EditableText"Paladin"
_root.world.endBlock.stSymbol 93 EditableText"10000"
_root.world.endBlock.s3Symbol 94 EditableText"10000"
_root.world.endBlock.s2Symbol 95 EditableText"10000"
_root.world.endBlock.s1Symbol 96 EditableText"10000"
_root.bombDisplaySymbol 100 EditableText"00"
_root.dWindow.messageSymbol 110 EditableText"Hey, you're a Knight of Serenity right?  Thank goodness you're here!  You've got to help us!"
_root.dWindow.messageSymbol 111 EditableText"Hey, you're a Knight of Serenity right?  Thank goodness you're here!  You've got to help us!"
_root.livesDisplaySymbol 129 EditableText"X"
_root.arrowDisplaySymbol 132 EditableText"00"




http://swfchan.com/5/21897/info.shtml
Created: 11/8 -2019 22:10:35 Last modified: 11/8 -2019 22:10:35 Server time: 22/12 -2024 17:54:37