Combined Code
movieClip 30 {
}
movieClip 36 specfire {
frame 73 {
stop();
this.removeMovieClip();
}
}
frame 1 {
stop();
}
movieClip 39 {
}
movieClip 41 {
}
movieClip 43 {
}
movieClip 46 {
}
movieClip 50 {
}
instance of movieClip 50 {
onClipEvent (release) {
getURL('http://www.armorgames.com', '_blank');
}
}
// unknown tag 88 length 163
// unknown tag 88 length 171
movieClip 59 {
}
movieClip 60 {
}
movieClip 61 {
frame 1 {
stop();
}
}
// unknown tag 88 length 61
movieClip 64 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
instance of movieClip 61 {
onClipEvent (rollOver) {
this.gotoAndPlay(2);
}
onClipEvent (press) {
_root.play();
}
}
frame 73 {
stop();
}
instance of movieClip 61 {
onClipEvent (rollOver) {
this.gotoAndPlay(2);
}
onClipEvent (press) {
_root.play();
}
}
}
movieClip 73 {
}
movieClip 98 {
}
movieClip 109 {
}
button 114 {
on (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
movieClip 117 {
frame 1 {
_root.stop();
gotoAndPlay(2);
}
frame 218 {
stop();
_root.play();
}
}
frame 435 {
var savefile = SharedObject.getLocal('ArmedWithWings2');
_root.difficulty = 2;
_root.sword = 1;
_root.swordsUnlocked = 1;
_root.fightingBoss2 = false;
_root.mission = 1;
_root.gameClocked = false;
Stage.showMenu = false();
_quality = 'MEDIUM';
}
// unknown tag 88 length 63
// unknown tag 88 length 62
// unknown tag 88 length 297
movieClip 136 {
}
movieClip 141 {
}
movieClip 156 {
}
movieClip 163 {
}
movieClip 204 {
}
movieClip 209 {
frame 28 {
stop();
}
frame 45 {
gotoAndStop(28);
}
frame 57 {
stop();
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('storyMenu');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
stopAllSounds();
_root.gotoAndPlay('fukno');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndStop('instructions');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://www.sun-studios.net', '_blank');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://armorgames.com/play/1408/armed-with-wings', '_blank');
}
}
frame 874 {
stop();
}
movieClip 216 {
frame 1 {
stop();
}
frame 70 {
stop();
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('loadMenu');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.sword = _root.savefile.data.sword;
_root.mission = _root.savefile.data.mission;
_root.fightingBoss2 = _root.savefile.data.fightingBoss2;
_root.swordsUnlocked = _root.savefile.data.swordsUnlocked;
_root.difficulty = _root.savefile.data.difficulty;
_root.gameClocked = _root.savefile.data.gameClocked;
stopAllSounds();
if (_root.mission == 1) {
_root.gotoAndPlay('lvlstart');
} else {
if (_root.mission == 2 or _root.mission == 3 or _root.mission == 4) {
_root.gotoAndPlay('lvl2start');
} else {
if (_root.mission == 5) {
_root.gotoAndPlay('lvl5start');
}
}
}
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('loadMenu');
}
}
frame 939 {
stop();
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('menuMenu');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.difficulty = 1;
_root.play();
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.difficulty = 2;
_root.play();
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.difficulty = 3;
_root.play();
}
}
frame 990 {
stop();
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('lololol');
}
}
frame 991 {
stopAllSounds();
}
frame 1075 {
_root.gotoAndStop('cutscene1');
}
frame 1076 {
stop();
}
// unknown tag 88 length 170
movieClip 473 {
}
movieClip 554 {
frame 1596 {
_root.nextFrame();
}
}
instance of movieClip 554 {
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_root.play();
}
}
}
// unknown tag 88 length 177
frame 1077 {
_root.gotoAndPlay('lvlstart');
}
frame 1082 {
stop();
_root._visible = true;
}
// unknown tag 88 length 164
movieClip 603 {
}
movieClip 610 {
}
movieClip 652 {
}
movieClip 675 {
}
movieClip 677 {
}
movieClip 679 {
}
movieClip 704 {
}
movieClip 729 {
frame 270 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 591 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 700 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 751 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 884 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1214 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1318 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1402 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1523 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1569 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1618 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1688 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1737 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1886 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1937 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2022 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2125 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2211 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2274 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2489 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2624 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2706 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2749 {
_root.nextFrame();
}
}
instance of movieClip 729 {
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_root.play();
}
}
}
frame 1083 {
stopAllSounds();
_root._visible = false;
_root.gotoAndPlay('lvl2start');
}
frame 1088 {
stop();
}
movieClip 736 {
}
movieClip 738 {
}
// unknown tag 88 length 170
movieClip 742 {
instance sbar of movieClip 736 {
onClipEvent (load) {
var percent = 0;
}
onClipEvent (enterFrame) {
percent = (_root.hero.special / 10) * 100;
_xscale = percent;
}
}
instance bar of movieClip 738 {
onClipEvent (load) {
var percent = 0;
}
onClipEvent (enterFrame) {
percent = (_root.hero.life / 10) * 100;
_xscale = percent;
}
}
}
movieClip 764 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 765 {
instance of movieClip 764 {
onClipEvent (enterFrame) {
gotoAndStop(_root.sword);
}
}
}
movieClip 792 {
instance lifebar of movieClip 742 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
this._xscale = _root.vcam._xscale;
this._yscale = _root.vcam._yscale;
if (_root.vcam._xscale < 0) {
this._rotation = 180;
} else {
this._rotation = 0;
}
}
}
frame 116 {
_root.gotoAndStop('bossBattlePart2');
}
}
frame 1098 {
stop();
}
movieClip 796 {
}
movieClip 864 {
}
movieClip 867 {
}
movieClip 946 {
frame 179 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 224 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 266 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 440 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 686 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 762 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 786 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 864 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 921 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1026 {
_root.play();
}
}
instance of movieClip 946 {
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_root.play();
}
}
}
frame 1099 {
stopAllSounds();
_root._visible = false;
_root.gotoAndPlay('lvl2start');
}
frame 1107 {
stop();
}
movieClip 984 {
}
movieClip 1004 {
}
movieClip 1068 {
}
movieClip 1069 {
}
movieClip 1087 {
frame 391 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 870 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 899 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 958 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1006 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1030 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1053 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1122 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1145 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1242 {
_root.play();
}
}
instance of movieClip 1087 {
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_root.play();
}
}
}
frame 1108 {
stopAllSounds();
_root._visible = false;
_root.gotoAndPlay('lvl5start');
}
frame 1115 {
stop();
}
movieClip 1161 {
frame 144 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 309 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 526 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 595 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 638 {
_root.gotoAndPlay('credits');
}
}
instance of movieClip 1161 {
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_root.play();
}
}
}
frame 1116 {
_root.gotoAndPlay('credits');
}
frame 1117 {
instantKill = true;
sword2ZoomScale = true;
nextFrame();
}
movieClip 1163 {
frame 1 {
play();
}
frame 18 {
stop();
}
}
instance music of movieClip 1163 {
onClipEvent (load) {
_visible = false;
}
}
frame 1118 {
stop();
_root._visible = false;
var lvl = 'Escape';
if (_root.gameClocked == true) {
_root.sword = 5;
}
vcam.onHero = true;
hero.activated = false;
hero.life = 10;
hero.special = 10;
wall._visible = false;
hero._x = 2890;
hero._y = -100;
instantKill = false;
}
instance mountain2 of movieClip 796 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 1167 {
}
movieClip 1169 {
}
movieClip 1171 {
}
instance of movieClip 1171 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
instance of movieClip 1171 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
movieClip 1173 {
}
movieClip 1188 {
frame 1 {
stop();
}
}
movieClip 1197 {
frame 10 {
_parent.gotoAndStop(1);
}
}
movieClip 1205 {
frame 10 {
_parent.gotoAndStop(1);
}
}
movieClip 1206 {
frame 1 {
stop();
}
}
movieClip 1222 {
frame 1 {
_visible = false;
}
}
movieClip 1289 {
}
movieClip 1290 {
frame 48 {
stop();
}
}
movieClip 1306 {
}
movieClip 1369 {
frame 1 {
stop();
}
}
movieClip 1392 {
frame 1 {
onLoad = function () {
xSpeed = 0;
};
onEnterFrame = function () {
if (_parent.xSpeed > 0) {
_parent.xSpeed -= 1;
}
if (_parent.xSpeed < 0) {
_parent.xSpeed += 1;
}
};
}
frame 10 {
if (_parent._xscale == -100) {
_parent.xSpeed = -5;
}
if (_parent._xscale == 100) {
_parent.xSpeed = 5;
}
}
instance hit of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 26 {
if (_parent._xscale == -100) {
_parent.xSpeed = -5;
}
if (_parent._xscale == 100) {
_parent.xSpeed = 5;
}
}
instance hit of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 33 {
if (_parent._xscale == -100) {
_parent.xSpeed = -5;
}
if (_parent._xscale == 100) {
_parent.xSpeed = 5;
}
}
instance hit of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 70 {
if (_parent._xscale == -100) {
_parent.xSpeed = -15;
}
if (_parent._xscale == 100) {
_parent.xSpeed = 15;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 93 {
_parent.gotoAndStop(1);
}
frame 95 {
if (_parent._xscale == -100) {
_parent.xSpeed = 20;
}
if (_parent._xscale == 100) {
_parent.xSpeed = -20;
}
}
frame 119 {
_parent.gotoAndStop(1);
}
instance of movieClip 1306 {
onClipEvent (load) {
this.gotoAndPlay(25);
}
}
instance of movieClip 1306 {
onClipEvent (load) {
this.gotoAndPlay(25);
}
}
frame 123 {
if (_parent._xscale == -100) {
_parent.xSpeed = -23;
}
if (_parent._xscale == 100) {
_parent.xSpeed = 23;
}
}
instance hit3 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
}
movieClip 1433 {
frame 12 {
_parent.gotoAndStop(1);
}
frame 28 {
gotoAndPlay('spin');
}
frame 39 {
_parent.gotoAndStop(1);
}
frame 83 {
stop();
_parent._visible = false;
}
frame 114 {
stop();
}
}
movieClip 1435 {
}
movieClip 1441 {
frame 1 {
stop();
}
frame 43 {
stop();
}
}
movieClip 1442 {
frame 1 {
stop();
}
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
}
instance sf1 of movieClip 1442 {
onClipEvent (load) {
this.gotoAndStop('chat');
_visible = false;
var moveflag = false;
var grav = 0;
var Hide = false;
}
onClipEvent (enterFrame) {
--grav;
_y = _y - grav;
onGround = false;
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.hero.hitTest(_root.event1)) {
_visible = true;
if (this.chat._currentframe == 1) {
this.chat.play();
}
}
if (moveflag == true) {
this.gotoAndStop(1);
this._xscale = -100;
this._x -= 4;
if (this.walk._currentframe == 1) {
this.walk.play();
}
}
if (Hide == true) {
_visible = false;
}
}
}
movieClip 1444 {
}
instance event1 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var counter = 50;
var zoomCount = 10;
var fixzoom = false;
var i = 0;
var e = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
while (i == 0) {
_root.hero.activated = false;
activated = true;
++i;
}
}
if (activated == true) {
if (counter > 0) {
--counter;
}
}
if (counter > 0 && counter < 10) {
if (zoomCount > 1) {
zoomCount -= 1.5;
}
_root.vcam.onHero = false;
_root.vcam._xscale -= zoomCount;
_root.vcam._yscale -= zoomCount;
_root.vcam._x -= zoomCount;
}
if (counter == 0) {
if (_root.conversation._currentframe == 1) {
_root.conversation.gotoAndPlay(2);
_root.conversation.convoChoose = 1;
counter = -1;
}
}
if (_root.conversation._currentframe == 39) {
while (e == 0) {
activated = false;
_root.vcam.onHero = true;
_root.hero.activated = true;
fixzoom = true;
zoomCount = 4;
_root.sf1.moveflag = true;
++e;
}
}
if (fixzoom == true) {
if (zoomCount > 1) {
zoomCount -= 0.1;
}
if (_root.vcam._xscale < 100) {
_root.vcam._xscale += zoomCount;
_root.vcam._yscale += zoomCount;
}
}
}
}
instance event2 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var pancount = 20;
var activated = false;
var i = 1;
var e = 0;
}
onClipEvent (enterFrame) {
if (e == 0) {
if (_root.hero.hitTest(this)) {
_root.hero.activated = false;
activated = true;
++e;
}
}
if (this.activated == true && _root.event3.activated == true) {
_root.sf1.gotoAndStop('hurt');
if (_root.sf1.hurt._currentframe == 1) {
_root.sf1.hurt.gotoAndPlay('death');
}
if (i == 1) {
_root.vcam.onHero = false;
++i;
}
if (pancount > 0) {
pancount -= 0.5;
}
_root.vcam._x -= pancount;
}
}
}
instance event3 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
}
onClipEvent (enterFrame) {
if (_root.sf1.hitTest(this)) {
_root.sf1.moveflag = false;
activated = true;
}
}
}
movieClip 1456 {
frame 1 {
stop();
}
}
movieClip 1529 {
frame 1 {
onEnterFrame = function () {
if (this._currentframe < 15 && _parent.life < 1) {
this.gotoAndPlay('death');
}
};
}
frame 15 {
_parent.gotoAndStop(1);
}
frame 42 {
stop();
_root.gaurdOrig.deathCount += 1;
++_root.survivalScore;
_parent.removeMovieClip();
}
frame 51 {
gotoAndPlay('spin');
}
frame 65 {
stop();
}
frame 93 {
stop();
_root.gaurdOrig.deathCount += 1;
++_root.survivalScore;
_parent.removeMovieClip();
}
frame 127 {
stop();
}
}
movieClip 1541 {
frame 1 {
stop();
}
}
movieClip 1580 {
frame 1 {
onEnterFrame = function () {
if (_parent.difficulty == 0) {
if (this._currentframe == 20) {
_parent.gotoAndStop(1);
}
}
};
}
instance hit of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 49 {
_parent.gotoAndStop(1);
}
}
movieClip 1582 {
}
movieClip 1583 {
frame 9 {
_parent.gotoAndStop(1);
}
}
movieClip 1584 {
frame 1 {
thrown = false;
stop();
}
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
}
instance gaurdOrig of movieClip 1584 {
onClipEvent (load) {
_visible = false;
this.gotoAndStop('spawn');
this.spawn.stop();
if (_root.difficulty == 1) {
var spawnNum = 2;
var spawnAm = 2;
var life = 3;
} else {
if (_root.difficulty == 2) {
var spawnNum = 4;
var spawnAm = 4;
var life = 6;
} else {
if (_root.difficulty == 3) {
var spawnNum = 6;
var spawnAm = 6;
var life = 9;
}
}
}
var deathCount = 0;
var gaurd = this;
var e = -550;
var grav = 0;
var attacking = false;
var xdist = 0;
var eyesight = 400;
var xSpeed = 0;
var spinTime = 0;
var thrown = false;
}
onClipEvent (enterFrame) {
if (_name == 'gaurdOrig') {
_visible = false;
if (_root.event2.pancount == 0) {
if (spawnNum > 0) {
gaurd = this.duplicateMovieClip('gaurd' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gaurd._y = 265;
gaurd._x = e;
gaurd.spawn.play();
e -= 50;
--spawnNum;
}
if (spawnNum == 0) {
if (_root.conversation._currentframe == 1) {
_root.conversation.gotoAndPlay(2);
_root.conversation.convoChoose = 2;
}
}
}
} else {
if (_root.event2.pancount == 0) {
if (this.spawn._currentframe == 1) {
_visible = true;
this.spawn.play();
}
}
if (xSpeed > 0) {
this._x += xSpeed;
xSpeed -= 0.5;
}
if (xSpeed < 0) {
this._x += xSpeed;
xSpeed += 0.5;
}
if (spinTime > 0) {
--spinTime;
}
--grav;
_y = _y - grav;
onGround = false;
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -4;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 4;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.hero.activated == true) {
this.attacking = true;
} else {
this.attacking = false;
}
if (attacking == true) {
if (this._currentframe == 1) {
xdist = Math.round(_root.hero._x - this._x);
if (xdist < eyesight && xdist > 0) {
this._x += 4;
this._xscale = 100;
this.idle.play();
}
if (xdist > -eyesight && xdist < 0) {
this._x -= 4;
this._xscale = -100;
this.idle.play();
}
}
if (this._currentframe == 1) {
if (this.bound.hitTest(_root.hero.bound)) {
this.gotoAndStop('attack');
}
}
if (_root.hero.hitTest(this.attack2.hit)) {
if (this._xscale == 100) {
_root.hero.xSpeed += 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
if (this._xscale == -100) {
_root.hero.xSpeed -= 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
this.attack2.hiter.play();
}
}
if (_root.hero.life <= 0) {
attacking = false;
}
if (this.bound.hitTest(_root.hero.attack.hit1)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = 5;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = 5;
}
}
if (onGround == false) {
grav = grav * -1 / 2;
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
}
}
this.gotoAndStop('hurt');
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.bound.hitTest(_root.hero.attack.hit2)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 16;
} else {
this.xSpeed = 16;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 16;
} else {
this.xSpeed = -16;
}
}
if (onGround == false) {
grav = 10;
} else {
grav += 10;
}
this._y -= 15;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
spinTime = 10;
life -= 2;
_root.hero.attack.hit.gotoAndStop(3);
}
if (onGround == true && spinTime == 0) {
if (this.hurt._currentframe > 42 && this.hurt._currentframe < 52) {
if (life > 0) {
this.gotoAndStop(1);
} else {
if (life < 1) {
this.hurt.gotoAndPlay('death2');
}
}
}
}
if (this.bound.hitTest(_root.hero.attack.hit3)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 3;
} else {
this.xSpeed = 3;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 3;
} else {
this.xSpeed = -3;
}
}
this._y -= 15;
this.grav += 17;
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
} else {
this.hurt.gotoAndPlay('death2');
}
}
if (onGround == true && this.hurt._currentframe == 65) {
this.gotoAndStop(1);
}
if (this.bound.hitTest(_root.hero.jump.hit1)) {
this.grav = -20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(2);
}
if (this.bound.hitTest(_root.hero.jump.hit2)) {
this.grav = 20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(3);
}
if (this.bound.hitTest(_root.hero.jump.hit3)) {
this.grav = 8;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 20;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 20;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(4);
}
if (this.hitTest(_root.hero.attack.hit4)) {
thrown = true;
_root.hero.attack.gotoAndPlay('throw');
if (_root.hero._xscale == 100) {
this._x = _root.hero._x + 30;
this._xscale = 100;
} else {
this._x = _root.hero._x - 30;
this._xscale = -100;
}
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('grabed');
}
if (_root.hero.attack._currentframe == 334) {
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._xscale == 100) {
this.xSpeed = 50;
this.grav = 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = -50;
this.grav = 15;
}
this.hurt.gotoAndPlay('spin');
life -= 7;
}
}
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._currentframe != 2) {
this.gotoAndStop(1);
this._y -= 100;
}
}
if (thrown == true) {
if (_root.hero.attack._currentframe > 335 && _root.hero.attack._currentframe < 364) {
_root.vcam._x = this._x;
_root.vcam._y = this._y;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
}
if (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (_root.instantKill == true) {
this.removeMovieClip();
}
}
}
movieClip 1588 {
}
movieClip 1589 {
frame 39 {
gotoAndPlay(20);
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
// unknown tag 88 length 171
movieClip 1592 {
}
movieClip 1594 {
}
movieClip 1596 {
}
movieClip 1598 {
}
movieClip 1653 {
frame 1 {
stop();
onEnterFrame = function () {
if (this._currentframe >= 2 && this._currentframe <= 12) {
if (_parent._xscale == 100) {
if (Key.isDown(_parent.Right) && _parent.activated == true) {
} else {
this.gotoAndPlay('skid1');
}
}
if (_parent._xscale == -100) {
if (Key.isDown(_parent.Left) && _parent.activated == true) {
} else {
this.gotoAndPlay('skid1');
}
}
}
if (this._currentframe >= 27 && this._currentframe <= 50) {
if (_parent._xscale == 100) {
if (Key.isDown(_parent.Right) && _parent.activated == true) {
} else {
this.gotoAndPlay('skid2');
}
}
if (_parent._xscale == -100) {
if (Key.isDown(_parent.Left) && _parent.activated == true) {
} else {
this.gotoAndPlay('skid2');
}
}
}
};
}
frame 12 {
if (_parent._xscale == 100) {
if (Key.isDown(_parent.Right)) {
gotoAndPlay(27);
}
}
if (_parent._xscale == -100) {
if (Key.isDown(_parent.Left)) {
gotoAndPlay(27);
}
}
}
frame 26 {
gotoAndStop(1);
}
frame 50 {
if (_parent._xscale == 100) {
if (Key.isDown(_parent.Right)) {
gotoAndPlay('run');
}
}
if (_parent._xscale == -100) {
if (Key.isDown(_parent.Left)) {
gotoAndPlay('run');
}
}
}
frame 73 {
gotoAndStop(1);
}
}
movieClip 1664 {
frame 18 {
_parent.gotoAndStop(1);
}
}
movieClip 1676 {
frame 22 {
_parent.gotoAndStop(1);
}
}
movieClip 1686 {
frame 12 {
_parent.gotoAndStop(1);
}
}
movieClip 1687 {
frame 1 {
stop();
}
}
movieClip 1769 {
frame 14 {
_parent.gotoAndStop(1);
}
}
movieClip 1781 {
frame 16 {
_parent.gotoAndStop(1);
}
}
movieClip 1791 {
frame 13 {
_parent.gotoAndStop(1);
}
}
movieClip 1792 {
frame 1 {
stop();
}
}
movieClip 1943 {
}
movieClip 1959 {
frame 30 {
stop();
}
}
movieClip 1971 {
frame 35 {
stop();
}
}
movieClip 2010 {
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
}
movieClip 2063 {
frame 1 {
onEnterFrame = function () {
if (_parent.activated == true) {
if (Key.isDown(_parent.Punch)) {
if (this._currentframe >= 7 && this._currentframe <= 13) {
this.gotoAndPlay('punch2');
}
if (this._currentframe >= 26 && this._currentframe <= 32) {
this.gotoAndPlay('punch3');
}
if (this._currentframe >= 79 && this._currentframe <= 85) {
this.gotoAndPlay('punch2');
}
if (this._currentframe >= 111 && this._currentframe <= 117) {
this.gotoAndPlay('punch3');
}
if (this._currentframe >= 179 && this._currentframe <= 185) {
this.gotoAndPlay('punch2');
}
if (this._currentframe >= 203 && this._currentframe <= 209) {
this.gotoAndPlay('punch3');
}
if (this._currentframe > 0 && this._currentframe < 4) {
if (_parent._xscale == 100) {
if (Key.isDown(37)) {
_parent._xscale = -100;
}
}
if (_parent._xscale == -100) {
if (Key.isDown(39)) {
_parent._xscale = 100;
}
}
}
}
if (Key.isDown(_parent.Kick)) {
if (this._currentframe >= 7 && this._currentframe <= 13) {
this.gotoAndPlay('kick2');
}
if (this._currentframe >= 26 && this._currentframe <= 32) {
this.gotoAndPlay('kick3');
}
if (this._currentframe >= 79 && this._currentframe <= 85) {
this.gotoAndPlay('kick2');
}
if (this._currentframe >= 111 && this._currentframe <= 117) {
this.gotoAndPlay('kick3');
}
if (this._currentframe >= 179 && this._currentframe <= 185) {
this.gotoAndPlay('kick2');
}
if (this._currentframe >= 203 && this._currentframe <= 209) {
this.gotoAndPlay('kick3');
}
if (this._currentframe > 66 && this._currentframe < 71) {
if (_parent._xscale == 100) {
if (Key.isDown(37)) {
_parent._xscale = -100;
}
}
if (_parent._xscale == -100) {
if (Key.isDown(39)) {
_parent._xscale = 100;
}
}
}
}
if (Key.isDown(_parent.Sword)) {
if (this._currentframe >= 9 && this._currentframe <= 13) {
this.gotoAndPlay('sword2');
}
if (this._currentframe >= 26 && this._currentframe <= 32) {
this.gotoAndPlay('sword3');
}
if (this._currentframe >= 79 && this._currentframe <= 85) {
this.gotoAndPlay('sword2');
}
if (this._currentframe >= 111 && this._currentframe <= 117) {
this.gotoAndPlay('sword3');
}
if (this._currentframe >= 179 && this._currentframe <= 185) {
this.gotoAndPlay('sword2');
}
if (this._currentframe >= 203 && this._currentframe <= 209) {
this.gotoAndPlay('sword3');
}
if (this._currentframe > 165 && this._currentframe < 171) {
if (_parent._xscale == 100) {
if (Key.isDown(37)) {
_parent._xscale = -100;
}
}
if (_parent._xscale == -100) {
if (Key.isDown(39)) {
_parent._xscale = 100;
}
}
}
}
}
if (this._currentframe == 421) {
if (_root.hero.special > 0) {
_root.hero.special -= 0.25;
_root.hero.life += 0.05;
}
if (Key.isDown(_parent.sPower3) && _root.hero.special > 0 && _root.hero.life < 10) {
stop();
} else {
play();
}
}
};
}
frame 2 {
if (_parent._xscale == 100) {
_parent.xSpeed += 4;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 4;
}
}
}
instance hit1 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 14 {
_parent.gotoAndStop(1);
}
frame 15 {
if (_parent._xscale == 100) {
_parent.xSpeed += 2;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 2;
}
}
}
instance hit1 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 36 {
_parent.gotoAndStop(1);
}
frame 38 {
if (_parent._xscale == 100) {
_parent.xSpeed += 4;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 4;
}
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 66 {
_parent.gotoAndStop(1);
}
frame 69 {
if (_parent._xscale == 100) {
_parent.xSpeed += 2;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 2;
}
}
}
instance hit1 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 97 {
_parent.gotoAndStop(1);
}
frame 98 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
}
instance hit3 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 124 {
_parent.gotoAndStop(1);
}
frame 130 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 165 {
_parent.gotoAndStop(1);
}
frame 166 {
if (_parent._xscale == 100) {
_parent.xSpeed += 3;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 3;
}
}
}
instance hit1 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 189 {
_parent.gotoAndStop(1);
}
frame 195 {
if (_parent._xscale == 100) {
_parent.xSpeed += 2;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 2;
}
}
}
instance hit1 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 200 {
if (hit._currentframe == 2) {
hit.gotoAndStop(4);
}
}
frame 218 {
_parent.gotoAndStop(1);
}
frame 232 {
if (_parent._xscale == 100) {
_parent.xSpeed += 4;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 4;
}
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 264 {
_parent.gotoAndStop(1);
}
instance hit4 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 287 {
_parent.gotoAndStop(1);
}
frame 334 {
_root.vcam.onHero = false;
}
frame 365 {
_root.vcam.onHero = true;
}
frame 366 {
_parent.gotoAndStop(1);
}
frame 408 {
_parent.gotoAndStop(1);
}
frame 434 {
_parent.gotoAndStop(1);
}
frame 485 {
if (sword2ZoomScale == true) {
_root.vcam.setZoom = false;
_root.vcam._xscale += 50;
_root.vcam._yscale += 50;
}
}
frame 486 {
if (sword2ZoomScale == true) {
_root.vcam.setZoom = true;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 537 {
_parent.gotoAndStop(1);
}
frame 539 {
_parent.special -= 5;
}
instance hit3 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit3 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit3 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit3 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit3 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 606 {
_parent.gotoAndStop(1);
}
frame 629 {
_root.hero.special -= 6;
fireAttack = _root.attachMovie('specfire', 'specifire' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
fireAttack._y = _root.hero._y - 15;
if (_root.hero._xscale == 100) {
fireAttack._xscale = 100;
fireAttack._x = _root.hero._x + fireAttack._width / 2 + 20;
}
if (_root.hero._xscale == -100) {
fireAttack._xscale = -100;
fireAttack._x = _root.hero._x - fireAttack._width / 2 - 20;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 674 {
_parent.gotoAndStop(1);
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 745 {
_parent.gotoAndStop(1);
}
}
movieClip 2073 {
}
movieClip 2100 {
frame 21 {
_parent.gotoAndStop(1);
}
}
movieClip 2103 {
}
movieClip 2104 {
frame 1 {
stop();
}
}
movieClip 2151 {
frame 1 {
onEnterFrame = function () {
if (Key.isDown(_parent.Jump)) {
if (this._currentframe == 20) {
this.stop();
}
} else {
if (this._currentframe >= 5 && this._currentframe <= 20) {
this.gotoAndPlay('jump');
}
}
if (this._currentframe == 20) {
if (_parent.jumpPower < 25) {
_parent.jumpPower += 10;
}
}
if (this._currentframe >= 94) {
_parent.grav += 0.5;
}
if (this._currentframe > 30 && this._currentframe < 67) {
_parent.grav += 0.25;
}
};
}
frame 21 {
_parent.grav = _parent.jumpPower;
_parent.attacking = false;
}
frame 68 {
stop();
}
frame 69 {
_parent.attacking = true;
}
frame 87 {
_parent.attacking = false;
}
frame 93 {
_parent.jumpPower = 10;
_parent.gotoAndStop(1);
}
instance hit1 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 120 {
this.gotoAndPlay(40);
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 158 {
this.gotoAndPlay(40);
}
instance hit3 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 201 {
this.gotoAndPlay(40);
}
}
movieClip 2207 {
}
movieClip 2209 {
frame 25 {
_root.vcam.onHero = true;
_parent.gotoAndStop(1);
}
frame 26 {
stopAllSounds();
}
frame 152 {
stop();
_root.lvlscreen.gotoAndPlay('death');
}
frame 153 {
stop();
}
frame 154 {
if (_parent._xscale == 100) {
_parent.xSpeed = -15;
}
if (_parent._xscale == -100) {
_parent.xSpeed = 15;
}
}
frame 183 {
_parent.activated = true;
_parent.gotoAndStop(1);
}
}
movieClip 2265 {
frame 53 {
stop();
}
frame 108 {
_parent.gotoAndStop(1);
}
}
movieClip 2266 {
frame 1 {
stop();
attacking = false;
}
instance bound of movieClip 1598 {
onClipEvent (load) {
_visible = false;
}
}
frame 2 {
stop();
attacking = true;
}
frame 3 {
stop();
attacking = true;
}
frame 4 {
stop();
attacking = false;
}
frame 5 {
stop();
}
}
instance hero of movieClip 2266 {
onClipEvent (load) {
var activated = false;
var life = 10;
var special = 10;
var xSpeed = 0;
var maxSpeed = 13;
var moving = false;
var grav = 0;
var jumpPower = 10;
var jumpSlow = 0;
var sPower1 = 65;
var sPower2 = 83;
var sPower3 = 68;
var Punch = 90;
var Kick = 88;
var Sword = 67;
var Jump = 38;
var Left = 37;
var Right = 39;
_xscale = -100;
var onGround = true;
var attacking = false;
}
onClipEvent (enterFrame) {
--grav;
_y = _y - grav;
onGround = false;
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
_x = _x - 1;
xSpeed = -3;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 3;
_x = _x + 1;
}
if (activated == true) {
if (attacking == false) {
if (Key.isDown(Left)) {
if (onGround == true) {
if (xSpeed > -10) {
--xSpeed;
}
} else {
if (xSpeed > -10) {
xSpeed -= 0.25;
}
}
}
}
}
if (xSpeed < 0) {
this._x += xSpeed;
}
if (xSpeed < 0) {
if (onGround == true) {
xSpeed += 0.5;
}
}
if (activated == true) {
if (attacking == false) {
if (Key.isDown(Right)) {
if (onGround == true) {
if (xSpeed < 10) {
++xSpeed;
}
} else {
if (xSpeed < 10) {
xSpeed += 0.25;
}
}
}
}
}
if (xSpeed > 0) {
this._x += xSpeed;
}
if (xSpeed > 0) {
if (onGround == true) {
xSpeed -= 0.5;
}
}
if (activated == true) {
if (attacking == false) {
if (onGround == true) {
if (Key.isDown(Left)) {
if (this.walk._currentframe == 1) {
this.walk.play();
this._xscale = -100;
}
}
if (Key.isDown(Right)) {
if (this.walk._currentframe == 1) {
this.walk.play();
this._xscale = 100;
}
}
}
}
}
if (activated == true) {
if (onGround == true) {
if (this._currentframe == 1) {
if (Key.isDown(Punch)) {
this.gotoAndStop('attack');
this.attack.gotoAndPlay('punch1');
}
}
if (this._currentframe == 1) {
if (Key.isDown(Kick)) {
this.gotoAndStop('attack');
this.attack.gotoAndPlay('kick1');
}
}
if (this._currentframe == 1) {
if (Key.isDown(Sword)) {
this.gotoAndStop('attack');
this.attack.gotoAndPlay('sword1');
}
}
}
if (onGround == false) {
if (this._currentframe == 3) {
if (this.jump._currentframe > 26 && this.jump._currentframe < 69) {
if (Key.isDown(Punch)) {
this.jump.gotoAndPlay('punch');
}
if (Key.isDown(Kick)) {
this.jump.gotoAndPlay('kick');
}
if (Key.isDown(Sword)) {
this.jump.gotoAndPlay('sword');
}
}
}
}
}
if (activated == true) {
if (special < 10) {
special += 0.01;
}
if (Key.isDown(sPower1)) {
if (special > 3.5) {
if (this._currentframe == 1 or this._currentframe == 3) {
this.gotoAndStop('attack');
this.attack.gotoAndPlay('special1');
special -= 3.5;
}
}
}
if (this.attack._currentframe > 287 && this.attack._currentframe < 366) {
if (onGround == false) {
grav = 1;
xSpeed = 0;
}
}
if (Key.isDown(sPower2)) {
if (special > 2) {
if (this._currentframe == 1 or this._currentframe == 3) {
this.gotoAndStop('attack');
this.attack.gotoAndPlay('special2');
special -= 2;
}
}
}
if (Key.isDown(sPower3)) {
if (_root.sword == 1) {
this.gotoAndStop('attack');
if (this.attack._currentframe == 1) {
this.attack.gotoAndPlay('special3');
}
}
if (_root.sword == 2) {
if (special >= 9) {
this.gotoAndStop('attack');
if (this.attack._currentframe < 100) {
this.attack.gotoAndPlay('special4');
}
special = 0;
}
}
if (_root.sword == 3) {
if (special >= 5) {
this.gotoAndStop('attack');
if (this.attack._currentframe < 100) {
this.attack.gotoAndPlay('special5');
}
}
}
if (_root.sword == 4) {
if (special >= 5) {
this.gotoAndStop('attack');
if (this.attack._currentframe < 100) {
this.attack.gotoAndPlay('special6');
}
}
}
if (_root.sword == 5) {
if (special >= 2) {
this.gotoAndStop('attack');
if (this.attack._currentframe < 100) {
special -= 2;
this.attack.gotoAndPlay('special7');
}
}
}
}
}
if (activated == true) {
if (Key.isDown(Jump)) {
this.gotoAndStop('jump');
}
}
if (this.jump._currentframe > 23 && this.jump._currentframe < 69 or this.jump._currentframe > 93) {
if (onGround == true) {
this.jump.gotoAndPlay('getup');
}
}
if (jumpPower > 25) {
jumpPower = 25;
}
if (this._currentframe != 3) {
jumpPower = 15;
}
if (life <= 0) {
activated = false;
if (onGround == true) {
this.gotoAndStop('hurt');
if (this.hurt._currentframe == 1) {
this.hurt.gotoAndPlay('death');
}
}
xSpeed = 0;
}
if (this.hurt._currentframe == 153) {
if (onGround == true) {
this.hurt.play();
}
}
}
}
movieClip 2269 {
frame 1 {
stop();
}
frame 34 {
this.removeMovieClip();
}
}
instance wball of movieClip 2269 {
onClipEvent (load) {
var i = 0;
var waterballmc;
var countTillDeath = 300;
var par;
if (_root.hero._xscale == 100) {
var xSpeed = 14;
} else {
var xSpeed = -14;
}
}
onClipEvent (enterFrame) {
if (this._name == 'wball') {
_visible = false;
if (_root.hero.attack._currentframe == 394) {
waterballmc = this.duplicateMovieClip('waterball' + i, _root.getNextHighestDepth());
_root['waterball' + i]._x = _root.hero._x;
_root['waterball' + i]._y = _root.hero._y - 75;
++i;
}
} else {
if (this._currentframe == 1) {
this._x += xSpeed;
par = _root.wp.duplicateMovieClip('wpar' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
par._x = _root.wball.waterballmc._x + random(20) - random(20);
par._y = _root.wball.waterballmc._y + random(20) - random(20);
}
if (countTillDeath > 0) {
--countTillDeath;
} else {
this.removeMovieClip();
}
}
}
}
movieClip 2271 {
}
instance wp of movieClip 2271 {
onClipEvent (enterFrame) {
if (_name == 'wp') {
this._visible = false;
} else {
_alpha = _alpha - 2;
_xscale = _xscale - 1;
_yscale = _yscale - 1;
if (_alpha <= 2) {
removeMovieClip(this);
}
}
}
}
movieClip 2273 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v3 = sX / this._width;
var v4 = sY / this._height;
_parent._x = cX - this._x * v3;
_parent._y = cY - this._y * v4;
_parent._xscale = 100 * v3;
_parent._yscale = 100 * v4;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
this.onUnload = resetStage;
}
}
instance vcam of movieClip 2273 {
onClipEvent (load) {
var onHero = true;
var setZoom = true;
}
onClipEvent (enterFrame) {
if (onHero == true) {
_y = _y + ((_root.hero._y - _y) / 4 - 18);
_x = _x + (_root.hero._x - _x) / 4;
_root.lifebar._x = this._x;
_root.lifebar._y = this._y;
_root.lvlscreen._x = this._x;
_root.lvlscreen._y = this._y;
_root.conversation._x = this._x;
_root.conversation._y = this._y;
if (setZoom == true) {
if (_xscale > 100) {
_xscale = _xscale - 1;
_yscale = _yscale - 1;
} else {
if (_xscale < 0) {
_xscale = _xscale + 1;
_yscale = _yscale + 1;
} else {
setZoom = false;
}
}
}
}
}
}
movieClip 2275 {
}
movieClip 2285 {
frame 1 {
_parent._parent.advatar.gotoAndStop('sf1');
}
frame 27 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
frame 28 {
stop();
}
}
movieClip 2301 {
frame 1 {
_parent._parent.advatar.gotoAndStop('gaurd');
}
frame 10 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 11 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 29 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 30 {
_parent._parent.advatar.gotoAndStop('gaurd');
_root.vcam.onHero = false;
_root.event2.pancount = 20;
}
frame 56 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gaurdOrig.spawnNum -= 1;
_root.vcam.onHero = true;
_root.hero.activated = true;
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
frame 57 {
stop();
}
}
movieClip 2322 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 18 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 32 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 33 {
_parent._parent.advatar.gotoAndStop('quema');
}
frame 46 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 47 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 53 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.quema.bossTitle = true;
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
frame 54 {
stop();
}
}
movieClip 2340 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 13 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 14 {
_parent._parent.advatar.gotoAndStop('quema');
}
frame 25 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 36 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 46 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 47 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 58 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 59 {
_parent._parent.advatar.gotoAndStop('quema');
}
frame 65 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 66 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 74 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 80 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent._parent._parent.gotoAndPlay('close');
_root.hero.taunt.play();
_parent.nextFrame();
}
}
}
frame 81 {
stop();
}
}
movieClip 2343 {
frame 1 {
_parent._parent.advatar.gotoAndStop('eivana');
}
frame 12 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 22 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent._parent._parent.gotoAndPlay('close');
_root.hero.activated = true;
_parent.nextFrame();
}
}
}
frame 23 {
stop();
}
}
movieClip 2356 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hawken');
}
frame 15 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 26 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.lvlscreen.gotoAndPlay('endlvl2');
_parent.nextFrame();
}
}
}
frame 27 {
stop();
}
}
movieClip 2366 {
frame 1 {
_parent._parent.advatar.gotoAndStop('vindstot');
}
frame 12 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 13 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 29 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 30 {
_parent._parent.advatar.gotoAndStop('vindstot');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boss._y - 80;
}
frame 42 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 43 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 55 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boss._y - 80;
_root.boss.idle1.play();
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
frame 56 {
stop();
}
}
movieClip 2381 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 10 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 11 {
_parent._parent.advatar.gotoAndStop('vindstot');
}
frame 28 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 29 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 43 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 44 {
_parent._parent.advatar.gotoAndStop('vindstot');
}
frame 53 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.hero.taunt.play();
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
}
movieClip 2404 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hawken');
}
frame 23 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 40 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.lvlscreen.gotoAndPlay('endlvl2');
_parent.nextFrame();
}
}
}
}
movieClip 2417 {
frame 1 {
_parent._parent.advatar.gotoAndStop('smoking');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 22 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 23 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 39 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 40 {
_parent._parent.advatar.gotoAndStop('smoking');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 52 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 66 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.boss.taunt.play();
_parent.nextFrame();
}
}
}
}
movieClip 2422 {
frame 1 {
_parent._parent.advatar.gotoAndStop('smoking');
}
frame 15 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 28 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 40 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 41 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 49 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.hero.taunt.play();
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
}
movieClip 2440 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 15 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 16 {
_parent._parent.advatar.gotoAndStop('hawken');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boss._y - 80;
}
frame 33 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 34 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 47 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boss._y - 80;
_root.boss.taunt.play();
_parent.nextFrame();
}
}
}
}
movieClip 2460 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 14 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 15 {
_parent._parent.advatar.gotoAndStop('hawken');
}
frame 27 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 28 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 40 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 41 {
_parent._parent.advatar.gotoAndStop('hawken');
}
frame 63 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.hero.taunt.play();
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
}
movieClip 2483 {
frame 1 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 12 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 13 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 24 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 25 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 40 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 41 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 50 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 51 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 62 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 63 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 72 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 73 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 89 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boss._y - 80;
_root.boss.taunt.play();
_parent.nextFrame();
}
}
}
}
movieClip 2514 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 24 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 25 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 36 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 37 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 51 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 52 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 61 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 62 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 71 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 72 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 80 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 81 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 100 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 101 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 123 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 124 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 133 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 134 {
_parent._parent.advatar.gotoAndStop('wing');
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boxx._y - 80;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
frame 143 {
stop();
}
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.boss.death.play();
_parent.nextFrame();
}
}
}
}
movieClip 2515 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 2519 {
frame 11 {
stop();
}
}
movieClip 2521 {
frame 12 {
stop();
}
}
movieClip 2523 {
frame 13 {
stop();
}
}
movieClip 2525 {
frame 15 {
stop();
}
}
movieClip 2527 {
frame 18 {
stop();
}
}
movieClip 2529 {
frame 15 {
stop();
}
}
movieClip 2531 {
frame 15 {
stop();
}
}
movieClip 2533 {
frame 15 {
stop();
}
}
movieClip 2535 {
frame 13 {
stop();
}
}
movieClip 2536 {
frame 1 {
stop();
}
}
movieClip 2537 {
frame 1 {
stop();
_visible = false;
}
instance of movieClip 2275 {
onClipEvent (load) {
_visible = false;
}
}
frame 2 {
_visible = true;
}
frame 25 {
stop();
this.chat.gotoAndStop(convoChoose + 1);
}
}
instance conversation of movieClip 2537 {
onClipEvent (load) {
convoChoose = 0;
}
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
this._xscale = _root.vcam._xscale;
this._yscale = _root.vcam._yscale;
if (_root.vcam._xscale < 0) {
this._rotation = 180;
} else {
this._rotation = 0;
}
}
}
movieClip 2539 {
frame 1 {
lvlname = _root.lvl;
}
}
movieClip 2544 {
frame 30 {
stop();
}
}
movieClip 2545 {
frame 1 {
var savefile = SharedObject.getLocal('ArmedWithWings2');
}
frame 38 {
_root._visible = true;
}
frame 213 {
_root.hero.activated = true;
stop();
}
frame 248 {
_root._visible = false;
}
frame 250 {
_root.nextFrame();
}
frame 301 {
_root._visible = true;
}
frame 335 {
gotoAndStop(213);
}
instance of movieClip 209 {
onClipEvent (load) {
replayLvl = _root._currentframe - 1;
}
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
if (this._currentframe < 45) {
this.gotoAndPlay('press');
}
}
onClipEvent (enterFrame) {
if (this._currentframe == 57) {
_root._visible = false;
_root.instantKill = true;
_root.hero.life = 10;
_root.hero.special = 10;
_root.hero.gotoAndStop(1);
_root.hero._visible = true;
_root.music.gotoAndPlay(2);
if (_root.fightingBoss2 == true) {
_root.gotoAndPlay('boss2');
} else {
_root.gotoAndPlay(replayLvl);
}
_parent.gotoAndPlay(1);
}
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
stopAllSounds();
_root.gotoAndPlay('menu');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
if (this._currentframe < 45) {
this.gotoAndPlay('over');
}
}
onClipEvent (press) {
if (this._currentframe < 45) {
this.gotoAndPlay('press');
}
}
onClipEvent (enterFrame) {
if (this._currentframe >= 47 && this._currentframe <= 56) {
var savefile = SharedObject.getLocal('ArmedWithWings2');
_root.savefile.data.sword = _root.sword;
_root.savefile.data.mission = _root.mission;
_root.savefile.data.fightingBoss2 = _root.fightingBoss2;
_root.savefile.data.swordsUnlocked = _root.swordsUnlocked;
_root.savefile.data.difficulty = _root.difficulty;
_root.savefile.data.gameClocked = _root.gameClocked;
_root.savefile.flush();
}
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
frame 369 {
stop();
}
frame 467 {
_root._visible = false;
}
frame 508 {
_root.nextFrame();
gotoAndPlay(1);
}
frame 607 {
_root._visible = false;
}
frame 648 {
if (_root.mission == 3) {
_root.gotoAndStop('lvl3start');
}
if (_root.mission == 4) {
_root.gotoAndPlay('lvl4start');
}
}
}
instance lvlscreen of movieClip 2545 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
this._xscale = _root.vcam._xscale;
this._yscale = _root.vcam._yscale;
if (_root.vcam._xscale < 0) {
this._rotation = 180;
} else {
this._rotation = 0;
}
}
}
instance lifebar of movieClip 742 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
this._xscale = _root.vcam._xscale;
this._yscale = _root.vcam._yscale;
if (_root.vcam._xscale < 0) {
this._rotation = 180;
} else {
this._rotation = 0;
}
}
}
frame 1119 {
instantKill = true;
nextFrame();
}
frame 1120 {
stop();
vcam.onHero = true;
wall._visible = false;
hero._x = 1574;
hero._y = 361;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
instance mountain2 of movieClip 796 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 2551 {
frame 1 {
stop();
}
}
instance ground of movieClip 2551 {
onClipEvent (load) {
if (_root.difficluty == 1) {
this.gotoAndStop(1);
} else {
if (_root.difficulty == 2) {
this.gotoAndStop(2);
} else {
if (_root.difficulty == 3) {
this.gotoAndStop(3);
}
}
}
}
}
movieClip 2553 {
}
movieClip 2555 {
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
_root.hero.life = 0;
_root.vcam.setZoom = true;
_root.hero.xSpeed = 0;
}
}
}
instance death2 of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
_root.hero.life = 0;
_root.vcam.setZoom = true;
_root.hero.xSpeed = 0;
}
}
}
instance gaurdOrig of movieClip 1584 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 1) {
var spawnNum = 2;
var spawnAm = 2;
var life = 3;
} else {
if (_root.difficulty == 2) {
var spawnNum = 4;
var spawnAm = 4;
var life = 6;
} else {
if (_root.difficulty == 3) {
var spawnNum = 6;
var spawnAm = 6;
var life = 9;
}
}
}
var deathCount = 0;
var gaurd = this;
var e = 295;
var grav = 0;
var attacking = false;
var xdist = 0;
var eyesight = 400;
var xSpeed = 0;
var spinTime = 0;
var thrown = false;
}
onClipEvent (enterFrame) {
if (_name == 'gaurdOrig') {
_visible = false;
if (spawnNum > 0) {
--spawnNum;
gaurd = this.duplicateMovieClip('gaurd' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gaurd._x = e;
gaurd._y = 410;
e -= 100;
}
} else {
_visible = true;
if (xSpeed > 0) {
this._x += xSpeed;
xSpeed -= 0.5;
}
if (xSpeed < 0) {
this._x += xSpeed;
xSpeed += 0.5;
}
if (spinTime > 0) {
--spinTime;
}
--grav;
_y = _y - grav;
onGround = false;
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -4;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 4;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.hero.activated == true) {
this.attacking = true;
} else {
this.attacking = false;
}
if (attacking == true) {
if (this._currentframe == 1) {
xdist = Math.round(_root.hero._x - this._x);
if (xdist < eyesight && xdist > 0) {
this._x += 4;
this._xscale = 100;
this.idle.play();
}
if (xdist > -eyesight && xdist < 0) {
this._x -= 4;
this._xscale = -100;
this.idle.play();
}
}
if (this._currentframe == 1) {
if (this.bound.hitTest(_root.hero.bound)) {
this.gotoAndStop('attack');
}
}
if (_root.hero.hitTest(this.attack2.hit)) {
if (this._xscale == 100) {
_root.hero.xSpeed += 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
if (this._xscale == -100) {
_root.hero.xSpeed -= 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
this.attack2.hiter.play();
}
}
if (_root.hero.life <= 0) {
attacking = false;
}
if (this.bound.hitTest(_root.hero.attack.hit1)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = 5;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = 5;
}
}
if (onGround == false) {
grav = grav * -1 / 2;
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
}
}
this.gotoAndStop('hurt');
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.bound.hitTest(_root.hero.attack.hit2)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 16;
} else {
this.xSpeed = 16;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 16;
} else {
this.xSpeed = -16;
}
}
if (onGround == false) {
grav = 10;
} else {
grav += 10;
}
this._y -= 15;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
spinTime = 10;
life -= 2;
_root.hero.attack.hit.gotoAndStop(3);
}
if (onGround == true && spinTime == 0) {
if (this.hurt._currentframe > 42 && this.hurt._currentframe < 52) {
if (life > 0) {
this.gotoAndStop(1);
} else {
if (life < 1) {
this.hurt.gotoAndPlay('death2');
}
}
}
}
if (this.bound.hitTest(_root.hero.attack.hit3)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 3;
} else {
this.xSpeed = 3;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 3;
} else {
this.xSpeed = -3;
}
}
this._y -= 15;
this.grav += 17;
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
} else {
this.hurt.gotoAndPlay('death2');
}
}
if (onGround == true && this.hurt._currentframe == 65) {
this.gotoAndStop(1);
}
if (this.bound.hitTest(_root.hero.jump.hit1)) {
this.grav = -20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(2);
}
if (this.bound.hitTest(_root.hero.jump.hit2)) {
this.grav = 20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(3);
}
if (this.bound.hitTest(_root.hero.jump.hit3)) {
this.grav = 8;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 20;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 20;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(4);
}
if (this.hitTest(_root.hero.attack.hit4)) {
thrown = true;
_root.hero.attack.gotoAndPlay('throw');
if (_root.hero._xscale == 100) {
this._x = _root.hero._x + 30;
this._xscale = 100;
} else {
this._x = _root.hero._x - 30;
this._xscale = -100;
}
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('grabed');
}
if (_root.hero.attack._currentframe == 334) {
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._xscale == 100) {
this.xSpeed = 50;
this.grav = 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = -50;
this.grav = 15;
}
this.hurt.gotoAndPlay('spin');
life -= 7;
}
}
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._currentframe != 2) {
this.gotoAndStop(1);
this._y -= 100;
}
}
if (thrown == true) {
if (_root.hero.attack._currentframe > 335 && _root.hero.attack._currentframe < 364) {
_root.vcam._x = this._x;
_root.vcam._y = this._y;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
}
if (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (_root.instantKill == true) {
this.removeMovieClip();
}
if (this.hitTest(_root.death) or this.hitTest(_root.death2)) {
life = 0;
this.gotoAndStop('hurt');
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
movieClip 2557 {
}
movieClip 2559 {
}
frame 1121 {
instantKill = true;
nextFrame();
}
frame 1122 {
stop();
vcam.onHero = true;
wall._visible = false;
hero._x = 1504;
hero._y = 512;
mountain2._x = -330;
mountain2._y = -49;
instantKill = false;
}
instance mountain2 of movieClip 796 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 2564 {
frame 1 {
stop();
}
}
instance ground of movieClip 2564 {
onClipEvent (load) {
if (_root.difficluty == 1) {
this.gotoAndStop(1);
} else {
if (_root.difficulty == 2) {
this.gotoAndStop(2);
} else {
if (_root.difficulty == 3) {
this.gotoAndStop(3);
}
}
}
}
}
movieClip 2566 {
}
instance event1 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = false;
activated = true;
}
} else {
if (zoomCam > 0) {
--zoomCam;
_root.vcam._xscale += zoomCam * 3;
_root.vcam._yscale += zoomCam * 3;
}
}
}
}
instance event2 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = true;
activated = true;
}
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
_root.hero.life = 0;
_root.vcam.setZoom = true;
}
}
}
instance gaurdOrig of movieClip 1584 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 1) {
var spawnNum = 1;
var spawnAm = 1;
var life = 3;
} else {
if (_root.difficulty == 2) {
var spawnNum = 2;
var spawnAm = 2;
var life = 6;
} else {
if (_root.difficulty == 3) {
var spawnNum = 3;
var spawnAm = 3;
var life = 9;
}
}
}
var deathCount = 0;
var gaurd = this;
var e = -825;
var grav = 0;
var attacking = false;
var xdist = 0;
var eyesight = 400;
var xSpeed = 0;
var spinTime = 0;
var thrown = false;
}
onClipEvent (enterFrame) {
if (_name == 'gaurdOrig') {
_visible = false;
if (spawnNum > 0) {
--spawnNum;
gaurd = this.duplicateMovieClip('gaurd' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gaurd._x = e;
gaurd._y = -239;
e -= 100;
}
} else {
_visible = true;
if (xSpeed > 0) {
this._x += xSpeed;
xSpeed -= 0.5;
}
if (xSpeed < 0) {
this._x += xSpeed;
xSpeed += 0.5;
}
if (spinTime > 0) {
--spinTime;
}
--grav;
_y = _y - grav;
onGround = false;
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -4;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 4;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.hero.activated == true) {
this.attacking = true;
} else {
this.attacking = false;
}
if (attacking == true) {
if (this._currentframe == 1) {
xdist = Math.round(_root.hero._x - this._x);
if (xdist < eyesight && xdist > 0) {
this._x += 4;
this._xscale = 100;
this.idle.play();
}
if (xdist > -eyesight && xdist < 0) {
this._x -= 4;
this._xscale = -100;
this.idle.play();
}
}
if (this._currentframe == 1) {
if (this.bound.hitTest(_root.hero.bound)) {
this.gotoAndStop('attack');
}
}
if (_root.hero.hitTest(this.attack2.hit)) {
if (this._xscale == 100) {
_root.hero.xSpeed += 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
if (this._xscale == -100) {
_root.hero.xSpeed -= 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
this.attack2.hiter.play();
}
}
if (_root.hero.life <= 0) {
attacking = false;
}
if (this.bound.hitTest(_root.hero.attack.hit1)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = 5;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = 5;
}
}
if (onGround == false) {
grav = grav * -1 / 2;
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
}
}
this.gotoAndStop('hurt');
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.bound.hitTest(_root.hero.attack.hit2)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 16;
} else {
this.xSpeed = 16;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 16;
} else {
this.xSpeed = -16;
}
}
if (onGround == false) {
grav = 10;
} else {
grav += 10;
}
this._y -= 15;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
spinTime = 10;
life -= 2;
_root.hero.attack.hit.gotoAndStop(3);
}
if (onGround == true && spinTime == 0) {
if (this.hurt._currentframe > 42 && this.hurt._currentframe < 52) {
if (life > 0) {
this.gotoAndStop(1);
} else {
if (life < 1) {
this.hurt.gotoAndPlay('death2');
}
}
}
}
if (this.bound.hitTest(_root.hero.attack.hit3)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 3;
} else {
this.xSpeed = 3;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 3;
} else {
this.xSpeed = -3;
}
}
this._y -= 15;
this.grav += 17;
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
} else {
this.hurt.gotoAndPlay('death2');
}
}
if (onGround == true && this.hurt._currentframe == 65) {
this.gotoAndStop(1);
}
if (this.bound.hitTest(_root.hero.jump.hit1)) {
this.grav = -20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(2);
}
if (this.bound.hitTest(_root.hero.jump.hit2)) {
this.grav = 20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(3);
}
if (this.bound.hitTest(_root.hero.jump.hit3)) {
this.grav = 8;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 20;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 20;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(4);
}
if (this.hitTest(_root.hero.attack.hit4)) {
thrown = true;
_root.hero.attack.gotoAndPlay('throw');
if (_root.hero._xscale == 100) {
this._x = _root.hero._x + 30;
this._xscale = 100;
} else {
this._x = _root.hero._x - 30;
this._xscale = -100;
}
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('grabed');
}
if (_root.hero.attack._currentframe == 334) {
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._xscale == 100) {
this.xSpeed = 50;
this.grav = 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = -50;
this.grav = 15;
}
this.hurt.gotoAndPlay('spin');
life -= 7;
}
}
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._currentframe != 2) {
this.gotoAndStop(1);
this._y -= 100;
}
}
if (thrown == true) {
if (_root.hero.attack._currentframe > 335 && _root.hero.attack._currentframe < 364) {
_root.vcam._x = this._x;
_root.vcam._y = this._y;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
}
if (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (_root.instantKill == true) {
this.removeMovieClip();
}
if (this.hitTest(_root.death)) {
life = 0;
this.gotoAndStop('hurt');
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
movieClip 2569 {
}
movieClip 2571 {
}
frame 1123 {
instantKill = true;
stopAllSounds();
nextFrame();
}
frame 1124 {
stop();
hero.life = 10;
hero.special = 10;
vcam.onHero = true;
hero._x = 1382;
hero._y = 260;
wall._visible = false;
}
instance of movieClip 796 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 2);
}
}
movieClip 2574 {
}
instance of movieClip 2574 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 2577 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 2578 {
instance swall of movieClip 2577 {
onClipEvent (enterFrame) {
if (_root.hero._x < -30) {
if (this._currentframe == 1) {
this.play();
_root.wall.nextFrame();
}
}
}
}
}
movieClip 2580 {
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
frame 139 {
this.removeMovieClip();
}
}
instance floorAtOrig of movieClip 2580 {
onClipEvent (load) {
var i = 0;
var inflictDamage = 0;
var hurt = true;
}
onClipEvent (enterFrame) {
if (_name == 'floorAtOrig') {
_visible = false;
stop();
if (_root.quema.attack._currentframe == 106) {
this.duplicateMovieClip('floorat' + i, _root.getNextHighestDepth());
_root['floorat' + i]._x = _root.hero._x;
_root['floorat' + i]._y = 311;
++i;
}
} else {
_visible = true;
if (_root.quema.attack._currentframe == 172) {
this.play();
}
if (_root.difficulty == 1) {
_xscale = 100;
inflictDamage = 1;
} else {
if (_root.difficulty == 2) {
_xscale = 160;
inflictDamage = 2;
} else {
if (_root.difficulty == 3) {
_xscale = 240;
inflictDamage = 3;
}
}
}
if (this._currentframe > 61 && this._currentframe < 120) {
if (hurt == true) {
if (_root.hero.life > 0) {
if (this.bound.hitTest(_root.hero.bound)) {
_root.hero.gotoAndStop('hurt');
_root.hero.grav = 25;
_root.hero.life -= inflictDamage;
hurt = false;
}
}
}
}
}
}
}
movieClip 2583 {
frame 1 {
stop();
}
}
movieClip 2585 {
}
movieClip 2668 {
frame 105 {
_parent.i1 = -1;
_parent.gotoAndStop(1);
}
frame 199 {
_parent.i2 = _parent.attackCountDown;
_parent.gotoAndStop(1);
}
frame 230 {
_parent.gotoAndStop(1);
}
}
movieClip 2681 {
}
movieClip 2739 {
frame 26 {
stop();
}
frame 38 {
gotoAndStop(26);
}
frame 39 {
play();
}
frame 40 {
play();
}
frame 106 {
_parent.i1 = _parent.floorAt;
_parent.i3 = _parent.pant;
_parent.gotoAndStop(1);
}
frame 277 {
stop();
_root.vcam.onHero = true;
_root.hero.activated = true;
}
frame 474 {
stop();
_root.vcam.onHero = true;
_root.hero.activated = true;
_root.endlvl._visible = true;
_root.endlvl.gotoAndPlay(1);
}
}
movieClip 2752 {
frame 180 {
gotoAndPlay(145);
}
}
movieClip 2799 {
frame 86 {
stop();
}
}
movieClip 2800 {
frame 1 {
stop();
}
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
}
instance quema of movieClip 2800 {
onClipEvent (load) {
var xdist = 0;
var ydist = 0;
var fighting = false;
if (_root.difficulty == 1) {
var life = 15;
var floorAt = 3;
var attackCountDown = 50;
var pant = 500;
} else {
if (_root.difficulty == 2) {
var life = 40;
var floorAt = 6;
var attackCountDown = 30;
var pant = 400;
} else {
if (_root.difficulty == 3) {
var life = 50;
var floorAt = 9;
var attackCountDown = 20;
var pant = 300;
}
}
}
var i1 = floorAt;
var i2 = attackCountDown;
var i3 = pant;
var takeDamage = false;
var battlecam = true;
var bossTitle = false;
var bossTitleCount = 300;
var moveCam = 15;
}
onClipEvent (enterFrame) {
if (battlecam == true) {
xdist = this._x - _root.hero._x;
ydist = this._y - _root.hero._y;
if (_root.event1.activated == true) {
_root.vcam.onHero = false;
if (xdist < -180) {
_root.vcam._xscale = xdist / 3;
_root.vcam._yscale = xdist / 3;
}
_root.vcam._x = _root.hero._x + xdist / 2;
_root.vcam._y = _root.hero._y + ydist / 2 - 50;
}
}
if (_root.hero.life <= 0) {
battlecam = false;
_root.vcam.onHero = true;
_root.vcam._xscale = 100;
_root.vcam._yscale = 100;
}
if (bossTitle == true) {
battlecam = false;
fighting = false;
_root.vcam.onHero = false;
_root.vcam._x = this._x;
_root.vcam._y = this._y - 20;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
gotoAndStop('taunt');
if (bossTitleCount > 0) {
--bossTitleCount;
}
if (bossTitleCount == 1) {
this.gotoAndStop(1);
battlecam = true;
fighting = true;
_root.hero.activated = true;
bossTitle = false;
}
}
if (fighting == true) {
if (i1 > 0) {
if (i2 > 0) {
--i2;
}
if (i2 == 0) {
this.gotoAndStop('attack');
if (this.attack._currentframe == 1) {
--i1;
this.attack.gotoAndPlay('attack1');
}
}
}
if (i1 == 0) {
if (this._currentframe == 1) {
this.gotoAndStop('attack');
}
}
if (i1 == -1) {
this.gotoAndStop('hurt');
if (i3 > 0) {
--i3;
}
if (i3 > 3) {
takeDamage = true;
} else {
takeDamage = false;
}
if (i3 == 1) {
this.hurt.gotoAndPlay('recover');
}
}
if (_root.hero._x < -1333) {
_root.hero._x = -1333;
_root.hero.xSpeed = 5;
}
if (this.hurt._currentframe > 82 && this.hurt._currentframe < 94) {
if (_root.hero.hitTest(this)) {
_root.hero.xSpeed = 15;
}
}
if (_root.hero.life <= 0) {
fighting = false;
}
if (this._currentframe == 3) {
if (takeDamage == true) {
if (this.hitTest(_root.hero.attack.hit1) or this.hitTest(_root.hero.attack.hit3)) {
this.hurt.gotoAndPlay('hurt');
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
life -= 1;
}
if (this.hitTest(_root.hero.attack.hit2)) {
this.hurt.gotoAndPlay('hurt');
_root.hero.attack.hit.gotoAndStop(3);
life -= 2;
}
if (this.hitTest(_root.hero.jump.hit1) or this.hitTest(_root.hero.jump.hit2)) {
this.hurt.gotoAndPlay('hurt');
_root.hero.jump.hit.gotoAndStop(2);
life -= 1;
}
if (this.hitTest(_root.hero.attack.hit3)) {
this.hurt.gotoAndPlay('hurt');
_root.hero.jump.hit.gotoAndStop(4);
life -= 2;
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
this.hurt.gotoAndPlay('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.hurt.gotoAndPlay('hurt');
life -= 10;
}
}
}
}
if (life <= 0) {
if (this.hurt._currentframe < 107) {
this.hurt.gotoAndPlay('death');
}
life = 0;
fighting = false;
battlecam = false;
}
if (this.hurt._currentframe > 106 && this.hurt._currentframe < 217) {
_root.hero.activated = false;
_root.vcam._x = this._x;
_root.vcam._y = this._y - 20;
_root.vcam._x += random(2);
_root.vcam._x -= random(2);
_root.vcam._y += random(2);
_root.vcam._y -= random(2);
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
}
if (this.hurt._currentframe == 107) {
_root.hero.xSpeed = 20;
}
if (this.hurt._currentframe > 39 && this.hurt._currentframe < 106) {
this.hurt.play();
}
if (this.hurt._currentframe == 277) {
if (_root.hero.hitTest(_x + 100, _y, true)) {
_root.hero.xSpeed = 0;
_root.hero.activated = false;
_root.hero.gotoAndStop('taunt');
}
}
if (_root.hero.taunt._currentframe == 77 or _root.hero.taunt._currentframe == 78) {
this.hurt.gotoAndPlay(278);
}
if (_root.hero.taunt._currentframe == 52) {
_root.conversation.convoChoose = 4;
_root.conversation.gotoAndPlay(1);
_root.vcam.onHero = false;
}
if (_root.hero.taunt._currentframe > 53 && _root.hero.taunt._currentframe < 77) {
if (moveCam > 0) {
--moveCam;
}
_root.vcam._x -= moveCam;
}
if (_root.hero.taunt._currentframe == 81 or _root.hero.taunt._currentframe == 82) {
_root.vcam._xscale += 50;
_root.vcam._yscale += 50;
}
}
}
movieClip 2803 {
frame 1 {
stop();
}
frame 15 {
stop();
}
frame 30 {
stop();
}
}
instance of movieClip 2803 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) or this.hitTest(_root.wball.waterballmc)) {
if (_visible == false) {
if (this._currentframe == 1) {
if (_root.quema._currentframe == 2) {
if (_root.quema.attack._currentframe > 105) {
_visible = true;
_root.quema.gotoAndStop('attack');
_root.quema.attack.gotoAndPlay('attack2');
this.play();
}
}
if (_root.quema._currentframe == 1) {
_visible = true;
_root.quema.gotoAndStop('attack');
_root.quema.attack.gotoAndPlay('attack2');
this.play();
}
}
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
}
}
if (this.hitTest(_root.hero)) {
_root.hero.xSpeed = 10;
}
if (_root.quema.attack._currentframe == 10) {
if (this._currentframe == 15) {
this.play();
}
}
if (_root.quema._currentframe == 3) {
if (this._currentframe == 15) {
this.play();
} else {
this.gotoAndStop(30);
}
} else {
if (this._currentframe == 30) {
_visible = false;
this.gotoAndStop(1);
}
}
}
}
instance event1 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var stopLoop = false;
var activated = false;
}
onClipEvent (enterFrame) {
if (stopLoop == false) {
if (_root.hero.hitTest(this)) {
_root.hero.activated = false;
activated = true;
stopLoop = true;
_root.hero.xSpeed = 0;
if (_root.conversation._currentframe == 1) {
_root.conversation.gotoAndPlay(2);
_root.conversation.convoChoose = 3;
}
}
}
}
}
movieClip 2807 {
frame 23 {
gotoAndPlay(1);
}
frame 39 {
this.removeMovieClip();
}
}
instance fireballOrig of movieClip 2807 {
onClipEvent (load) {
var moveSpeed = 0;
var hardMove = 15;
var i = 0;
var i2 = 0;
var inflictDamage = 0;
var partsize = random(100);
var newPar;
}
onClipEvent (enterFrame) {
partsize = random(100);
if (_name == 'fireballOrig') {
_visible = false;
if (_root.quema.attack._currentframe == 66) {
this.duplicateMovieClip('fireball' + i, _root.getNextHighestDepth());
_root['fireball' + i]._x = _root.quema._x + 80;
_root['fireball' + i]._y = _root.quema._y - 10;
++i;
}
} else {
_visible = true;
if (_root.difficulty == 1) {
moveSpeed = 7;
inflictDamage = 2;
} else {
if (_root.difficulty == 2) {
_xscale = 150;
_yscale = 150;
moveSpeed = 15;
inflictDamage = 4;
} else {
if (_root.difficulty == 3) {
_xscale = 200;
_yscale = 200;
--hardMove;
if (hardMove == 0) {
hardMove = 30;
}
moveSpeed = hardMove;
inflictDamage = 6;
}
}
}
if (this._currentframe < 24) {
_x = _x + moveSpeed;
}
if (_x > 210) {
this.removeMovieClip();
}
if (this._currentframe < 24) {
if (this.hitTest(_root.hero)) {
if (_root.hero.life > 0) {
_root.hero._xscale = -100;
this.gotoAndPlay(24);
_root.hero.xSpeed = 24;
_root.hero.grav = 10;
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndStop('spin');
_root.hero.life -= inflictDamage;
_root.hero.activated = false;
}
}
}
if (_root._quality == 'MEDIUM' or _root._quality == 'HIGH') {
newPar = _root.partOrig.duplicateMovieClip('firepart' + _root._root.getNextHighestDepth(), _root.getNextHighestDepth());
newPar._x = this._x + random(_width / 3) - random(_width / 3);
newPar._y = this._y + random(_height / 3) - random(_height / 3);
newPar._xscale = 50 + partsize;
newPar._yscale = 50 + partsize;
}
}
}
}
movieClip 2809 {
}
movieClip 2810 {
instance bar of movieClip 2809 {
onClipEvent (load) {
var percent = 0;
var life = _root.quema.life;
}
onClipEvent (enterFrame) {
percent = (_root.quema.life / life) * 100;
_xscale = percent;
}
}
}
instance of movieClip 2810 {
onClipEvent (enterFrame) {
if (_root.quema.fighting == true) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 2812 {
}
instance partOrig of movieClip 2812 {
onClipEvent (enterFrame) {
if (_name == 'partOrig') {
_visible = false;
} else {
if (_alpha > 0) {
_alpha = _alpha - 1;
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
}
movieClip 2814 {
frame 39 {
gotoAndPlay(20);
}
}
instance endlvl of movieClip 2814 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible == true) {
if (this.hitTest(_root.hero.bound)) {
if (this._currentframe > 19) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe == 213) {
_root.lvlscreen.gotoAndPlay('endlvl');
}
}
}
}
}
}
movieClip 2815 {
frame 34 {
stop();
}
}
instance music of movieClip 2815 {
onClipEvent (load) {
_visible = false;
}
}
frame 1125 {
_root.mission = 3;
_root.gotoAndStop('cutscene2');
}
frame 1126 {
hero.activated = false;
nextFrame();
}
frame 1127 {
var lvl = 'Home';
vcam.onHero = true;
wall._visible = false;
hero._x = 213;
hero._y = 443;
hero.life = 10;
hero.special = 10;
instantKill = false;
}
instance of movieClip 796 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 2);
}
}
movieClip 2819 {
}
movieClip 2821 {
}
instance wall of movieClip 2821 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 2823 {
}
movieClip 2825 {
}
movieClip 2827 {
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (_parent._visible == true) {
if (Key.isDown(32)) {
if (_root.mission == 3) {
_root.conversation.convoChoose = 6;
}
if (_root.mission == 4) {
_root.conversation.convoChoose = 9;
}
_root.conversation.play();
_root.hero.activated = false;
_root.hero.xSpeed = 0;
_parent.gotoAndPlay('ok');
}
}
}
}
frame 28 {
gotoAndPlay(1);
}
frame 39 {
stop();
}
}
instance of movieClip 2827 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 2829 {
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (_parent._visible == true) {
if (Key.isDown(32)) {
_root.savefile.data.sword = _root.sword;
_root.savefile.data.mission = _root.mission;
_root.savefile.data.fightingBoss2 = _root.fightingBoss2;
_root.savefile.data.swordsUnlocked = _root.swordsUnlocked;
_root.savefile.data.difficulty = _root.difficulty;
_root.savefile.data.gameClocked = _root.gameClocked;
_root.savefile.flush();
_root.conversation.convoChoose = 5;
_root.conversation.play();
_root.hero.activated = false;
_root.hero.xSpeed = 0;
_parent.gotoAndPlay('ok');
}
}
}
}
frame 28 {
gotoAndPlay(1);
}
frame 39 {
stop();
}
}
instance of movieClip 2829 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 2831 {
instance of movieClip 603 {
onClipEvent (enterFrame) {
if (_parent._visible == true) {
if (Key.isDown(32)) {
_parent.gotoAndPlay('ok');
}
}
}
}
frame 28 {
gotoAndPlay(1);
}
frame 39 {
stop();
_root.gotoAndStop('inventory');
}
}
instance of movieClip 2831 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 2832 {
frame 17 {
stop();
}
}
frame 1128 {
stop();
}
movieClip 2835 {
}
movieClip 2838 {
frame 1 {
stop();
}
}
movieClip 2839 {
frame 1 {
stop();
}
}
instance of movieClip 2839 {
onClipEvent (press) {
if (_root.gameClocked == true) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.sword = 5;
}
} else {}
}
onClipEvent (enterFrame) {
if (_root.sword != 5) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
if (_root.gameClocked == false) {
this.Lock.gotoAndStop(1);
} else {
this.Lock.gotoAndStop(2);
}
}
}
movieClip 2840 {
frame 1 {
stop();
}
}
instance of movieClip 2840 {
onClipEvent (press) {
if (_root.swordsUnlocked >= 1) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.sword = 2;
}
}
}
onClipEvent (enterFrame) {
if (_root.sword != 2) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
if (_root.swordsUnlocked < 1) {
this.Lock.gotoAndStop(1);
} else {
this.Lock.gotoAndStop(2);
}
}
}
movieClip 2841 {
frame 1 {
stop();
}
}
instance of movieClip 2841 {
onClipEvent (press) {
if (_root.swordsUnlocked >= 2) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.sword = 3;
}
} else {}
}
onClipEvent (enterFrame) {
if (_root.sword != 3) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
if (_root.swordsUnlocked < 2) {
this.Lock.gotoAndStop(1);
} else {
this.Lock.gotoAndStop(2);
}
}
}
movieClip 2842 {
frame 1 {
stop();
}
}
instance of movieClip 2842 {
onClipEvent (press) {
if (_root.swordsUnlocked >= 3) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.sword = 4;
}
} else {}
}
onClipEvent (enterFrame) {
if (_root.sword != 4) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
if (_root.swordsUnlocked < 3) {
this.Lock.gotoAndStop(1);
} else {
this.Lock.gotoAndStop(2);
}
}
}
movieClip 2844 {
}
movieClip 2846 {
frame 1 {
stop();
}
frame 9 {
stop();
}
frame 17 {
gotoAndStop(1);
}
}
instance of movieClip 2846 {
onClipEvent (rollOver) {
if (this._currentframe < 18) {
this.gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (this._currentframe < 18) {
this.gotoAndPlay(10);
}
}
onClipEvent (press) {
if (this._currentframe < 18) {
this.gotoAndPlay(18);
}
}
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.hero.activated = true;
_root.hero._visible = true;
_root.lifebar._visible = true;
if (_root.mission == 5) {
_root._visible = true;
_root.gotoAndStop('lvl5start2');
} else {
_root.prevFrame();
}
}
}
}
// unknown tag 88 length 297
instance of movieClip 2825 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.hero._x = 0;
_root.hero._y = 0;
_root.hero.grav = 0;
_root.hero.activated = false;
_root.hero._visible = false;
_root.lifebar._visible = false;
_root.vcam.onHero = false;
_root.vcam._x = 350;
_root.vcam._y = 200;
}
}
movieClip 2852 {
frame 1 {
stop();
}
}
instance of movieClip 2852 {
onClipEvent (press) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.sword = 1;
}
}
onClipEvent (enterFrame) {
if (_root.sword != 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
frame 1129 {
instantKill = true;
stopAllSounds();
nextFrame();
}
frame 1130 {
stop();
_root._visible = false;
vcam.onHero = true;
var lvl = 'Gusty Valley';
wall._visible = false;
hero._x = -780;
hero._y = 131;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
_root.hero.life = 10;
_root.hero.special = 10;
_root.hero.gotoAndStop(1);
}
movieClip 2855 {
}
instance of movieClip 2855 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 2857 {
}
movieClip 2859 {
}
movieClip 2861 {
}
movieClip 2863 {
}
movieClip 2867 {
frame 1 {
stop();
}
}
instance ground of movieClip 2867 {
onClipEvent (load) {
if (_root.difficulty == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
movieClip 2870 {
frame 1 {
stop();
}
}
instance wall of movieClip 2870 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
movieClip 2926 {
frame 1 {
stop();
}
}
movieClip 2948 {
frame 15 {
_parent.gotoAndStop(1);
}
frame 82 {
stop();
}
}
movieClip 2949 {
frame 1 {
stop();
}
}
instance of movieClip 2949 {
onClipEvent (load) {
_xscale = -100;
var life = 3;
var xSpeed = 0;
var grav = 0;
if (_root.difficulty == 1) {
var maxAttackSpeed = 200;
var attackSpeed = 200;
} else {
if (_root.difficulty == 2) {
var maxAttackSpeed = 165;
var attackSpeed = 165;
} else {
if (_root.difficulty == 3) {
var maxAttackSpeed = 90;
var attackSpeed = 90;
}
}
}
var hurtState = false;
var tornado;
}
onClipEvent (enterFrame) {
++grav;
this._y += grav;
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
}
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -3;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 3;
}
if (this.xSpeed > 0) {
xSpeed -= 0.5;
this._x += xSpeed;
}
if (this.xSpeed < 0) {
xSpeed += 0.5;
this._x += xSpeed;
}
if (this._currentframe == 1) {
hurtState = false;
}
if (hurtState == false) {
if (attackSpeed > 0) {
--attackSpeed;
}
if (attackSpeed == 0) {
this.attack.play();
attackSpeed = maxAttackSpeed;
}
if (this.attack._currentframe == 35) {
tornado = _root.tornado.duplicateMovieClip('torn' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (this._xscale == 100) {
tornado._xscale = 100;
tornado._x = this._x + 50;
} else {
tornado._xscale = -100;
tornado._x = this._x - 50;
}
tornado._y = this._y - 80;
}
}
if (this.hitTest(_root.hero.attack.hit1)) {
hurtState = true;
this.gotoAndStop('hurt');
--life;
if (_root.hero._xscale == 100) {
this.xSpeed += _root.hero.xSpeed + 5;
}
if (_root.hero._xscale == -100) {
this.xSpeed += _root.hero.xSpeed - 5;
}
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.hitTest(_root.hero.attack.hit2)) {
hurtState = true;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('hurt2');
--life;
if (_root.hero._xscale == 100) {
this.xSpeed += _root.hero.xSpeed + 10;
} else {
if (_root.hero._xscale == -100) {
this.xSpeed += _root.hero.xSpeed - 10;
}
}
_root.hero.attack.hit.gotoAndStop(3);
}
if (this.hitTest(_root.hero.attack.hit3)) {
hurtState = true;
this.gotoAndStop('hurt');
--life;
if (_root.hero._xscale == 100) {
this.xSpeed += _root.hero.xSpeed + 5;
}
if (_root.hero._xscale == -100) {
this.xSpeed += _root.hero.xSpeed - 5;
}
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.hitTest(_root.hero.attack.hit4)) {
if (_root.hero._xscale == 100) {
xSpeed = 10;
} else {
xSpeed = -10;
}
this.gotoAndStop('hurt');
grav = 9;
this.life -= 3;
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
if (life <= 0) {
this.gotoAndStop('hurt');
if (this.hurt._currentframe < 38) {
this.hurt.gotoAndPlay('die');
}
}
if (this.hitTest(_root.death)) {
life = 0;
}
}
}
instance tornado of movieClip 2010 {
onClipEvent (load) {
_alpha = 100;
if (_root.difficulty == 1) {
var deathCounter = 40;
var moveSpeed = 8;
} else {
if (_root.difficulty == 2) {
var deathCounter = 60;
var moveSpeed = 12;
} else {
if (_root.difficulty == 3) {
var deathCounter = 70;
var moveSpeed = 17;
}
}
}
}
onClipEvent (enterFrame) {
if (_name == 'tornado') {
_visible = false;
} else {
if (_xscale == 100) {
_x = _x + moveSpeed;
} else {
if (_xscale == -100) {
_x = _x - moveSpeed;
}
}
}
if (deathCounter > 0) {
if (this._xscale == 100) {
while (this.bound.hitTest(_root.hero.bound)) {
_root.hero._x += 2;
}
}
if (this._xscale == -100) {
while (this.bound.hitTest(_root.hero.bound)) {
_root.hero._x -= 2;
}
}
}
if (deathCounter > 0) {
--deathCounter;
}
if (deathCounter == 0) {
this._alpha -= 2;
}
if (this._alpha == 0) {
this.removeMovieClip();
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance of movieClip 1589 {
onClipEvent (enterFrame) {
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
movieClip 2952 {
frame 25 {
stop();
}
}
instance music of movieClip 2952 {
onClipEvent (load) {
_visible = false;
}
}
frame 1131 {
instantKill = true;
nextFrame();
}
frame 1132 {
stop();
vcam.onHero = true;
wall._visible = false;
hero._x = -885;
hero._y = 684;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
instance of movieClip 2855 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 2956 {
}
movieClip 2958 {
}
movieClip 2961 {
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
}
instance of movieClip 2961 {
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance gaurdOrig of movieClip 1584 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 1) {
var spawnNum = 2;
var spawnAm = 2;
var life = 3;
} else {
if (_root.difficulty == 2) {
var spawnNum = 6;
var spawnAm = 6;
var life = 8;
} else {
if (_root.difficulty == 3) {
var spawnNum = 8;
var spawnAm = 8;
var life = 15;
}
}
}
var deathCount = 0;
var gaurd = this;
var e = 61;
var grav = 0;
var attacking = false;
var xdist = 0;
var ydist = 0;
var eyesight = 400;
var xSpeed = 0;
var spinTime = 0;
var thrown = false;
}
onClipEvent (enterFrame) {
if (_name == 'gaurdOrig') {
_visible = false;
if (spawnNum > 0) {
--spawnNum;
gaurd = this.duplicateMovieClip('gaurd' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gaurd._x = e;
gaurd._y = -213;
e += 300;
}
} else {
_visible = true;
if (xSpeed > 0) {
this._x += xSpeed;
xSpeed -= 0.5;
}
if (xSpeed < 0) {
this._x += xSpeed;
xSpeed += 0.5;
}
if (spinTime > 0) {
--spinTime;
}
--grav;
_y = _y - grav;
onGround = false;
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -4;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 4;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.hero.activated == true) {
this.attacking = true;
} else {
this.attacking = false;
}
if (attacking == true) {
if (this._currentframe == 1) {
xdist = Math.round(_root.hero._x - this._x);
ydist = Math.round(_root.hero._y - this._y);
if (xdist < eyesight && xdist > 0 && ydist < 100 && ydist > -100) {
this._x += 4;
this._xscale = 100;
this.idle.play();
}
if (xdist > -eyesight && xdist < 0 && ydist < 100 && ydist > -100) {
this._x -= 4;
this._xscale = -100;
this.idle.play();
}
}
if (this._currentframe == 1) {
if (this.bound.hitTest(_root.hero.bound)) {
this.gotoAndStop('attack');
}
}
if (_root.hero.hitTest(this.attack2.hit)) {
if (this._xscale == 100) {
_root.hero.xSpeed += 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
if (this._xscale == -100) {
_root.hero.xSpeed -= 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
this.attack2.hiter.play();
}
}
if (_root.hero.life <= 0) {
attacking = false;
}
if (this.bound.hitTest(_root.hero.attack.hit1)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = 5;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = 5;
}
}
if (onGround == false) {
grav = grav * -1 / 2;
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
}
}
this.gotoAndStop('hurt');
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.bound.hitTest(_root.hero.attack.hit2)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 16;
} else {
this.xSpeed = 16;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 16;
} else {
this.xSpeed = -16;
}
}
if (onGround == false) {
grav = 10;
} else {
grav += 10;
}
this._y -= 15;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
spinTime = 10;
life -= 2;
_root.hero.attack.hit.gotoAndStop(3);
}
if (onGround == true && spinTime == 0) {
if (this.hurt._currentframe > 42 && this.hurt._currentframe < 52) {
if (life > 0) {
this.gotoAndStop(1);
} else {
if (life < 1) {
this.hurt.gotoAndPlay('death2');
}
}
}
}
if (this.bound.hitTest(_root.hero.attack.hit3)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 3;
} else {
this.xSpeed = 3;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 3;
} else {
this.xSpeed = -3;
}
}
this._y -= 15;
this.grav += 17;
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
} else {
this.hurt.gotoAndPlay('death2');
}
}
if (onGround == true && this.hurt._currentframe == 65) {
this.gotoAndStop(1);
}
if (this.bound.hitTest(_root.hero.jump.hit1)) {
this.grav = -20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(2);
}
if (this.bound.hitTest(_root.hero.jump.hit2)) {
this.grav = 20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(3);
}
if (this.bound.hitTest(_root.hero.jump.hit3)) {
this.grav = 8;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 20;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 20;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(4);
}
if (this.hitTest(_root.hero.attack.hit4)) {
thrown = true;
_root.hero.attack.gotoAndPlay('throw');
if (_root.hero._xscale == 100) {
this._x = _root.hero._x + 30;
this._xscale = 100;
} else {
this._x = _root.hero._x - 30;
this._xscale = -100;
}
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('grabed');
}
if (_root.hero.attack._currentframe == 334) {
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._xscale == 100) {
this.xSpeed = 50;
this.grav = 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = -50;
this.grav = 15;
}
this.hurt.gotoAndPlay('spin');
life -= 7;
}
}
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._currentframe != 2) {
this.gotoAndStop(1);
this._y -= 100;
}
}
if (thrown == true) {
if (_root.hero.attack._currentframe > 335 && _root.hero.attack._currentframe < 364) {
_root.vcam._x = this._x;
_root.vcam._y = this._y;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
}
if (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (_root.instantKill == true) {
this.removeMovieClip();
}
if (this.hitTest(_root.death) or this.hitTest(_root.death2)) {
life = 0;
this.gotoAndStop('hurt');
}
}
}
instance of movieClip 2949 {
onClipEvent (load) {
_xscale = -100;
var life = 3;
var xSpeed = 0;
var grav = 0;
if (_root.difficulty == 1) {
var maxAttackSpeed = 200;
var attackSpeed = 200;
} else {
if (_root.difficulty == 2) {
var maxAttackSpeed = 165;
var attackSpeed = 165;
} else {
if (_root.difficulty == 3) {
var maxAttackSpeed = 90;
var attackSpeed = 90;
}
}
}
var hurtState = false;
var tornado;
}
onClipEvent (enterFrame) {
if (_root.difficulty != 3) {
this._x = 10000;
this._y = 10000;
}
++grav;
this._y += grav;
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
}
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -3;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 3;
}
if (this.xSpeed > 0) {
xSpeed -= 0.5;
this._x += xSpeed;
}
if (this.xSpeed < 0) {
xSpeed += 0.5;
this._x += xSpeed;
}
if (this._currentframe == 1) {
hurtState = false;
}
if (hurtState == false) {
if (attackSpeed > 0) {
--attackSpeed;
}
if (attackSpeed == 0) {
this.attack.play();
attackSpeed = maxAttackSpeed;
}
if (this.attack._currentframe == 35) {
tornado = _root.tornado.duplicateMovieClip('torn' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (this._xscale == 100) {
tornado._xscale = 100;
tornado._x = this._x + 50;
} else {
tornado._xscale = -100;
tornado._x = this._x - 50;
}
tornado._y = this._y - 80;
}
}
if (this.hitTest(_root.hero.attack.hit1)) {
hurtState = true;
this.gotoAndStop('hurt');
--life;
if (_root.hero._xscale == 100) {
this.xSpeed += _root.hero.xSpeed + 5;
}
if (_root.hero._xscale == -100) {
this.xSpeed += _root.hero.xSpeed - 5;
}
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.hitTest(_root.hero.attack.hit2)) {
hurtState = true;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('hurt2');
--life;
if (_root.hero._xscale == 100) {
this.xSpeed += _root.hero.xSpeed + 10;
} else {
if (_root.hero._xscale == -100) {
this.xSpeed += _root.hero.xSpeed - 10;
}
}
_root.hero.attack.hit.gotoAndStop(3);
}
if (this.hitTest(_root.hero.attack.hit3)) {
hurtState = true;
this.gotoAndStop('hurt');
--life;
if (_root.hero._xscale == 100) {
this.xSpeed += _root.hero.xSpeed + 5;
}
if (_root.hero._xscale == -100) {
this.xSpeed += _root.hero.xSpeed - 5;
}
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.hitTest(_root.hero.attack.hit4)) {
if (_root.hero._xscale == 100) {
xSpeed = 10;
} else {
xSpeed = -10;
}
this.gotoAndStop('hurt');
grav = 9;
this.life -= 3;
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
if (life <= 0) {
this.gotoAndStop('hurt');
if (this.hurt._currentframe < 38) {
this.hurt.gotoAndPlay('die');
}
}
if (this.hitTest(_root.death)) {
life = 0;
}
}
}
instance tornado of movieClip 2010 {
onClipEvent (load) {
_alpha = 100;
if (_root.difficulty == 1) {
var deathCounter = 40;
var moveSpeed = 8;
} else {
if (_root.difficulty == 2) {
var deathCounter = 60;
var moveSpeed = 12;
} else {
if (_root.difficulty == 3) {
var deathCounter = 70;
var moveSpeed = 17;
}
}
}
}
onClipEvent (enterFrame) {
if (_name == 'tornado') {
_visible = false;
} else {
if (_xscale == 100) {
_x = _x + moveSpeed;
} else {
if (_xscale == -100) {
_x = _x - moveSpeed;
}
}
}
if (deathCounter > 0) {
if (this._xscale == 100) {
while (this.bound.hitTest(_root.hero.bound)) {
_root.hero._x += 2;
}
}
if (this._xscale == -100) {
while (this.bound.hitTest(_root.hero.bound)) {
_root.hero._x -= 2;
}
}
}
if (deathCounter > 0) {
--deathCounter;
}
if (deathCounter == 0) {
this._alpha -= 2;
}
if (this._alpha == 0) {
this.removeMovieClip();
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
frame 1133 {
instantKill = true;
nextFrame();
}
frame 1134 {
stop();
vcam.onHero = true;
wall._visible = false;
hero._x = -920;
hero._y = 540;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
instance of movieClip 2855 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 2969 {
frame 1 {
stop();
}
frame 83 {
stop();
}
}
movieClip 2971 {
frame 1 {
stop();
}
frame 42 {
stop();
}
}
movieClip 2972 {
frame 1 {
stop();
}
instance of movieClip 2969 {
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
if (this._currentframe == 1) {
this.play();
}
}
}
}
instance of movieClip 2971 {
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
if (this._currentframe == 1) {
this.play();
}
}
}
}
}
instance ground of movieClip 2972 {
onClipEvent (load) {
if (_root.difficulty == 1) {
this.gotoAndStop(1);
} else {
if (_root.difficulty == 2) {
this.gotoAndStop(2);
} else {
if (_root.difficulty == 3) {
this.gotoAndStop(3);
}
}
}
}
}
movieClip 2975 {
frame 1 {
stop();
}
}
instance wall of movieClip 2975 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 1) {
this.gotoAndStop(1);
} else {
if (_root.difficulty == 2) {
this.gotoAndStop(2);
} else {
if (_root.difficulty == 3) {
this.gotoAndStop(3);
}
}
}
}
}
instance of movieClip 1171 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
instance of movieClip 2961 {
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
}
}
instance of movieClip 2961 {
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
if (_root.hero.walk._currentframe == 1) {
_root.hero.gotoAndStop('jump');
_root.hero.jump.gotoAndPlay(52);
}
}
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance event1 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = false;
activated = true;
}
} else {
if (zoomCam > 0) {
--zoomCam;
_root.vcam._xscale += zoomCam * 3;
_root.vcam._yscale += zoomCam * 3;
}
}
}
}
instance of movieClip 2961 {
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
if (_root.hero.walk._currentframe == 1) {
_root.hero.gotoAndStop('jump');
_root.hero.jump.gotoAndPlay(52);
}
}
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
frame 1135 {
instantKill = true;
nextFrame();
}
frame 1136 {
stop();
vcam.onHero = true;
wall._visible = false;
hero._x = -1200;
hero._y = 975;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
instance of movieClip 2855 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 2980 {
frame 1 {
stop();
}
frame 10 {
stop();
_root.wall.gotoAndStop(2);
}
}
movieClip 2982 {
frame 1 {
stop();
}
}
movieClip 2983 {
}
movieClip 2985 {
frame 1 {
stop();
}
frame 43 {
stop();
_root.wall.blocked._x += 100000;
}
}
movieClip 2987 {
}
movieClip 2989 {
frame 1 {
stop();
}
}
instance wall of movieClip 2989 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1171 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
instance of movieClip 2961 {
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_visible == true) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
if (_root.ground.door._currentframe == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
}
}
movieClip 2992 {
}
movieClip 2994 {
frame 1 {
stop();
}
}
movieClip 2995 {
}
instance of movieClip 2995 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.attack.hit1) or this.hitTest(_root.hero.attack.hit2) or this.hitTest(_root.hero.attack.hit3)) {
this.ball.gotoAndPlay(2);
if (_root.ground.door._currentframe == 1) {
_root.ground.door.play();
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
this.ball.gotoAndPlay(2);
if (_root.ground.door._currentframe == 1) {
_root.ground.door.play();
}
}
_root.wball.waterballmc.play();
}
}
}
instance wind2 of movieClip 2961 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_visible == true) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.xSpeed += 2;
}
}
}
}
}
instance of movieClip 2995 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.attack.hit1) or this.hitTest(_root.hero.attack.hit2) or this.hitTest(_root.hero.attack.hit3)) {
this.ball.gotoAndPlay(2);
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
this.ball.gotoAndPlay(2);
}
_root.wball.waterballmc.play();
}
if (this.ball._currentframe == 2) {
_root.wind2._visible = true;
}
}
}
instance event2 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = true;
activated = true;
_root.wind2._visible = false;
_root.wind3._visible = true;
}
}
}
}
instance of movieClip 2961 {
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_visible == true) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
}
}
}
instance wind3 of movieClip 2961 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_visible == true) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.xSpeed -= 2;
}
}
}
}
}
instance event3 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.wind3._visible = false;
if (_root.ground.door2._currentframe == 1) {
_root.ground.door2.play();
}
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
instance gaurdOrig of movieClip 1584 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 1) {
var spawnNum = 4;
var spawnAm = 4;
var life = 5;
} else {
if (_root.difficulty == 2) {
var spawnNum = 6;
var spawnAm = 6;
var life = 9;
} else {
if (_root.difficulty == 3) {
var spawnNum = 8;
var spawnAm = 8;
var life = 15;
}
}
}
var deathCount = 0;
var gaurd = this;
var e = 224;
var grav = 0;
var attacking = false;
var xdist = 0;
var ydist = 0;
var eyesight = 400;
var xSpeed = 0;
var spinTime = 0;
var thrown = false;
}
onClipEvent (enterFrame) {
if (_name == 'gaurdOrig') {
_visible = false;
if (spawnNum > 0) {
--spawnNum;
gaurd = this.duplicateMovieClip('gaurd' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gaurd._x = e;
gaurd._y = -969;
e -= 150;
}
} else {
if (_root.event4.Show == true) {
_visible = true;
if (xSpeed > 0) {
this._x += xSpeed;
xSpeed -= 0.5;
}
if (xSpeed < 0) {
this._x += xSpeed;
xSpeed += 0.5;
}
if (spinTime > 0) {
--spinTime;
}
--grav;
_y = _y - grav;
onGround = false;
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -4;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 4;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.hero.activated == true) {
this.attacking = true;
} else {
this.attacking = false;
}
if (attacking == true) {
if (this._currentframe == 1) {
xdist = Math.round(_root.hero._x - this._x);
ydist = Math.round(_root.hero._y - this._y);
if (xdist < eyesight && xdist > 0 && ydist < 100 && ydist > -100) {
this._x += 4;
this._xscale = 100;
this.idle.play();
}
if (xdist > -eyesight && xdist < 0 && ydist < 100 && ydist > -100) {
this._x -= 4;
this._xscale = -100;
this.idle.play();
}
}
if (this._currentframe == 1) {
if (this.bound.hitTest(_root.hero.bound)) {
this.gotoAndStop('attack');
}
}
if (_root.hero.hitTest(this.attack2.hit)) {
if (this._xscale == 100) {
_root.hero.xSpeed += 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
if (this._xscale == -100) {
_root.hero.xSpeed -= 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
this.attack2.hiter.play();
}
}
if (_root.hero.life <= 0) {
attacking = false;
}
if (this.bound.hitTest(_root.hero.attack.hit1)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = 5;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = 5;
}
}
if (onGround == false) {
grav = grav * -1 / 2;
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
}
}
this.gotoAndStop('hurt');
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.bound.hitTest(_root.hero.attack.hit2)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 16;
} else {
this.xSpeed = 16;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 16;
} else {
this.xSpeed = -16;
}
}
if (onGround == false) {
grav = 10;
} else {
grav += 10;
}
this._y -= 15;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
spinTime = 10;
life -= 2;
_root.hero.attack.hit.gotoAndStop(3);
}
if (onGround == true && spinTime == 0) {
if (this.hurt._currentframe > 42 && this.hurt._currentframe < 52) {
if (life > 0) {
this.gotoAndStop(1);
} else {
if (life < 1) {
this.hurt.gotoAndPlay('death2');
}
}
}
}
if (this.bound.hitTest(_root.hero.attack.hit3)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 3;
} else {
this.xSpeed = 3;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 3;
} else {
this.xSpeed = -3;
}
}
this._y -= 15;
this.grav += 17;
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
} else {
this.hurt.gotoAndPlay('death2');
}
}
if (onGround == true && this.hurt._currentframe == 65) {
this.gotoAndStop(1);
}
if (this.bound.hitTest(_root.hero.jump.hit1)) {
this.grav = -20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(2);
}
if (this.bound.hitTest(_root.hero.jump.hit2)) {
this.grav = 20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(3);
}
if (this.bound.hitTest(_root.hero.jump.hit3)) {
this.grav = 8;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 20;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 20;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(4);
}
if (this.hitTest(_root.hero.attack.hit4)) {
thrown = true;
_root.hero.attack.gotoAndPlay('throw');
if (_root.hero._xscale == 100) {
this._x = _root.hero._x + 30;
this._xscale = 100;
} else {
this._x = _root.hero._x - 30;
this._xscale = -100;
}
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('grabed');
}
if (_root.hero.attack._currentframe == 334) {
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._xscale == 100) {
this.xSpeed = 50;
this.grav = 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = -50;
this.grav = 15;
}
this.hurt.gotoAndPlay('spin');
life -= 7;
}
}
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._currentframe != 2) {
this.gotoAndStop(1);
this._y -= 100;
}
}
if (thrown == true) {
if (_root.hero.attack._currentframe > 335 && _root.hero.attack._currentframe < 364) {
_root.vcam._x = this._x;
_root.vcam._y = this._y;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
}
if (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (_root.instantKill == true) {
this.removeMovieClip();
}
if (this.hitTest(_root.death) or this.hitTest(_root.death2)) {
life = 0;
this.gotoAndStop('hurt');
}
}
}
}
instance event4 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var Show = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
Show = true;
}
}
}
instance of movieClip 2995 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.attack.hit1) or this.hitTest(_root.hero.attack.hit2) or this.hitTest(_root.hero.attack.hit3)) {
this.ball.gotoAndPlay(2);
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
this.ball.gotoAndPlay(2);
}
_root.wball.waterballmc.play();
}
if (this.ball._currentframe == 2) {
if (_root.blocked._currentframe == 1) {
_root.blocked.play();
}
}
}
}
frame 1137 {
stopAllSounds();
instantKill = true;
nextFrame();
}
frame 1138 {
stop();
sword2ZoomScale = false;
hero.life = 10;
hero.special = 10;
vcam.onHero = true;
vcam._xscale = 100;
vcam._yscale = 100;
wall._visible = false;
hero._x = 1515;
hero._y = 681;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
movieClip 2999 {
}
movieClip 3001 {
}
instance wall of movieClip 3001 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 3008 {
frame 130 {
gotoAndPlay(100);
}
}
movieClip 3034 {
frame 1 {
stop();
}
frame 273 {
_parent.rise = 10;
_root.vcam.onHero = true;
_root.hero.activated = true;
_root.boss.battleCam = true;
_parent.gotoAndStop(2);
}
}
movieClip 3056 {
}
movieClip 3078 {
frame 39 {
_parent.spawnProjectile = true;
}
frame 40 {
_parent.spawnProjectile = false;
}
frame 71 {
--_parent.spamAttackCounter;
_parent.gotoAndStop('idle');
}
}
movieClip 3099 {
frame 23 {
_parent.spawnProjectile = true;
}
frame 24 {
_parent.spawnProjectile = false;
}
frame 41 {
--_parent.spamAttackCounter;
_parent.gotoAndStop('idle');
}
}
movieClip 3120 {
frame 17 {
_parent.spawnProjectile = true;
}
frame 18 {
_parent.spawnProjectile = false;
}
frame 23 {
--_parent.spamAttackCounter;
_parent.gotoAndStop('idle');
}
}
movieClip 3127 {
instance of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
if (_root.hero._x < _root.boss._x) {
_root.hero.xSpeed = -20;
_root.hero._xscale = 100;
} else {
_root.hero.xSpeed = 20;
_root.hero._xscale = -100;
}
_root.hero.grav = 10;
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndStop('spin');
_root.hero.life -= 2;
_root.hero.activated = false;
}
}
}
frame 42 {
if (_root.difficulty == 1) {
_parent.spamAttack += 1;
if (life < 10) {
_parent.spamAttack += 3;
}
_root.windAttack.moveSpeed += 2;
} else {
if (_root.difficulty == 2) {
_parent.spamAttack += 2;
if (life < 10) {
_parent.spamAttack += 6;
}
_root.windAttack.moveSpeed += 8;
} else {
if (_root.difficulty == 3) {
_parent.spamAttack += 3;
if (life < 10) {
_parent.spamAttack += 9;
}
_root.windAttack.moveSpeed += 15;
}
}
}
_parent.rise = 10;
_parent.enableGrav = false;
_parent.spamAttackCounter = _parent.spamAttack;
_parent.gotoAndStop(2);
}
}
movieClip 3130 {
}
movieClip 3132 {
frame 2 {
stop();
}
frame 7 {
gotoAndStop(2);
}
}
movieClip 3162 {
frame 56 {
_parent.pantTimeCounter = _parent.pantTime;
_parent.rise = 10;
_parent.gotoAndStop('attack4');
}
}
movieClip 3163 {
frame 1 {
stop();
}
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
}
instance boss of movieClip 3163 {
onClipEvent (load) {
var xdist = 0;
var ydist = 0;
var battleCam = false;
var rise = 0;
var grav = 0;
var enableGrav = false;
if (_root.difficulty == 1) {
var life = 30;
var spamAttack = 4;
var pantTime = 500;
} else {
if (_root.difficulty == 2) {
var life = 40;
var spamAttack = 7;
var pantTime = 450;
} else {
if (_root.difficulty == 3) {
var life = 50;
var spamAttack = 10;
var pantTime = 400;
}
}
}
var lifeOrig = life;
var spamAttackCounter = spamAttack;
var beforAttack = 100;
var spawnProjectile = false;
var pantTimeCounter = pantTime;
}
onClipEvent (enterFrame) {
if (enableGrav) {
--grav;
_y = _y - grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = _y - 1;
grav = 0;
}
if (_root.hero.bound.hitTest(this.bound)) {
if (_root.hero._x < this._x) {
_root.hero.xSpeed = -2;
--_root.hero._x;
} else {
if (_root.hero._x > this._x) {
_root.hero.xSpeed = 2;
++_root.hero._x;
}
}
}
xdist = this._x - _root.hero._x;
ydist = this._y - _root.hero._y;
if (battleCam == true) {
if (xdist < 200 && xdist > -200) {
} else {
_root.vcam.setZoom = false;
_root.vcam._xscale = xdist / 3;
_root.vcam._yscale = xdist / 3;
}
}
if (_root.hero.life <= 0) {
battleCam = false;
_root.vcam.onHero = true;
_root.vcam._xscale = 100;
_root.vcam._yscale = 100;
}
if (rise > 0) {
rise -= 0.5;
this._y -= rise;
}
if (this._currentframe != 1) {
if (beforAttack > 0) {
--beforAttack;
}
if (beforAttack == 0) {
if (spamAttackCounter > 0) {
if (life > lifeOrig / 1.3) {
this.gotoAndStop('attack1');
} else {
if (life > lifeOrig / 2) {
this.gotoAndStop('attack2');
} else {
if (life < lifeOrig / 2) {
this.gotoAndStop('attack3');
}
}
}
}
}
if (_root.hero._x > this._x) {
this._xscale = 100;
}
if (_root.hero._x < this._x) {
this._xscale = -100;
}
if (spamAttackCounter == 0) {
if (this._currentframe == 2) {
enableGrav = true;
this.gotoAndStop('pant');
}
}
if (this._currentframe == 7) {
if (this.hitTest(_root.hero.attack.hit1) or this.hitTest(_root.hero.attack.hit3)) {
this.pant.gotoAndPlay('hurt');
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
life -= 1;
}
if (this.hitTest(_root.hero.attack.hit2)) {
this.pant.gotoAndPlay('hurt');
_root.hero.attack.hit.gotoAndStop(3);
life -= 2;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.pant.gotoAndPlay('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.pant.gotoAndPlay('hurt');
if (_root.difficulty == 1) {
life -= 14;
} else {
if (_root.difficulty == 2) {
life -= 12;
} else {
if (_root.difficulty == 3) {
life -= 10;
}
}
}
}
if (this._currentframe == 7) {
if (pantTimeCounter > 0) {
--pantTimeCounter;
}
if (pantTimeCounter == 0) {
this.gotoAndStop('rage');
}
}
}
if (this.life <= 0) {
_root.gotoAndStop('cutscene3');
}
}
}
instance of movieClip 2995 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.attack.hit1) or this.hitTest(_root.hero.attack.hit2) or this.hitTest(_root.hero.attack.hit3)) {
this.ball.gotoAndPlay(2);
if (_root.ground.door._currentframe == 1) {
_root.ground.door.play();
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
this.ball.gotoAndPlay(2);
if (_root.ground.door._currentframe == 1) {
_root.ground.door.play();
}
}
_root.wball.waterballmc.play();
}
}
}
instance of movieClip 2995 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.attack.hit1) or this.hitTest(_root.hero.attack.hit2) or this.hitTest(_root.hero.attack.hit3)) {
this.ball.gotoAndPlay(2);
if (_root.ground.door2._currentframe == 1) {
_root.ground.door2.play();
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
this.ball.gotoAndPlay(2);
if (_root.ground.door2._currentframe == 1) {
_root.ground.door2.play();
}
}
_root.wball.waterballmc.play();
}
}
}
instance of movieClip 2961 {
onClipEvent (enterFrame) {
if (_visible == true) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
if (_root.ground.door2._currentframe == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 2961 {
onClipEvent (enterFrame) {
if (_visible == true) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
if (_root.ground.door._currentframe == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var bossTrigger = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (bossTrigger == false) {
_root.vcam.onHero = false;
_root.vcam._x = _root.boss._x;
_root.vcam._y = _root.boss._y - 80;
_root.vcam._xscale -= 50;
_root.vcam._yscale -= 50;
_root.hero.activated = false;
_root.hero.xSpeed = 0;
_root.conversation.play();
_root.conversation.convoChoose = 7;
bossTrigger = true;
}
}
}
}
movieClip 3165 {
}
movieClip 3166 {
}
instance windAttack of movieClip 3166 {
onClipEvent (load) {
if (_root.difficulty == 1) {
var moveSpeed = 7;
} else {
if (_root.difficulty == 2) {
var moveSpeed = 9;
} else {
if (_root.difficulty == 3) {
var moveSpeed = 12;
}
}
}
var life = 500;
var windPart;
var windPart2;
var breakUp = 0;
var xdist = this._x - _root.hero._x;
var ydist = this._y - _root.hero._y;
var Angle = Math.atan2(ydist, xdist) * 180 / Math.PI + 180;
var xSpeed = Math.cos(Angle * Math.PI / 180) * moveSpeed;
var ySpeed = Math.sin(Angle * Math.PI / 180) * moveSpeed;
}
onClipEvent (enterFrame) {
if (_name == 'windAttack') {
_visible = false;
if (_root.boss.spawnProjectile == true) {
windPart = this.duplicateMovieClip('windpart' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
windPart._x = _root.boss._x;
windPart._y = _root.boss._y - 80;
}
} else {
_x = _x + xSpeed;
_y = _y + ySpeed;
if (life > 0) {
--life;
} else {
this.removeMovieClip();
}
if (_root._quality == 'MEDIUM' or _root._quality == 'HIGH') {
if (breakUp == 0) {
windPart2 = _root.windParticle.duplicateMovieClip('windparticle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
windPart2._x = this._x;
windPart2._y = this._y;
breakUp = 10;
}
if (breakUp > 0) {
--breakUp;
}
}
if (_root.hero.life > 0) {
if (this.hitTest(_root.hero)) {
_root.hero.life -= 0.5;
_root.hero.gotoAndStop('hurt');
if (_root.boss._xscale == 100) {
_root.hero.xSpeed += _root.hero.xSpeed / 3 + 5;
} else {
_root.hero.xSpeed -= _root.hero.xSpeed / 3 - 5;
}
this.removeMovieClip();
}
}
}
}
}
movieClip 3168 {
frame 60 {
stop();
this.removeMovieClip();
}
}
instance windParticle of movieClip 3168 {
onClipEvent (enterFrame) {
if (_name == 'windPart') {
_visible = false;
} else {}
}
}
movieClip 3169 {
}
instance of movieClip 3169 {
onClipEvent (load) {
var percent = 0;
var life = _root.boss.life;
}
onClipEvent (enterFrame) {
percent = (_root.boss.life / life) * 100;
this.bar._xscale = percent;
this._x = _root.boss._x - _width / 2;
this._y = _root.boss._y - 110;
if (_root.boss._currentframe == 7) {
_visible = true;
} else {
_visible = false;
}
}
}
frame 1139 {
stopAllSounds();
instantKill = true;
nextFrame();
}
frame 1140 {
stop();
hero.life = 10;
hero.special = 10;
fightingBoss2 = true;
lvlscreen.gotoAndStop(213);
vcam.onHero = false;
hero.activated = false;
wall._visible = false;
hero._x = 1030;
hero._y = 424;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
movieClip 3171 {
}
movieClip 3174 {
}
movieClip 3176 {
}
instance wall of movieClip 3176 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 3178 {
frame 71 {
stop();
}
}
movieClip 3238 {
}
movieClip 3247 {
}
movieClip 3248 {
frame 1 {
stop();
}
frame 372 {
_root.vcam.onHero = true;
_parent.camOnMe = false;
}
frame 382 {
_root.vcam.setZoom = false;
_parent.battleCam = true;
_parent.gotoAndStop(2);
}
}
movieClip 3260 {
}
movieClip 3305 {
}
movieClip 3308 {
frame 3 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
}
instance hit1 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 12 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
}
instance hit1 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 31 {
if (_parent._xscale == 100) {
_parent.xSpeed += 15;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 15;
}
}
}
instance hit2 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 50 {
if (_parent._xscale == 100) {
_parent.xSpeed += 10;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 10;
}
}
}
instance hit3 of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
}
frame 96 {
_parent.gotoAndStop(2);
}
frame 149 {
_parent.tornadoTime = _parent.tornadoTimeDefult;
}
frame 164 {
_parent._x = 286;
_parent._y = 384;
}
frame 177 {
_parent.gotoAndStop(2);
}
}
movieClip 3321 {
}
movieClip 3363 {
frame 16 {
_parent.gotoAndStop(2);
}
frame 23 {
stop();
}
frame 44 {
_parent.gotoAndStop(2);
}
frame 45 {
_parent._x = 423;
_parent._y = 397;
_parent.xSpeed = 0;
_parent.grav = 0;
_parent._xscale = 100;
_root.hero._x = 1000;
_root.hero._y = 393;
_root.hero.activated = false;
_root.vcam.onHero = false;
_root.vcam.setZoom = false;
_parent.battleCam = false;
_parent.camOnMe = true;
_root.vcam._x = _parent._x;
_root.vcam._y = _parent._y - 120;
stopAllSounds();
}
frame 170 {
_parent.camOnMe = false;
_root.vcam.onHero = true;
_root.hero.activated = true;
stop();
}
frame 442 {
stop();
_root.lvlscreen.gotoAndPlay('endlvl');
}
}
movieClip 3369 {
instance of movieClip 1222 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
if (_root.hero._x < _root.boss._x) {
_root.hero.xSpeed = -24;
_root.hero._xscale = 100;
} else {
_root.hero.xSpeed = 24;
_root.hero._xscale = -100;
}
_root.hero.grav = 10;
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndStop('spin');
_root.hero.life -= 2;
_root.hero.activated = false;
}
}
}
frame 42 {
_parent.gotoAndStop(2);
}
}
movieClip 3370 {
frame 1 {
stop();
_root.hero.activated = false;
}
frame 2 {
_root.hero.activated = true;
}
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
instance lifebar of movieClip 3169 {
onClipEvent (load) {
var percent = 0;
var life = _root.boss.life;
}
onClipEvent (enterFrame) {
percent = (_root.boss.life / life) * 100;
this.bar._xscale = percent;
if (_parent._xscale == 100) {
this._xscale = 100;
} else {
this._xscale = -100;
}
}
}
}
instance boss of movieClip 3370 {
onClipEvent (load) {
_x = 1180;
_y = -35;
var grav = 5;
var xSpeed = -24;
var walkSpeed = 1;
var onGround = false;
var camOnMe = true;
var battleCam = false;
var xdist = 0;
var ydist = 0;
var attack1Dam = 1;
var attack2Dam = 2;
var hitsInARow = 0;
if (_root.difficulty == 1) {
var attackDist = 50;
var life = 40;
var attack1Dam = 0.25;
var attack2Dam = 0.5;
var tornadoTime = 2000;
var sendFlying = 4;
var rageTime = 16;
} else {
if (_root.difficulty == 2) {
var attackDist = 80;
var life = 50;
var attack1Dam = 0.5;
var attack2Dam = 1;
var tornadoTime = 1000;
var sendFlying = 8;
var rageTime = 13;
} else {
if (_root.difficulty == 3) {
var attackDist = 150;
var life = 70;
var attack1Dam = 1;
var attack2Dam = 2;
var tornadoTime = 500;
var sendFlying = 12;
var rageTime = 9;
}
}
}
var tornadoTimeDefult = tornadoTime;
}
onClipEvent (enterFrame) {
grav -= 0.5;
_y = _y - grav;
while (_root.ground.hitTest(_x, _y, true)) {
_y = _y - 1;
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 2, true)) {
onGround = true;
} else {
onGround = false;
}
if (xSpeed > 0) {
if (onGround) {
xSpeed -= 0.5;
} else {
xSpeed -= 0.25;
}
_x = _x + xSpeed;
}
if (xSpeed < 0) {
if (onGround) {
xSpeed += 0.5;
} else {
xSpeed += 0.25;
}
_x = _x + xSpeed;
}
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
_x = _x - 1;
xSpeed = -3;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 3;
_y = _y + 1;
}
if (_root.hero.life > 0) {
if (camOnMe == true) {
_root.vcam._x = this._x;
_root.vcam._y = this._y - 100;
}
xdist = this._x - _root.hero._x;
ydist = this._y - _root.hero._y;
if (battleCam == true) {
if (xdist < 200 && xdist > -200) {
} else {
_root.vcam.setZoom = false;
_root.vcam._xscale = xdist / 3;
_root.vcam._yscale = xdist / 3;
}
}
}
if (onGround) {
if (this.hurtmov._currentframe == 1) {
this.hurtmov.play();
}
}
if (this._currentframe == 1) {
_root.hero.activated = false;
}
if (this._currentframe != 1) {
if (_root.hero.life > 0) {
if (this.bound.hitTest(_root.hero.bound) == false) {
if (this._currentframe == 2) {
this.walk.play();
if (this._xscale == 100) {
_x = _x + walkSpeed;
} else {
if (this._xscale == -100) {
_x = _x - walkSpeed;
}
}
if (_root.difficulty < 3) {
if (_root.hero._x > this._x) {
this._xscale = 100;
} else {
if (_root.hero._x < this._x) {
this._xscale = -100;
}
}
}
}
} else {
this.walk.gotoAndStop(1);
}
if (_root.difficulty == 3) {
if (_root.hero._x > this._x) {
this._xscale = 100;
} else {
if (_root.hero._x < this._x) {
this._xscale = -100;
}
}
}
if (this._y > 550) {
grav = 0;
_y = _y - 1;
this.gotoAndStop('attack');
if (this.attack._currentframe == 1) {
this.attack.gotoAndPlay('teleport');
}
hitsInARow = 0;
}
if (_root.hero.bound.hitTest(_x + attackDist, _y, true) or _root.hero.bound.hitTest(_x - attackDist, _y, true) or _root.hero.hitTest(this)) {
if (this._currentframe == 2) {
this.gotoAndStop('attack');
}
}
if (tornadoTime > 0) {
--tornadoTime;
}
if (this._currentframe == 2 && tornadoTime == 0) {
this.gotoAndStop('attack');
this.attack.gotoAndPlay('tornado');
}
if (this.attack._currentframe == 111) {
tornado = _root.tornado.duplicateMovieClip('torn' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (this._xscale == 100) {
tornado._xscale = 100;
tornado._x = this._x + 50;
} else {
tornado._xscale = -100;
tornado._x = this._x - 50;
}
tornado._y = this._y - 80;
}
if (hitsInARow == rageTime) {
this.gotoAndStop('pules');
hitsInARow = 0;
}
if (this.attack.hit1.hitTest(_root.hero.bound)) {
_root.hero.gotoAndStop('hurt');
if (_root.hero._x > this._x) {
_root.hero.xSpeed = this.xSpeed + 5;
} else {
if (_root.hero._x < this._x) {
_root.hero.xSpeed = this.xSpeed - 5;
}
}
this.attack.hit.gotoAndStop(2);
this.attack.hit.hit1.gotoAndPlay(1);
_root.hero.life -= attack1Dam;
hitsInARow = 0;
}
if (this.attack.hit2.hitTest(_root.hero.bound)) {
_root.hero.gotoAndStop('hurt');
if (_root.hero._x > this._x) {
_root.hero.xSpeed = this.xSpeed + 7;
} else {
if (_root.hero._x < this._x) {
_root.hero.xSpeed = this.xSpeed - 7;
}
}
this.attack.hit.gotoAndStop(4);
_root.hero.life -= attack1Dam;
hitsInARow = 0;
}
if (this.attack.hit3.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndStop('spin');
_root.hero.grav = 10;
if (_root.hero._x > this._x) {
_root.hero.xSpeed = this.xSpeed + sendFlying;
_root.hero._xscale = -100;
} else {
if (_root.hero._x < this._x) {
_root.hero.xSpeed = this.xSpeed - sendFlying;
_root.hero._xscale = 100;
}
}
this.attack.hit.gotoAndStop(3);
_root.hero.life -= attack2Dam;
hitsInARow = 0;
}
if (life > 0) {
if (this.hitTest(_root.hero.attack.hit1)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay(1);
if (_root.hero._xscale == -100) {
xSpeed = _root.hero.xSpeed - 1;
} else {
if (_root.hero._xscale == 100) {
xSpeed = _root.hero.xSpeed + 1;
}
}
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
++hitsInARow;
}
if (this.hitTest(_root.hero.attack.hit2)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 7;
if (_root.hero._xscale == -100) {
xSpeed = _root.hero.xSpeed - 15;
} else {
if (_root.hero._xscale == 100) {
xSpeed = _root.hero.xSpeed + 15;
}
}
life -= 3;
_root.hero.attack.hit.gotoAndStop(3);
++hitsInARow;
}
if (this.hitTest(_root.hero.attack.hit3)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 11;
if (_root.hero._xscale == -100) {
xSpeed = _root.hero.xSpeed;
} else {
if (_root.hero._xscale == 100) {
xSpeed = _root.hero.xSpeed;
}
}
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
++hitsInARow;
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 10;
if (_root.difficulty == 1) {
life -= 14;
} else {
if (_root.difficulty == 2) {
life -= 12;
} else {
if (_root.difficulty == 3) {
life -= 10;
}
}
}
}
if (this.hurt._currentframe == 23 && onGround) {
this.hurt.gotoAndPlay('getup');
}
}
} else {
this.gotoAndStop(2);
this.walk.gotoAndStop(1);
}
}
if (life <= 0) {
lifebar._visible = false;
this.gotoAndStop('hurt');
if (this.hurt._currentframe < 45) {
this.hurt.gotoAndPlay('die');
}
if (this.hurt._currentframe == 170) {
if (_root.hero.bound.hitTest(_x + 100, _y, true)) {
_root.hero.activated = false;
_root.hero.xSpeed = 0;
_root.hero.gotoAndStop('taunt');
}
}
if (_root.hero.taunt._currentframe == 53) {
_root.vcam.onHero = false;
_root.vcam.setZoom = false;
}
}
if (_root.hero.taunt._currentframe == 52) {
_root.conversation.play();
_root.conversation.convoChoose = 8;
}
if (_root.hero.taunt._currentframe > 53 && _root.hero.taunt._currentframe < 78) {
_root.vcam._x -= 1.5;
}
if (_root.hero.taunt._currentframe == 78) {
this.hurt.gotoAndPlay('death');
}
if (_root.hero.life <= 0) {
this.battleCam = false;
_root.vcam.onHero = true;
_root.vcam._xscale = 100;
_root.vcam._yscale = 100;
}
}
}
movieClip 3373 {
frame 16 {
stop();
}
}
movieClip 3385 {
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
_rotation = _rotation + rotationSpeedl;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
if (_y > 700) {
this.removeMovieClip();
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance tornado of movieClip 2010 {
onClipEvent (load) {
_alpha = 100;
if (_root.difficulty == 1) {
var deathCounter = 50;
var moveSpeed = 8;
} else {
if (_root.difficulty == 2) {
var deathCounter = 100;
var moveSpeed = 12;
} else {
if (_root.difficulty == 3) {
var deathCounter = 500;
var moveSpeed = 17;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.boss.life <= 0) {
this.removeMovieClip();
}
if (_name == 'tornado') {
_visible = false;
} else {
if (_xscale == 100) {
_x = _x + moveSpeed;
} else {
if (_xscale == -100) {
_x = _x - moveSpeed;
}
}
}
if (deathCounter > 0) {
if (this._xscale == 100) {
while (this.bound.hitTest(_root.hero.bound)) {
_root.hero._x += 2;
}
}
if (this._xscale == -100) {
while (this.bound.hitTest(_root.hero.bound)) {
_root.hero._x -= 2;
}
}
}
if (deathCounter > 0) {
--deathCounter;
}
if (deathCounter == 0) {
this._alpha -= 2;
}
if (this._alpha == 0) {
this.removeMovieClip();
}
if (this._x < -780) {
deathCounter = 0;
}
if (this._x > 1630) {
deathCounter = 0;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
instance debOrig of movieClip 3385 {
onClipEvent (load) {
var spawn = 16;
var debPart;
this.gotoAndStop(random(12));
var grav = random(20);
var xSpeed = random(70) * -1;
var rotationSpeed = random(50);
}
onClipEvent (enterFrame) {
if (_y < 700) {
_rotation = _rotation + rotationSpeed;
_x = _x + xSpeed;
if (xSpeed < 0) {
xSpeed += 0.5;
}
--grav;
_y = _y - grav;
} else {
_visible = false;
}
}
}
frame 1141 {
_root.swordsUnlocked = 2;
_root.mission = 4;
_root._visible = true;
_root.gotoAndStop('cutscene4');
}
frame 1142 {
sword2ZoomScale = true;
fightingBoss2 = false;
stopAllSounds();
}
frame 1143 {
stop();
var lvl = 'Fuego Mountain';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
hero.life = 10;
hero.special = 10;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
movieClip 3389 {
}
instance of movieClip 3389 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
}
}
movieClip 3391 {
}
movieClip 3393 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 3395 {
}
movieClip 3397 {
}
instance wall of movieClip 3397 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 2995 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.attack.hit1) or this.hitTest(_root.hero.attack.hit2) or this.hitTest(_root.hero.attack.hit3)) {
this.ball.gotoAndPlay(2);
if (_root.ground.door._currentframe == 1) {
_root.ground.door.play();
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
this.ball.gotoAndPlay(2);
if (_root.ground.door._currentframe == 1) {
_root.ground.door.play();
}
}
_root.wball.waterballmc.play();
}
}
}
instance event1 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = false;
activated = true;
}
} else {
if (zoomCam > 0) {
--zoomCam;
_root.vcam._xscale += zoomCam * 3;
_root.vcam._yscale += zoomCam * 3;
}
}
}
}
instance event2 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = true;
activated = true;
}
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
movieClip 3399 {
frame 1 {
_visible = false;
}
}
instance gaurdOrig of movieClip 1584 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 1) {
var spawnNum = 4;
var spawnAm = 4;
var life = 3;
} else {
if (_root.difficulty == 2) {
var spawnNum = 5;
var spawnAm = 5;
var life = 8;
} else {
if (_root.difficulty == 3) {
var spawnNum = 6;
var spawnAm = 6;
var life = 15;
}
}
}
var deathCount = 0;
var gaurd = this;
var e = 141;
var grav = 0;
var attacking = false;
var xdist = 0;
var ydist = 0;
var eyesight = 400;
var xSpeed = 0;
var spinTime = 0;
var thrown = false;
}
onClipEvent (enterFrame) {
if (_name == 'gaurdOrig') {
_visible = false;
if (spawnNum > 0) {
--spawnNum;
gaurd = this.duplicateMovieClip('gaurd' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gaurd._x = e;
gaurd._y = 177;
e += 150;
}
} else {
_visible = true;
if (xSpeed > 0) {
this._x += xSpeed;
xSpeed -= 0.5;
}
if (xSpeed < 0) {
this._x += xSpeed;
xSpeed += 0.5;
}
if (spinTime > 0) {
--spinTime;
}
--grav;
_y = _y - grav;
onGround = false;
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -4;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 4;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.hero.activated == true) {
this.attacking = true;
} else {
this.attacking = false;
}
if (attacking == true) {
if (this._currentframe == 1) {
xdist = Math.round(_root.hero._x - this._x);
ydist = Math.round(_root.hero._y - this._y);
if (xdist < eyesight && xdist > 0 && ydist < 100 && ydist > -100) {
this._x += 4;
this._xscale = 100;
this.idle.play();
}
if (xdist > -eyesight && xdist < 0 && ydist < 100 && ydist > -100) {
this._x -= 4;
this._xscale = -100;
this.idle.play();
}
}
if (this._currentframe == 1) {
if (this.bound.hitTest(_root.hero.bound)) {
this.gotoAndStop('attack');
}
}
if (_root.hero.hitTest(this.attack2.hit)) {
if (this._xscale == 100) {
_root.hero.xSpeed += 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
if (this._xscale == -100) {
_root.hero.xSpeed -= 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
this.attack2.hiter.play();
}
}
if (_root.hero.life <= 0) {
attacking = false;
}
if (this.bound.hitTest(_root.hero.attack.hit1)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = 5;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = 5;
}
}
if (onGround == false) {
grav = grav * -1 / 2;
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
}
}
this.gotoAndStop('hurt');
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.bound.hitTest(_root.hero.attack.hit2)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 16;
} else {
this.xSpeed = 16;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 16;
} else {
this.xSpeed = -16;
}
}
if (onGround == false) {
grav = 10;
} else {
grav += 10;
}
this._y -= 15;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
spinTime = 10;
life -= 2;
_root.hero.attack.hit.gotoAndStop(3);
}
if (onGround == true && spinTime == 0) {
if (this.hurt._currentframe > 42 && this.hurt._currentframe < 52) {
if (life > 0) {
this.gotoAndStop(1);
} else {
if (life < 1) {
this.hurt.gotoAndPlay('death2');
}
}
}
}
if (this.bound.hitTest(_root.hero.attack.hit3)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 3;
} else {
this.xSpeed = 3;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 3;
} else {
this.xSpeed = -3;
}
}
this._y -= 15;
this.grav += 17;
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
} else {
this.hurt.gotoAndPlay('death2');
}
}
if (onGround == true && this.hurt._currentframe == 65) {
this.gotoAndStop(1);
}
if (this.bound.hitTest(_root.hero.jump.hit1)) {
this.grav = -20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(2);
}
if (this.bound.hitTest(_root.hero.jump.hit2)) {
this.grav = 20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(3);
}
if (this.bound.hitTest(_root.hero.jump.hit3)) {
this.grav = 8;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 20;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 20;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(4);
}
if (this.hitTest(_root.hero.attack.hit4)) {
thrown = true;
_root.hero.attack.gotoAndPlay('throw');
if (_root.hero._xscale == 100) {
this._x = _root.hero._x + 30;
this._xscale = 100;
} else {
this._x = _root.hero._x - 30;
this._xscale = -100;
}
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('grabed');
}
if (_root.hero.attack._currentframe == 334) {
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._xscale == 100) {
this.xSpeed = 50;
this.grav = 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = -50;
this.grav = 15;
}
this.hurt.gotoAndPlay('spin');
life -= 7;
}
}
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._currentframe != 2) {
this.gotoAndStop(1);
this._y -= 100;
}
}
if (thrown == true) {
if (_root.hero.attack._currentframe > 335 && _root.hero.attack._currentframe < 364) {
_root.vcam._x = this._x;
_root.vcam._y = this._y;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
}
if (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (_root.instantKill == true) {
this.removeMovieClip();
}
if (this.hitTest(_root.death) or this.hitTest(_root.death2)) {
life = 0;
this.gotoAndStop('hurt');
}
}
}
movieClip 3401 {
frame 22 {
stop();
}
}
instance music of movieClip 3401 {
onClipEvent (load) {
_visible = false;
}
}
frame 1144 {
instantKill = true;
nextFrame();
}
frame 1145 {
stop();
var lvl = 'Fuego Mountain';
vcam.onHero = true;
wall._visible = false;
hero._x = -1176;
hero._y = 800;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
instance of movieClip 3389 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
}
}
movieClip 3405 {
}
movieClip 3406 {
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance gaurdOrig of movieClip 1584 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 1) {
var spawnNum = 1;
var spawnAm = 1;
var life = 3;
} else {
if (_root.difficulty == 2) {
var spawnNum = 2;
var spawnAm = 2;
var life = 8;
} else {
if (_root.difficulty == 3) {
var spawnNum = 3;
var spawnAm = 3;
var life = 15;
}
}
}
var deathCount = 0;
var gaurd = this;
var e = 1424;
var grav = 0;
var attacking = false;
var xdist = 0;
var ydist = 0;
var eyesight = 400;
var xSpeed = 0;
var spinTime = 0;
var thrown = false;
}
onClipEvent (enterFrame) {
if (_name == 'gaurdOrig') {
_visible = false;
if (spawnNum > 0) {
--spawnNum;
gaurd = this.duplicateMovieClip('gaurd' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gaurd._x = e;
gaurd._y = 551;
e += 100;
}
} else {
_visible = true;
if (xSpeed > 0) {
this._x += xSpeed;
xSpeed -= 0.5;
}
if (xSpeed < 0) {
this._x += xSpeed;
xSpeed += 0.5;
}
if (spinTime > 0) {
--spinTime;
}
--grav;
_y = _y - grav;
onGround = false;
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -4;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 4;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.hero.activated == true) {
this.attacking = true;
} else {
this.attacking = false;
}
if (attacking == true) {
if (this._currentframe == 1) {
xdist = Math.round(_root.hero._x - this._x);
ydist = Math.round(_root.hero._y - this._y);
if (xdist < eyesight && xdist > 0 && ydist < 100 && ydist > -100) {
this._x += 4;
this._xscale = 100;
this.idle.play();
}
if (xdist > -eyesight && xdist < 0 && ydist < 100 && ydist > -100) {
this._x -= 4;
this._xscale = -100;
this.idle.play();
}
}
if (this._currentframe == 1) {
if (this.bound.hitTest(_root.hero.bound)) {
this.gotoAndStop('attack');
}
}
if (_root.hero.hitTest(this.attack2.hit)) {
if (this._xscale == 100) {
_root.hero.xSpeed += 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
if (this._xscale == -100) {
_root.hero.xSpeed -= 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
this.attack2.hiter.play();
}
}
if (_root.hero.life <= 0) {
attacking = false;
}
if (this.bound.hitTest(_root.hero.attack.hit1)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = 5;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = 5;
}
}
if (onGround == false) {
grav = grav * -1 / 2;
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
}
}
this.gotoAndStop('hurt');
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.bound.hitTest(_root.hero.attack.hit2)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 16;
} else {
this.xSpeed = 16;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 16;
} else {
this.xSpeed = -16;
}
}
if (onGround == false) {
grav = 10;
} else {
grav += 10;
}
this._y -= 15;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
spinTime = 10;
life -= 2;
_root.hero.attack.hit.gotoAndStop(3);
}
if (onGround == true && spinTime == 0) {
if (this.hurt._currentframe > 42 && this.hurt._currentframe < 52) {
if (life > 0) {
this.gotoAndStop(1);
} else {
if (life < 1) {
this.hurt.gotoAndPlay('death2');
}
}
}
}
if (this.bound.hitTest(_root.hero.attack.hit3)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 3;
} else {
this.xSpeed = 3;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 3;
} else {
this.xSpeed = -3;
}
}
this._y -= 15;
this.grav += 17;
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
} else {
this.hurt.gotoAndPlay('death2');
}
}
if (onGround == true && this.hurt._currentframe == 65) {
this.gotoAndStop(1);
}
if (this.bound.hitTest(_root.hero.jump.hit1)) {
this.grav = -20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(2);
}
if (this.bound.hitTest(_root.hero.jump.hit2)) {
this.grav = 20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(3);
}
if (this.bound.hitTest(_root.hero.jump.hit3)) {
this.grav = 8;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 20;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 20;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(4);
}
if (this.hitTest(_root.hero.attack.hit4)) {
thrown = true;
_root.hero.attack.gotoAndPlay('throw');
if (_root.hero._xscale == 100) {
this._x = _root.hero._x + 30;
this._xscale = 100;
} else {
this._x = _root.hero._x - 30;
this._xscale = -100;
}
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('grabed');
}
if (_root.hero.attack._currentframe == 334) {
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._xscale == 100) {
this.xSpeed = 50;
this.grav = 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = -50;
this.grav = 15;
}
this.hurt.gotoAndPlay('spin');
life -= 7;
}
}
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._currentframe != 2) {
this.gotoAndStop(1);
this._y -= 100;
}
}
if (thrown == true) {
if (_root.hero.attack._currentframe > 335 && _root.hero.attack._currentframe < 364) {
_root.vcam._x = this._x;
_root.vcam._y = this._y;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
}
if (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (_root.instantKill == true) {
this.removeMovieClip();
}
if (this.hitTest(_root.death) or this.hitTest(_root.death2)) {
life = 0;
this.gotoAndStop('hurt');
}
}
}
frame 1146 {
instantKill = true;
nextFrame();
}
frame 1147 {
stop();
var lvl = 'Fuego Mountain';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
instance of movieClip 2855 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 3409 {
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 16;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 10;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 18;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 15;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 10;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 10;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 10;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 10;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 10;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.15;
cool = 10;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
}
movieClip 3411 {
}
instance wall of movieClip 3411 {
onClipEvent (load) {
_visible = false;
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
instance event1 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = false;
activated = true;
}
} else {
if (zoomCam > 0) {
--zoomCam;
_root.vcam._xscale += zoomCam * 3;
_root.vcam._yscale += zoomCam * 3;
}
}
}
}
instance event2 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = true;
activated = true;
}
}
}
}
frame 1148 {
instantKill = true;
nextFrame();
}
frame 1149 {
stop();
var lvl = 'Fuego Mountain';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
instance of movieClip 2855 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 3415 {
}
movieClip 3417 {
}
movieClip 3418 {
frame 1 {
thrown = false;
stop();
onEnterFrame = function () {
--grav;
_y = _y - grav;
while (_root.ground.hitTest(_x, _y, true)) {
_y = _y - 1;
grav = 0;
}
if (_root.ground.hitTest(_x, _y + 2, true)) {
onGround = true;
} else {
onGround = false;
}
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -4;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 4;
}
if (xSpeed > 0) {
xSpeed -= 0.5;
_x = _x + xSpeed;
}
if (xSpeed < 0) {
xSpeed += 0.5;
_x = _x + xSpeed;
}
if (life > 0 && _root.hero.life > 0) {
xdist = Math.round(_root.hero._x - this._x);
ydist = Math.round(_root.hero._y - this._y);
if (this._currentframe == 1) {
if (xdist < eyeSight && xdist > 0 && ydist < 100 && ydist > -200) {
if (xSpeed < walkSpeed) {
++xSpeed;
}
this._xscale = 100;
this.walk.play();
}
if (xdist > -eyeSight && xdist < 0 && ydist < 100 && ydist > -200) {
if (xSpeed > -walkSpeed) {
--xSpeed;
}
this._xscale = -100;
this.walk.play();
}
}
if (this._currentframe == 1) {
if (this.bound.hitTest(_root.hero.bound)) {
if (this._currentframe == 1) {
this.gotoAndStop('attack');
}
}
}
if (life > lifeOrig / 2) {
if (xdist < eyeSight && -xdist > -eyeSight) {
if (_root.hero.attack._currentframe == 39 or _root.hero.attack._currentframe == 126 or _root.hero.attack._currentframe == 223) {
if (onGround) {
this.gotoAndStop('attack');
this.attack.gotoAndPlay('hop');
}
}
}
}
if (_root.hero.hitTest(this.attack.hit)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 2.5;
} else {
if (this._xscale == -100) {
_root.hero.xSpeed = this.xSpeed - 2.5;
}
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
if (_root.difficulty == 1) {
_root.hero.life -= 0.15;
} else {
if (_root.difficulty == 2) {
_root.hero.life -= 0.25;
} else {
if (_root.difficulty == 3) {
_root.hero.life -= 0.5;
}
}
}
this.attack.hitcon.gotoAndStop(2);
this.attack.hitcon.hit1.gotoAndPlay(1);
}
if (_root.hero.hitTest(this.attack.hit2)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 5;
} else {
if (this._xscale == -100) {
_root.hero.xSpeed = this.xSpeed - 5;
}
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
if (_root.difficulty == 1) {
_root.hero.life -= 0.25;
} else {
if (_root.difficulty == 2) {
_root.hero.life -= 0.5;
} else {
if (_root.difficulty == 3) {
_root.hero.life -= 1;
}
}
}
_root.hero.life -= 1;
this.attack.hitcon.gotoAndStop(3);
this.attack.hitcon.hit2.gotoAndPlay(1);
}
if (_root.hero.hitTest(this.attack.hit3)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 9;
} else {
if (this._xscale == -100) {
_root.hero.xSpeed = this.xSpeed - 9;
}
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
_root.hero.life -= 2;
_root.hero.grav = 6;
this.attack.hitcon.gotoAndStop(4);
this.attack.hitcon.hit3.gotoAndPlay(1);
}
if (this.hitTest(_root.hero.attack.hit1)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay(1);
life -= 1;
if (_root.hero._xscale == 100) {
xSpeed = _root.hero.xSpeed + 1;
} else {
if (_root.hero._xscale == -100) {
xSpeed = _root.hero.xSpeed - 1;
}
}
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
if (!onGround) {
grav = grav / 2 + 3;
}
}
if (this.hitTest(_root.hero.attack.hit2)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
life -= 1;
if (_root.hero._xscale == 100) {
xSpeed = _root.hero.xSpeed + 8;
} else {
if (_root.hero._xscale == -100) {
xSpeed = _root.hero.xSpeed - 8;
}
}
grav = 7;
_root.hero.attack.hit.gotoAndStop(3);
}
if (this.hitTest(_root.hero.attack.hit3)) {
_y = _y - 3;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
life -= 1;
if (_root.hero._xscale == 100) {
xSpeed = _root.hero.xSpeed + 1;
} else {
if (_root.hero._xscale == -100) {
xSpeed = _root.hero.xSpeed - 1;
}
}
grav = 15;
_root.hero.attack.hit.gotoAndStop(4);
}
if (onGround) {
if (this.hurt._currentframe > 12 && this.hurt._currentframe < 29) {
this.hurt.gotoAndPlay('recover');
}
}
if (this.bound.hitTest(_root.hero.jump.hit1)) {
this.grav = -20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(2);
}
if (this.bound.hitTest(_root.hero.jump.hit2)) {
this.grav = 20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(3);
}
if (this.bound.hitTest(_root.hero.jump.hit3)) {
this.grav = 8;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 20;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 20;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(4);
}
if (this.hitTest(_root.hero.attack.hit4)) {
thrown = true;
_root.hero.attack.gotoAndPlay('throw');
if (_root.hero._xscale == 100) {
this._x = _root.hero._x + 30;
this._xscale = 100;
} else {
this._x = _root.hero._x - 30;
this._xscale = -100;
}
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('grabed');
}
if (_root.hero.attack._currentframe == 334) {
if (this.hurt._currentframe > 83 && this.hurt._currentframe < 115) {
if (_root.hero._xscale == 100) {
this.xSpeed = 50;
this.grav = 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = -50;
this.grav = 15;
}
this.hurt.gotoAndPlay('spin');
life -= 7;
}
}
if (this.hurt._currentframe > 83 && this.hurt._currentframe < 115) {
if (_root.hero._currentframe != 2) {
this.gotoAndStop(1);
this._y -= 100;
}
}
if (thrown == true) {
if (_root.hero.attack._currentframe > 335 && _root.hero.attack._currentframe < 364) {
_root.vcam._x = this._x;
_root.vcam._y = this._y;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
}
if (this.hitTest(_root.death)) {
life = 0;
}
if (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (life <= 0) {
this.gotoAndStop('hurt');
if (hurt._currentframe < 40) {
this.hurt.gotoAndPlay('death');
}
}
};
}
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
}
instance of movieClip 3418 {
onClipEvent (load) {
var eyeSight = 600;
var walkSpeed = 6;
var grav = 0;
var xSpeed = 0;
var xdist = 0;
var ydist = 0;
var onGround = false;
var thrown = false;
if (_root.difficulty == 1) {
var life = 10;
this.bound._xscale = 100;
} else {
if (_root.difficulty == 2) {
var life = 15;
this.bound._xscale = 250;
} else {
if (_root.difficulty == 3) {
var life = 20;
this.bound._xscale = 400;
}
}
}
var lifeOrig = life;
}
}
instance gaurdOrig of movieClip 1584 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 1) {
var spawnNum = 2;
var spawnAm = 2;
var life = 3;
} else {
if (_root.difficulty == 2) {
var spawnNum = 5;
var spawnAm = 5;
var life = 8;
} else {
if (_root.difficulty == 3) {
var spawnNum = 8;
var spawnAm = 8;
var life = 15;
}
}
}
var deathCount = 0;
var gaurd = this;
var e = -748;
var grav = 0;
var attacking = false;
var xdist = 0;
var ydist = 0;
var eyesight = 400;
var xSpeed = 0;
var spinTime = 0;
var thrown = false;
}
onClipEvent (enterFrame) {
if (_name == 'gaurdOrig') {
_visible = false;
if (spawnNum > 0) {
--spawnNum;
gaurd = this.duplicateMovieClip('gaurd' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gaurd._x = e;
gaurd._y = 532;
e += 200;
}
} else {
_visible = true;
if (xSpeed > 0) {
this._x += xSpeed;
xSpeed -= 0.5;
}
if (xSpeed < 0) {
this._x += xSpeed;
xSpeed += 0.5;
}
if (spinTime > 0) {
--spinTime;
}
--grav;
_y = _y - grav;
onGround = false;
if (_root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 2, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height / 6, true) || _root.wall.hitTest(_x + _width / 2 + 3, _y - _height, true)) {
xSpeed = -4;
}
if (_root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 2, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height / 6, true) || _root.wall.hitTest(_x - _width / 2 - 3, _y - _height, true)) {
xSpeed = 4;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
onGround = true;
}
if (_root.hero.activated == true) {
this.attacking = true;
} else {
this.attacking = false;
}
if (attacking == true) {
if (this._currentframe == 1) {
xdist = Math.round(_root.hero._x - this._x);
ydist = Math.round(_root.hero._y - this._y);
if (xdist < eyesight && xdist > 0 && ydist < 100 && ydist > -100) {
this._x += 4;
this._xscale = 100;
this.idle.play();
}
if (xdist > -eyesight && xdist < 0 && ydist < 100 && ydist > -100) {
this._x -= 4;
this._xscale = -100;
this.idle.play();
}
}
if (this._currentframe == 1) {
if (this.bound.hitTest(_root.hero.bound)) {
this.gotoAndStop('attack');
}
}
if (_root.hero.hitTest(this.attack2.hit)) {
if (this._xscale == 100) {
_root.hero.xSpeed += 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
if (this._xscale == -100) {
_root.hero.xSpeed -= 10;
_root.hero.gotoAndStop('hurt');
--_root.hero.life;
}
this.attack2.hiter.play();
}
}
if (_root.hero.life <= 0) {
attacking = false;
}
if (this.bound.hitTest(_root.hero.attack.hit1)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = 5;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = 5;
}
}
if (onGround == false) {
grav = grav * -1 / 2;
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
}
}
this.gotoAndStop('hurt');
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.bound.hitTest(_root.hero.attack.hit2)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 16;
} else {
this.xSpeed = 16;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 16;
} else {
this.xSpeed = -16;
}
}
if (onGround == false) {
grav = 10;
} else {
grav += 10;
}
this._y -= 15;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
spinTime = 10;
life -= 2;
_root.hero.attack.hit.gotoAndStop(3);
}
if (onGround == true && spinTime == 0) {
if (this.hurt._currentframe > 42 && this.hurt._currentframe < 52) {
if (life > 0) {
this.gotoAndStop(1);
} else {
if (life < 1) {
this.hurt.gotoAndPlay('death2');
}
}
}
}
if (this.bound.hitTest(_root.hero.attack.hit3)) {
if (_root.hero._xscale == 100) {
if (_root.hero.xSpeed > 0) {
this.xSpeed = _root.hero.xSpeed + 3;
} else {
this.xSpeed = 3;
}
}
if (_root.hero._xscale == -100) {
if (_root.hero.xSpeed < 0) {
this.xSpeed = _root.hero.xSpeed - 3;
} else {
this.xSpeed = -3;
}
}
this._y -= 15;
this.grav += 17;
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
if (life > 0) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin2');
} else {
this.hurt.gotoAndPlay('death2');
}
}
if (onGround == true && this.hurt._currentframe == 65) {
this.gotoAndStop(1);
}
if (this.bound.hitTest(_root.hero.jump.hit1)) {
this.grav = -20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(2);
}
if (this.bound.hitTest(_root.hero.jump.hit2)) {
this.grav = 20;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 10;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 10;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(3);
}
if (this.bound.hitTest(_root.hero.jump.hit3)) {
this.grav = 8;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 20;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 20;
}
life -= 1;
_root.hero.jump.hit.gotoAndStop(4);
}
if (this.hitTest(_root.hero.attack.hit4)) {
thrown = true;
_root.hero.attack.gotoAndPlay('throw');
if (_root.hero._xscale == 100) {
this._x = _root.hero._x + 30;
this._xscale = 100;
} else {
this._x = _root.hero._x - 30;
this._xscale = -100;
}
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('grabed');
}
if (_root.hero.attack._currentframe == 334) {
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._xscale == 100) {
this.xSpeed = 50;
this.grav = 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = -50;
this.grav = 15;
}
this.hurt.gotoAndPlay('spin');
life -= 7;
}
}
if (this.hurt._currentframe > 93 && this.hurt._currentframe < 128) {
if (_root.hero._currentframe != 2) {
this.gotoAndStop(1);
this._y -= 100;
}
}
if (thrown == true) {
if (_root.hero.attack._currentframe > 335 && _root.hero.attack._currentframe < 364) {
_root.vcam._x = this._x;
_root.vcam._y = this._y;
}
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 20;
life -= 10;
}
}
if (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (_root.instantKill == true) {
this.removeMovieClip();
}
if (this.hitTest(_root.death) or this.hitTest(_root.death2)) {
life = 0;
this.gotoAndStop('hurt');
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
frame 1150 {
instantKill = true;
stopAllSounds();
nextFrame();
}
frame 1151 {
stop();
var lvl = 'Fuego Mountain';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
mountain2._x = -95;
mountain2._y = 216;
instantKill = false;
}
movieClip 3423 {
frame 323 {
stop();
}
}
movieClip 3425 {
}
instance wall of movieClip 3425 {
onClipEvent (load) {
_visible = false;
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
movieClip 3431 {
frame 188 {
gotoAndPlay(140);
}
}
movieClip 3477 {
frame 1 {
stop();
}
frame 331 {
_parent.attacking = true;
_root.vcam.onHero = true;
_parent.battleCam = true;
_root.hero.activated = true;
_parent.gotoAndStop(2);
}
}
movieClip 3506 {
frame 1 {
stop();
}
instance hit1 of movieClip 1222 {
onClipEvent (enterFrame) {
_visible = false;
if (this.hitTest(_root.hero)) {
_root.hero.gotoAndStop('hurt');
if (_root.boss._xscale == 100) {
_root.hero.xSpeed = _root.boss.xSpeed + 3;
} else {
_root.hero.xSpeed = _root.boss.xSpeed - 3;
}
_root.hero.life -= 0.25;
}
}
}
frame 18 {
if (_parent._xscale == 100) {
_parent.xSpeed = 7;
} else {
_parent.xSpeed = -7;
}
}
instance hit2 of movieClip 1222 {
onClipEvent (enterFrame) {
_visible = false;
if (this.hitTest(_root.hero)) {
_root.hero.gotoAndStop('hurt');
if (_root.boss._xscale == 100) {
_root.hero.xSpeed = _root.boss.xSpeed + 3;
} else {
_root.hero.xSpeed = _root.boss.xSpeed - 3;
}
_root.hero.life -= 0.5;
}
}
}
frame 36 {
if (_parent._xscale == 100) {
_parent.xSpeed = 12;
} else {
_parent.xSpeed = -12;
}
}
instance hit3 of movieClip 1222 {
onClipEvent (enterFrame) {
_visible = false;
if (this.hitTest(_root.hero)) {
_root.hero.gotoAndStop('hurt');
if (_root.difficulty == 3) {
_root.hero.hurt.gotoAndStop('spin');
_root.hero.activated = false;
_root.hero._xscale = _root.boss._xscale * -1;
}
if (_root.boss._xscale == 100) {
_root.hero.xSpeed = _root.boss.xSpeed + 7;
} else {
_root.hero.xSpeed = _root.boss.xSpeed - 7;
}
if (_root.difficutly == 1) {
} else {
_root.hero.grav = 20;
}
_root.hero.life -= 1;
}
}
}
frame 160 {
gotoAndStop(1);
}
}
movieClip 3513 {
frame 1 {
if (_root.difficulty == 3) {
_visible = false;
}
}
}
movieClip 3514 {
frame 12 {
_root.telsmoke.spawn = true;
}
frame 27 {
stop();
}
}
movieClip 3544 {
frame 20 {
_parent.gotoAndStop(2);
}
frame 21 {
stopAllSounds();
}
frame 210 {
stop();
_root.vcam.onHero = true;
_root.hero.activated = true;
}
frame 466 {
stop();
_root.lvlscreen.gotoAndPlay('endlvl');
}
}
movieClip 3545 {
frame 1 {
stop();
}
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
instance lifebar of movieClip 3169 {
onClipEvent (load) {
var percent = 0;
var life = _root.boss.lifeOrig;
}
onClipEvent (enterFrame) {
percent = (_root.boss.life / life) * 100;
this.bar._xscale = percent;
if (_parent._xscale == 100) {
this._xscale = 100;
} else {
this._xscale = -100;
}
if (_parent._currentframe == 3) {
_visible = false;
} else {
if (_parent._currentframe == 2) {
_visible = true;
}
}
}
}
}
instance boss of movieClip 3545 {
onClipEvent (load) {
var grav = 0;
var battleCam = false;
var attacking = false;
var xSpeed = 0;
var grav = 0;
var xdist = 0;
var ydist = 0;
if (_root.difficulty == 1) {
var life = 50;
var distance = 600;
this.bound._xscale -= 100;
var nothing = 300;
} else {
if (_root.difficulty == 2) {
var life = 60;
var distance = 550;
this.bound._xscale -= 50;
var nothing = 200;
} else {
if (_root.difficulty == 3) {
var life = 70;
var distance = 300;
var nothing = 100;
}
}
}
lifeOrig = life;
var oktoshoot = false;
var onGround = false;
var nothingOrig = nothing;
}
onClipEvent (enterFrame) {
--grav;
_y = _y - grav;
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y + 2, true)) {
onGround = true;
} else {
onGround = false;
}
if (xSpeed > 0) {
xSpeed -= 0.5;
_x = _x + xSpeed;
}
if (xSpeed < 0) {
xSpeed += 0.5;
_x = _x + xSpeed;
}
if (attacking == true && _root.hero.life > 0) {
if (this.attack._currentframe == 1) {
if (nothing > 0) {
--nothing;
}
if (nothing == 0) {
this.gotoAndStop('teleport');
}
} else {
nothing = nothingOrig;
}
if (_root.hero._x < this._x) {
this._xscale = -100;
} else {
if (_root.hero._x > this._x) {
this._xscale = 100;
}
}
if (_root.hero.bound.hitTest(this.bound)) {
if (this.attack._currentframe == 1) {
this.attack.play();
}
}
xdist = this._x - _root.hero._x;
ydist = this._y - _root.hero._y;
if (battleCam == true) {
if (xdist < 200 && xdist > -200) {
} else {
_root.vcam.setZoom = false;
_root.vcam._xscale = xdist / 3;
_root.vcam._yscale = xdist / 3;
}
}
if (this.attack._currentframe == 1) {
if (xdist > distance) {
this.gotoAndStop('teleport');
}
if (xdist < -distance) {
this.gotoAndStop('teleport');
}
}
if (this.teleport._currentframe > 18) {
if (_root.hero._x > this._x) {
this._x += 10;
}
if (_root.hero._x < this._x) {
this._x -= 10;
}
if (this.bound.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.telsmoke.spawn = true;
}
}
if (life > 0) {
if (this.hitTest(_root.hero.attack.hit1)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay(1);
if (_root.hero._xscale == -100) {
xSpeed = _root.hero.xSpeed - 1;
} else {
if (_root.hero._xscale == 100) {
xSpeed = _root.hero.xSpeed + 1;
}
}
life -= 1;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
}
if (this.hitTest(_root.hero.attack.hit2)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
grav = 7;
if (_root.hero._xscale == -100) {
xSpeed = _root.hero.xSpeed - 15;
} else {
if (_root.hero._xscale == 100) {
xSpeed = _root.hero.xSpeed + 15;
}
}
life -= 3;
_root.hero.attack.hit.gotoAndStop(3);
}
if (this.hitTest(_root.hero.attack.hit3)) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay('spin');
if (_root.hero._xscale == -100) {
xSpeed = _root.hero.xSpeed - 2;
} else {
if (_root.hero._xscale == 100) {
xSpeed = _root.hero.xSpeed + 2;
}
}
life -= 1;
_root.hero.attack.hit.gotoAndStop(4);
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
if (_root.wball.waterballmc.xSpeed < 0) {
this.xSpeed = -10;
} else {
this.xSpeed = 10;
}
this.gotoAndStop('hurt');
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
this.gotoAndStop('hurt');
grav = 10;
if (_root.difficulty == 1) {
life -= 14;
} else {
if (_root.difficulty == 2) {
life -= 12;
} else {
if (_root.difficulty == 3) {
life -= 10;
}
}
}
}
}
}
if (_root.hero.life <= 0) {
this.battleCam = false;
_root.vcam.onHero = true;
_root.vcam._xscale = 100;
_root.vcam._yscale = 100;
}
if (this.life <= 0) {
this.gotoAndStop('hurt');
if (this.hurt._currentframe < 21) {
this.hurt.gotoAndPlay('death');
}
}
if (this.hurt._currentframe == 21) {
xSpeed = 0;
this.battleCam = false;
_root.vcam.onHero = false;
_root.vcam._x = 109;
_root.vcam._y = 449;
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
_root.hero.activated = false;
this._x = 119;
this._y = 458;
_root.hero._x = 614;
_root.hero._y = 411;
}
if (this.hurt._currentframe == 210) {
if (this.bound.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
_root.hero.gotoAndStop('taunt');
_root.hero.xSpeed = 0;
_root.hero._x = this._x + 100;
_root.hero._xscale = -100;
}
}
if (_root.hero.taunt._currentframe > 53 && _root.hero.taunt._currentframe < 78) {
_root.vcam.onHero = false;
_root.vcam._x -= 1.5;
}
if (_root.hero.taunt._currentframe == 52) {
_root.conversation.convoChoose = 11;
_root.conversation.play();
}
if (_root.hero.taunt._currentframe == 78) {
this.hurt.play();
}
}
}
instance of movieClip 1444 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
}
if (_root.ground._currentframe == 322) {
_root.conversation.convoChoose = 10;
_root.conversation.play();
}
}
}
movieClip 3547 {
frame 60 {
this.removeMovieClip();
}
}
instance smokeOrig of movieClip 3547 {
onClipEvent (load) {
var xSpeed = 0;
var xSpeedDefult = 0;
var ySpeed = random(5) - random(5);
var newsmoke;
_alpha = 100;
if (_root.difficulty == 1) {
var maxSpeed = 5;
var increaseSpeed = 0.25;
} else {
if (_root.difficulty == 2) {
var maxSpeed = 10;
var increaseSpeed = 0.5;
} else {
if (_root.difficulty == 3) {
var maxSpeed = 20;
var increaseSpeed = 1;
}
}
}
this._xscale = _root.boss._xscale;
}
onClipEvent (enterFrame) {
if (_name == 'smokeOrig') {
_visible = false;
if (_root.boss.attack._currentframe == 81) {
xSpeed = xSpeedDefult;
}
if (_root.boss.attack._currentframe > 98 && _root.boss.attack._currentframe < 154) {
if (xSpeed < maxSpeed) {
xSpeed += increaseSpeed;
}
newsmoke = this.duplicateMovieClip('smoke' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newsmoke._x = _root.boss._x;
newsmoke._y = _root.boss._y - 80;
}
} else {
if (_root.boss._xscale == 100) {
_x = _x + _root.smokeOrig.xSpeed;
} else {
if (_root.boss._xscale == -100) {
_x = _x - _root.smokeOrig.xSpeed;
}
}
_y = _y + ySpeed;
if (_root.hero.hitTest(this)) {
if (_root.hero._x < _root.boss._x) {
_root.hero.xSpeed = _root.smokeOrig.xSpeed * -1;
} else {
_root.hero.xSpeed = _root.smokeOrig.xSpeed;
}
}
}
}
}
movieClip 3561 {
frame 57 {
this.removeMovieClip();
stop();
}
}
instance telsmoke of movieClip 3561 {
onClipEvent (load) {
var telsmokenew;
var spawn = false;
}
onClipEvent (enterFrame) {
if (_name == 'telsmoke') {
_visible = false;
stop();
if (spawn == true) {
telsmokenew = this.duplicateMovieClip('telsmoke' + _root.getNextHighestDepth, _root.getNextHighestDepth());
telsmokenew._x = _root.boss._x;
telsmokenew._y = _root.boss._y;
spawn = false;
}
} else {}
}
}
frame 1152 {
_root.mission = 5;
_root.swordsUnlocked = 3;
_root._visible = true;
_root.gotoAndStop('cutscene5');
}
frame 1153 {
sword2ZoomScale = true;
fightingBoss2 = false;
stopAllSounds();
}
frame 1154 {
_root.mission = 5;
stop();
var lvl = 'Betrayal';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
hero.life = 10;
hero.special = 10;
instantKill = false;
}
instance of movieClip 796 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 2);
}
}
instance wall of movieClip 2821 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 2831 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 2829 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
movieClip 3565 {
frame 30 {
stop();
}
}
instance music of movieClip 3565 {
onClipEvent (load) {
_visible = false;
}
}
frame 1155 {
instantKill = true;
nextFrame();
}
frame 1156 {
_root.mission = 5;
stop();
var lvl = 'Betrayal';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
instantKill = false;
}
instance mountain2 of movieClip 796 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 3568 {
}
movieClip 3570 {
}
instance wall of movieClip 3570 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 3418 {
onClipEvent (load) {
var eyeSight = 600;
var walkSpeed = 6;
var grav = 0;
var xSpeed = 0;
var xdist = 0;
var ydist = 0;
var onGround = false;
var thrown = false;
if (_root.difficulty == 1) {
var life = 10;
this.bound._xscale = 100;
} else {
if (_root.difficulty == 2) {
var life = 15;
this.bound._xscale = 250;
} else {
if (_root.difficulty == 3) {
var life = 20;
this.bound._xscale = 400;
}
}
}
var lifeOrig = life;
}
}
instance of movieClip 3418 {
onClipEvent (load) {
var eyeSight = 600;
var walkSpeed = 6;
var grav = 0;
var xSpeed = 0;
var xdist = 0;
var ydist = 0;
var onGround = false;
var thrown = false;
if (_root.difficulty == 1) {
var life = 10;
this.bound._xscale = 100;
} else {
if (_root.difficulty == 2) {
var life = 15;
this.bound._xscale = 250;
} else {
if (_root.difficulty == 3) {
var life = 20;
this.bound._xscale = 400;
}
}
}
var lifeOrig = life;
}
}
instance of movieClip 3418 {
onClipEvent (load) {
var eyeSight = 600;
var walkSpeed = 6;
var grav = 0;
var xSpeed = 0;
var xdist = 0;
var ydist = 0;
var onGround = false;
var thrown = false;
if (_root.difficulty == 1) {
var life = 10;
this.bound._xscale = 100;
} else {
if (_root.difficulty == 2) {
var life = 15;
this.bound._xscale = 250;
} else {
if (_root.difficulty == 3) {
var life = 20;
this.bound._xscale = 400;
}
}
}
var lifeOrig = life;
}
}
instance of movieClip 3418 {
onClipEvent (load) {
var eyeSight = 600;
var walkSpeed = 6;
var grav = 0;
var xSpeed = 0;
var xdist = 0;
var ydist = 0;
var onGround = false;
var thrown = false;
if (_root.difficulty == 1) {
var life = 10;
this.bound._xscale = 100;
} else {
if (_root.difficulty == 2) {
var life = 15;
this.bound._xscale = 250;
} else {
if (_root.difficulty == 3) {
var life = 20;
this.bound._xscale = 400;
}
}
}
var lifeOrig = life;
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
frame 1157 {
instantKill = true;
nextFrame();
}
frame 1158 {
stop();
vcam.onHero = true;
wall._visible = false;
hero._x = _root.sPoint._x;
hero._y = _root.sPoint._y;
instantKill = false;
}
instance mountain2 of movieClip 796 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 3574 {
}
movieClip 3576 {
}
instance wall of movieClip 3576 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 3418 {
onClipEvent (load) {
var eyeSight = 600;
var walkSpeed = 6;
var grav = 0;
var xSpeed = 0;
var xdist = 0;
var ydist = 0;
var onGround = false;
var thrown = false;
if (_root.difficulty == 1) {
var life = 10;
this.bound._xscale = 100;
} else {
if (_root.difficulty == 2) {
var life = 15;
this.bound._xscale = 250;
} else {
if (_root.difficulty == 3) {
var life = 20;
this.bound._xscale = 400;
}
}
}
var lifeOrig = life;
}
}
instance of movieClip 3418 {
onClipEvent (load) {
var eyeSight = 600;
var walkSpeed = 6;
var grav = 0;
var xSpeed = 0;
var xdist = 0;
var ydist = 0;
var onGround = false;
var thrown = false;
if (_root.difficulty == 1) {
var life = 10;
this.bound._xscale = 100;
} else {
if (_root.difficulty == 2) {
var life = 15;
this.bound._xscale = 250;
} else {
if (_root.difficulty == 3) {
var life = 20;
this.bound._xscale = 400;
}
}
}
var lifeOrig = life;
}
}
instance of movieClip 3418 {
onClipEvent (load) {
var eyeSight = 600;
var walkSpeed = 6;
var grav = 0;
var xSpeed = 0;
var xdist = 0;
var ydist = 0;
var onGround = false;
var thrown = false;
if (_root.difficulty == 1) {
var life = 10;
this.bound._xscale = 100;
} else {
if (_root.difficulty == 2) {
var life = 15;
this.bound._xscale = 250;
} else {
if (_root.difficulty == 3) {
var life = 20;
this.bound._xscale = 400;
}
}
}
var lifeOrig = life;
}
}
instance of movieClip 3418 {
onClipEvent (load) {
var eyeSight = 600;
var walkSpeed = 6;
var grav = 0;
var xSpeed = 0;
var xdist = 0;
var ydist = 0;
var onGround = false;
var thrown = false;
if (_root.difficulty == 1) {
var life = 10;
this.bound._xscale = 100;
} else {
if (_root.difficulty == 2) {
var life = 15;
this.bound._xscale = 250;
} else {
if (_root.difficulty == 3) {
var life = 20;
this.bound._xscale = 400;
}
}
}
var lifeOrig = life;
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
instance of movieClip 2961 {
onClipEvent (enterFrame) {
if (_visible == true) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
}
}
frame 1159 {
instantKill = true;
nextFrame();
}
frame 1160 {
stop();
vcam.onHero = true;
wall._visible = false;
hero._x = _root.sPoint._x;
hero._y = _root.sPoint._y;
instantKill = false;
}
instance mountain2 of movieClip 796 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 3579 {
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.05;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.1;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.05;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.1;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.05;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.1;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.05;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.1;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.05;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.1;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.05;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.1;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.05;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.1;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.05;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.1;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
instance of movieClip 3405 {
onClipEvent (load) {
if (_root.difficulty == 1) {
fallSpeed = 0.05;
cool = 50;
} else {
if (_root.difficulty == 2) {
fallSpeed = 0.1;
cool = 25;
} else {
if (_root.difficulty == 3) {
fallSpeed = 0.12;
cool = 17;
}
}
}
var fallfall = 0;
var falling = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bound)) {
falling = true;
}
if (falling == true) {
--cool;
if (cool <= 0) {
fallfall += fallSpeed;
_y = _y + fallfall;
}
}
}
}
}
movieClip 3581 {
}
instance wall of movieClip 3581 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance event1 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = false;
activated = true;
}
} else {
if (zoomCam > 0) {
--zoomCam;
_root.vcam._xscale += zoomCam * 3;
_root.vcam._yscale += zoomCam * 3;
}
}
}
}
instance event2 of movieClip 1444 {
onClipEvent (load) {
_visible = false;
var activated = false;
var zoomCam = 10;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.vcam.setZoom = true;
activated = true;
}
}
}
}
frame 1161 {
instantKill = true;
stopAllSounds();
nextFrame();
}
frame 1162 {
stop();
vcam.onHero = true;
wall._visible = false;
hero._x = _root.sPoint._x;
hero._y = _root.sPoint._y;
instantKill = false;
}
movieClip 3585 {
}
movieClip 3587 {
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
instance of movieClip 1444 {
onClipEvent (load) {
_visible = false;
activated = false;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
_root.conversation.convoChoose = 12;
if (_root.conversation._currentframe == 1) {
_root.conversation.play();
}
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
activated = true;
}
}
}
}
movieClip 3595 {
frame 160 {
gotoAndPlay(127);
}
}
movieClip 3625 {
frame 1 {
stop();
}
frame 271 {
_root.hero.activated = true;
_root.vcam.onHero = true;
_root.boss.battleCam = true;
_parent.gotoAndStop(2);
}
}
movieClip 3653 {
frame 1 {
stop();
}
frame 10 {
gotoAndStop(1);
}
frame 19 {
gotoAndStop(1);
}
frame 29 {
gotoAndStop(1);
}
frame 38 {
gotoAndStop(1);
}
}
movieClip 3772 {
frame 1 {
stop();
}
frame 14 {
if (_parent._xscale == 100) {
_parent.xSpeed = 10;
} else {
_parent.xSpeed = -10;
}
}
frame 37 {
if (_parent._xscale == 100) {
_parent.xSpeed = 13;
} else {
_parent.xSpeed = -13;
}
}
frame 71 {
if (_parent._xscale == 100) {
_parent.xSpeed = 15;
} else {
_parent.xSpeed = -15;
}
}
frame 106 {
if (_root.difficulty == 1) {
this.gotoAndPlay(178);
}
}
frame 107 {
if (_parent._xscale == 100) {
_parent.xSpeed = 10;
} else {
_parent.xSpeed = -10;
}
}
frame 140 {
if (_root.difficulty == 2) {
this.gotoAndPlay(178);
}
}
frame 141 {
if (_parent._xscale == 100) {
_parent.xSpeed = 10;
} else {
_parent.xSpeed = -10;
}
}
frame 144 {
if (_parent._xscale == 100) {
_parent.xSpeed = 10;
} else {
_parent.xSpeed = -10;
}
}
frame 147 {
if (_parent._xscale == 100) {
_parent.xSpeed = 10;
} else {
_parent.xSpeed = -10;
}
}
frame 151 {
if (_parent._xscale == 100) {
_parent.xSpeed = 10;
} else {
_parent.xSpeed = -10;
}
}
frame 155 {
if (_parent._xscale == 100) {
_parent.xSpeed = 10;
} else {
_parent.xSpeed = -10;
}
}
frame 202 {
if (_root.difficulty == 1) {
this.gotoAndStop(1);
}
}
frame 237 {
this.gotoAndStop(1);
}
frame 247 {
gotoAndPlay(238);
}
}
movieClip 3786 {
frame 172 {
stop();
_root.vcam.onHero = true;
_root.hero.activated = true;
}
frame 353 {
stop();
_root.lvlscreen.gotoAndPlay('endlvl');
}
}
movieClip 3787 {
frame 1 {
stop();
}
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
instance bound2 of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
frame 2 {
stop();
attacking = true;
}
frame 3 {
stop();
}
}
instance boss of movieClip 3787 {
onClipEvent (load) {
damageColorOrig = new Color(_root.boss);
damageColor = new Object();
var grav = 0;
var battleCam = false;
var attacking = false;
var xSpeed = 0;
var grav = 0;
var xdist = 0;
var ydist = 0;
if (_root.difficulty == 1) {
var life = 30;
var distance = 600;
this.bound._xscale -= 100;
var nothing = 400;
var dam1 = 0.15;
var hurtAnime = 20;
var timeTillRun = 200;
} else {
if (_root.difficulty == 2) {
var life = 40;
var distance = 550;
this.bound._xscale -= 40;
var nothing = 300;
var dam1 = 0.25;
var hurtAnime = 15;
var timeTillRun = 150;
} else {
if (_root.difficulty == 3) {
var life = 50;
var distance = 300;
var nothing = 200;
this.bound._xscale += 50;
var dam1 = 0.25;
var hurtAnime = 12;
var timeTillRun = 100;
}
}
}
var timeTillRunOrig = timeTillRun;
var hurtAnimeOrig = hurtAnime;
var counthurt = false;
lifeOrig = life;
var oktoshoot = false;
var onGround = false;
var nothingOrig = nothing;
}
onClipEvent (enterFrame) {
--grav;
_y = _y - grav;
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y + 2, true)) {
onGround = true;
} else {
onGround = false;
}
if (xSpeed > 0) {
xSpeed -= 0.5;
_x = _x + xSpeed;
}
if (xSpeed < 0) {
xSpeed += 0.5;
_x = _x + xSpeed;
}
if (this._x < -624) {
this._x = -624;
}
if (this._x > 1357) {
this._x = 1357;
}
if (attacking == true && _root.hero.life > 0 && this.life > 0) {
if (this.attack._currentframe == 1) {
if (nothing > 0) {
--nothing;
}
if (nothing == 0) {
}
} else {
nothing = nothingOrig;
}
if (_root.difficulty == 3) {
if (_root.hero._x < this._x) {
this._xscale = -100;
} else {
if (_root.hero._x > this._x) {
this._xscale = 100;
}
}
} else {
if (this.attack._currentframe == 1 or this.attack._currentframe == 37 or this.attack._currentframe == 70 or this.attack._currentframe == 107 or this.attack._currentframe == 141 or this.attack._currentframe == 184 or this.attack._currentframe == 203) {
if (_root.hero._x < this._x) {
this._xscale = -100;
} else {
if (_root.hero._x > this._x) {
this._xscale = 100;
}
}
}
}
if (_root.hero.bound.hitTest(this.bound)) {
if (this.attack._currentframe == 1) {
this.attack.play();
}
}
xdist = this._x - _root.hero._x;
ydist = this._y - _root.hero._y;
if (battleCam == true) {
if (xdist < 200 && xdist > -200) {
} else {
_root.vcam.setZoom = false;
_root.vcam._xscale = xdist / 3;
_root.vcam._yscale = xdist / 3;
}
}
if (_root.hero.bound.hitTest(this.attack.hit1)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 3;
} else {
_root.hero.xSpeed = this.xSpeed - 3;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
if (_root.hero.onGround == false) {
_root.hero.grav += 5;
}
this.attack.hitcon.gotoAndPlay('hit1');
_root.hero.life -= dam1;
}
if (_root.hero.bound.hitTest(this.attack.hit2)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 5;
} else {
_root.hero.xSpeed = this.xSpeed - 5;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
_root.hero.grav += 14;
this.attack.hitcon.gotoAndPlay('hit3');
_root.hero.life -= dam1;
}
if (_root.hero.bound.hitTest(this.attack.hit3)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 15;
} else {
_root.hero.xSpeed = this.xSpeed - 15;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndStop('spin');
if (this._xscale == 100) {
_root.hero._xscale = -100;
} else {
_root.hero._xscale = 100;
}
_root.hero.activated = false;
_root.hero.grav += 12;
this.attack.hitcon.gotoAndPlay('hit4');
_root.hero.life -= dam1 + dam1;
}
if (_root.hero.bound.hitTest(this.attack.hit4)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 0.5;
} else {
_root.hero.xSpeed = this.xSpeed - 0.5;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
if (_root.hero.onGround == false) {
_root.hero.grav += 5;
}
this.attack.hitcon.gotoAndPlay('hit1');
_root.hero.life -= dam1 / 2;
}
if (_root.hero.bound.hitTest(this.attack.hit5)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 7;
} else {
_root.hero.xSpeed = this.xSpeed - 7;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
if (_root.hero.onGround == false) {
_root.hero.grav += 5;
}
this.attack.hitcon.gotoAndPlay('hit1');
_root.hero.life -= dam1;
}
if (this.bound2.hitTest(_root.hero.attack.hit1)) {
counthurt = true;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
life -= 1;
}
if (this.bound2.hitTest(_root.hero.attack.hit2)) {
counthurt = true;
_root.hero.attack.hit.gotoAndStop(3);
life -= 2;
}
if (this.bound2.hitTest(_root.hero.attack.hit3)) {
_root.hero.attack.hit.gotoAndStop(4);
counthurt = true;
life -= 1;
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
life -= 4;
counthurt = true;
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
life -= 5;
counthurt = true;
}
if (counthurt == true) {
--hurtAnime;
this.attack.stop();
damageColor = {'ra': '0', 'rb': '255', 'ga': '0', 'gb': '255', 'ba': '0', 'bb': '255', 'aa': '100', 'ab': '0'};
damageColorOrig.setTransform(damageColor);
}
if (hurtAnime == 0) {
counthurt = false;
hurtAnime = hurtAnimeOrig;
this.attack.play();
damageColor = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0', 'aa': '100', 'ab': '0'};
damageColorOrig.setTransform(damageColor);
}
if (this.attack._currentframe == 1) {
--timeTillRun;
}
if (timeTillRun == 1) {
this.attack.gotoAndPlay('run');
timeTillRun = timeTillRunOrig;
}
if (this.attack._currentframe == 238) {
if (this._xscale == 100) {
this.xSpeed = 15;
} else {
this.xSpeed = -15;
}
}
if (this.attack._currentframe >= 238) {
if (this._xscale == 100) {
if (this._x > _root.hero._x) {
this.attack.gotoAndStop(1);
}
}
if (this._xscale == -100) {
if (this._x < _root.hero._x) {
this.attack.gotoAndStop(1);
}
}
if (this.bound.hitTest(_root.hero.bound)) {
this.attack.gotoAndPlay(1);
}
}
}
if (_root.hero.life <= 0) {
this.battleCam = false;
_root.vcam.onHero = true;
_root.vcam._xscale = 100;
_root.vcam._yscale = 100;
}
if (this.life <= 0) {
if (this._currentframe == 2) {
this.xSpeed = 0;
stopAllSounds();
damageColor = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0', 'aa': '100', 'ab': '0'};
damageColorOrig.setTransform(damageColor);
this._x = 367;
this._y = 211;
_root.hero._x = _root.sPoint._x;
_root.hero._y = _root.sPoint._y;
_root.hero.activated = false;
this.battleCam = false;
_root.vcam.setZoom = false;
_root.vcam.onHero = false;
_root.vcam._x = this._x;
_root.vcam._y = this._y - 50;
_root.vcam._xscale = 65;
_root.vcam._yscale = 65;
this.gotoAndStop('death');
this._xscale = 100;
}
}
if (_root.hero.hitTest(this)) {
if (this.hurt._currentframe == 172) {
_root.hero.activated = false;
_root.hero.gotoAndStop('taunt');
_root.hero.xSpeed = 0;
_root.hero._x = this._x + 100;
}
}
if (_root.hero.taunt._currentframe == 52) {
_root.conversation.play();
_root.conversation.convoChoose = 13;
}
if (_root.hero.taunt._currentframe == 78) {
this.hurt.play();
}
if (_root.hero.taunt._currentframe > 53 && _root.hero.taunt._currentframe < 78) {
_root.vcam.onHero = false;
_root.vcam._x -= 1.5;
}
}
}
instance of movieClip 3169 {
onClipEvent (load) {
var percent = 0;
var life = _root.boss.lifeOrig;
}
onClipEvent (enterFrame) {
this._x = _root.boss._x;
this._y = _root.boss._y - 180;
if (_root.boss._currentframe == 1 or _root.boss._currentframe == 3) {
_visible = false;
} else {
_visible = true;
}
percent = (_root.boss.life / life) * 100;
this.bar._xscale = percent;
}
}
frame 1163 {
sword2ZoomScale = true;
fightingBoss2 = false;
stopAllSounds();
_root.nextFrame();
}
frame 1164 {
_root.mission = 5;
stop();
var lvl = 'Armed with Wings';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
hero.life = 10;
hero.special = 10;
_root.vcam._xscale = 100;
_root.vcam._yscale = 100;
instantKill = false;
}
instance of movieClip 2855 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 3790 {
}
movieClip 3792 {
}
instance walls of movieClip 3792 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1171 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
frame 1165 {
instantKill = true;
nextFrame();
}
frame 1166 {
_root.mission = 5;
stop();
var lvl = 'Armed with Wings';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
_root.vcam._xscale = 100;
_root.vcam._yscale = 100;
instantKill = false;
}
movieClip 3795 {
}
movieClip 3797 {
}
instance wall of movieClip 3797 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1589 {
onClipEvent (load) {
_visible = false;
gotoAndStop(1117);
}
onClipEvent (enterFrame) {
if (_root.gaurdOrig.deathCount == _root.gaurdOrig.spawnAm) {
_visible = true;
this.play();
}
if (_visible == true) {
if (this._currentframe >= 20 && this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
if (_root.lvlscreen._currentframe < 214) {
_root.lvlscreen.gotoAndPlay('scenechange');
}
}
}
}
}
frame 1167 {
instantKill = true;
nextFrame();
}
frame 1168 {
_root.mission = 5;
stop();
var lvl = 'Armed with Wings';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
_root.vcam._xscale = 100;
_root.vcam._yscale = 100;
instantKill = false;
}
movieClip 3799 {
}
instance of movieClip 3799 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 3803 {
}
instance ground of movieClip 3803 {
onClipEvent (enterFrame) {
if (_root.difficulty == 1) {
this.gotoAndStop(1);
} else {
if (_root.difficulty == 2) {
this.gotoAndStop(1);
} else {
if (_root.difficulty == 3) {
this.gotoAndStop(2);
}
}
}
}
}
movieClip 3806 {
}
instance wall of movieClip 3806 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.difficulty == 1) {
this.gotoAndStop(1);
} else {
if (_root.difficulty == 2) {
this.gotoAndStop(1);
} else {
if (_root.difficulty == 3) {
this.gotoAndStop(2);
}
}
}
}
}
instance death of movieClip 2555 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
if (_root.hero.life > 0) {
_root.hero.life = 0;
}
_root.vcam.setZoom = true;
}
}
}
movieClip 3811 {
frame 181 {
gotoAndPlay(145);
}
}
movieClip 3832 {
frame 1 {
stop();
}
frame 254 {
_root.hero.activated = true;
_root.vcam.onHero = true;
_root.boss.battleCam = true;
_parent.attacking = true;
_parent.gotoAndStop(2);
}
}
movieClip 3871 {
frame 1 {
stop();
}
frame 10 {
gotoAndStop(1);
}
frame 19 {
gotoAndStop(1);
}
frame 29 {
gotoAndStop(1);
}
frame 42 {
gotoAndStop(1);
}
}
movieClip 3925 {
}
movieClip 3940 {
}
movieClip 3988 {
frame 58 {
gotoAndPlay(38);
}
}
movieClip 4023 {
frame 34 {
gotoAndPlay(18);
}
}
movieClip 4043 {
frame 1 {
stop();
}
frame 5 {
if (_parent._xscale == 100) {
_parent.xSpeed = 7;
} else {
_parent.xSpeed = -7;
}
}
frame 21 {
if (_parent._xscale == 100) {
_parent.xSpeed = 7;
} else {
_parent.xSpeed = -7;
}
}
frame 37 {
if (_parent._xscale == 100) {
_parent.xSpeed = 7;
} else {
_parent.xSpeed = -7;
}
}
frame 49 {
if (_parent._xscale == 100) {
_parent.xSpeed = 7;
} else {
_parent.xSpeed = -7;
}
}
}
movieClip 4045 {
}
movieClip 4061 {
frame 110 {
stop();
_root.vcam.onHero = true;
_root.hero.activated = true;
}
frame 192 {
_root.play();
}
}
movieClip 4062 {
frame 1 {
stop();
}
instance bound of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
instance bound2 of movieClip 1173 {
onClipEvent (load) {
_visible = false;
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance boss of movieClip 4062 {
onClipEvent (load) {
damageColorOrig = new Color(_root.boss);
damageColor = new Object();
var grav = 0;
var battleCam = false;
var attacking = false;
var xSpeed = 0;
var grav = 0;
var xdist = 0;
var ydist = 0;
if (_root.difficulty == 1) {
var life = 30;
var distance = 600;
this.bound._xscale -= 100;
var nothing = 400;
var dam1 = 0.25;
var hurtAnime = 20;
var timeTillRun = 150;
} else {
if (_root.difficulty == 2) {
var life = 40;
var distance = 550;
this.bound._xscale -= 40;
var nothing = 300;
var dam1 = 0.5;
var hurtAnime = 15;
var timeTillRun = 100;
} else {
if (_root.difficulty == 3) {
var life = 60;
var distance = 300;
var nothing = 200;
this.bound._xscale += 50;
var dam1 = 0.5;
var hurtAnime = 12;
var timeTillRun = 10;
}
}
}
var timeTillRunOrig = timeTillRun;
var hurtAnimeOrig = hurtAnime;
var counthurt = false;
lifeOrig = life;
var oktoshoot = false;
var onGround = false;
var nothingOrig = nothing;
}
onClipEvent (enterFrame) {
--grav;
_y = _y - grav;
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y + 2, true)) {
onGround = true;
} else {
onGround = false;
}
if (xSpeed > 0) {
xSpeed -= 0.5;
_x = _x + xSpeed;
}
if (xSpeed < 0) {
xSpeed += 0.5;
_x = _x + xSpeed;
}
if (_root.difficulty == 3) {
if (this._x < -689) {
this._x = -689;
}
if (this._x > 531) {
this._x = 531;
}
} else {
if (this._x < -934) {
this._x = -934;
}
if (this._x > 787) {
this._x = 787;
}
}
if (attacking == true && _root.hero.life > 0 && this.life > 0) {
if (this.attack._currentframe == 1) {
if (nothing > 0) {
--nothing;
}
if (nothing == 0) {
}
} else {
nothing = nothingOrig;
}
if (_root.difficulty == 3) {
if (_root.hero._x < this._x) {
this._xscale = -100;
} else {
if (_root.hero._x > this._x) {
this._xscale = 100;
}
}
} else {
if (this.attack._currentframe == 1 or this.attack._currentframe == 17 or this.attack._currentframe == 30 or this.attack._currentframe == 46 or this.attack._currentframe == 74) {
if (_root.hero._x < this._x) {
this._xscale = -100;
} else {
if (_root.hero._x > this._x) {
this._xscale = 100;
}
}
}
}
if (_root.hero.bound.hitTest(this.bound)) {
this.gotoAndStop('attack');
if (this.attack._currentframe == 1) {
this.attack.play();
}
}
xdist = this._x - _root.hero._x;
ydist = this._y - _root.hero._y;
if (battleCam == true) {
if (xdist < 200 && xdist > -200) {
} else {
_root.vcam.setZoom = false;
_root.vcam._xscale = xdist / 3;
_root.vcam._yscale = xdist / 3;
}
}
if (_root.hero.bound.hitTest(this.attack.hit1)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 3;
} else {
_root.hero.xSpeed = this.xSpeed - 3;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
if (_root.hero.onGround == false) {
_root.hero.grav += 5;
}
this.attack.hitcon.gotoAndPlay('hit1');
_root.hero.life -= dam1;
}
if (_root.hero.bound.hitTest(this.attack.hit2)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 3;
} else {
_root.hero.xSpeed = this.xSpeed - 3;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
if (_root.hero.onGround == false) {
_root.hero.grav += 5;
}
this.attack.hitcon.gotoAndPlay('hit2');
_root.hero.life -= dam1;
}
if (_root.hero.bound.hitTest(this.attack.hit3)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 3;
} else {
_root.hero.xSpeed = this.xSpeed - 3;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
if (_root.hero.onGround == false) {
_root.hero.grav += 5;
}
this.attack.hitcon.gotoAndPlay('hit3');
_root.hero.life -= dam1;
}
if (_root.hero.bound.hitTest(this.attack.hit4)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 3;
} else {
_root.hero.xSpeed = this.xSpeed - 3;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndPlay(1);
_root.hero.grav += 15;
this.attack.hitcon.gotoAndPlay('hit4');
_root.hero.life -= dam1;
}
if (_root.hero.bound.hitTest(this.attack.hit5)) {
if (this._xscale == 100) {
_root.hero.xSpeed = this.xSpeed + 13;
_root.hero._xscale = -100;
} else {
_root.hero.xSpeed = this.xSpeed - 13;
_root.hero._xscale = 100;
}
_root.hero.gotoAndStop('hurt');
_root.hero.hurt.gotoAndStop('spin');
_root.hero.grav += 10;
_root.hero.life -= dam1 + dam1;
_root.hero.activated = false;
this.attack.hitcon.gotoAndPlay('hit5');
}
if (this.bound2.hitTest(_root.hero.attack.hit1)) {
counthurt = true;
_root.hero.attack.hit.gotoAndStop(2);
_root.hero.attack.hit.hit1.gotoAndPlay(1);
life -= 1;
}
if (this.bound2.hitTest(_root.hero.attack.hit2)) {
counthurt = true;
_root.hero.attack.hit.gotoAndStop(3);
life -= 2;
}
if (this.bound2.hitTest(_root.hero.attack.hit3)) {
_root.hero.attack.hit.gotoAndStop(4);
counthurt = true;
life -= 1;
}
if (this.hitTest(_root.wball.waterballmc)) {
if (_root.wball.waterballmc._currentframe == 1) {
_root.wball.waterballmc.play();
this.attack.gotoAndPlay(94);
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
life -= 5;
counthurt = true;
}
if (counthurt == true) {
--hurtAnime;
this.attack.stop();
damageColor = {'ra': '0', 'rb': '255', 'ga': '0', 'gb': '255', 'ba': '0', 'bb': '255', 'aa': '100', 'ab': '0'};
damageColorOrig.setTransform(damageColor);
}
if (hurtAnime == 0) {
counthurt = false;
hurtAnime = hurtAnimeOrig;
this.attack.play();
damageColor = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0', 'aa': '100', 'ab': '0'};
damageColorOrig.setTransform(damageColor);
}
if (this.attack._currentframe == 1) {
--timeTillRun;
}
if (timeTillRun == 1) {
this.gotoAndStop('walk');
timeTillRun = timeTillRunOrig;
}
if (this._currentframe == 3) {
if (this._xscale == 100) {
this.xSpeed = 15;
} else {
this.xSpeed = -15;
}
}
if (this._currentframe == 3) {
if (this._xscale == 100) {
if (this._x > _root.hero._x) {
this.gotoAndStop('attack');
this.attack.gotoAndStop(1);
}
}
if (this._xscale == -100) {
if (this._x < _root.hero._x) {
this.gotoAndStop('attack');
this.attack.gotoAndStop(1);
}
}
if (this.bound.hitTest(_root.hero.bound)) {
this.attack.gotoAndPlay(1);
}
}
}
if (_root.hero.life <= 0) {
this.battleCam = false;
_root.vcam.onHero = true;
_root.vcam._xscale = 100;
_root.vcam._yscale = 100;
}
if (this.life <= 0) {
if (this._currentframe == 2 or this._currentframe == 3) {
this.xSpeed = 0;
stopAllSounds();
damageColor = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0', 'aa': '100', 'ab': '0'};
damageColorOrig.setTransform(damageColor);
this._x = -63;
this._y = 265;
_root.hero._x = _root.sPoint._x;
_root.hero._y = _root.sPoint._y;
_root.hero.activated = false;
this.battleCam = false;
_root.vcam.setZoom = false;
_root.vcam.onHero = false;
_root.vcam._x = this._x;
_root.vcam._y = this._y - 50;
_root.vcam._xscale = 65;
_root.vcam._yscale = 65;
this.gotoAndStop('death');
this._xscale = 100;
}
}
if (_root.hero.hitTest(this)) {
if (this.death._currentframe == 110) {
_root.hero.activated = false;
_root.hero.gotoAndStop('taunt');
_root.hero.xSpeed = 0;
_root.hero._x = this._x + 100;
}
}
if (_root.hero.taunt._currentframe == 52) {
_root.conversation.play();
_root.conversation.convoChoose = 15;
}
if (_root.hero.taunt._currentframe == 78) {
this.death.play();
}
if (_root.hero.taunt._currentframe > 53 && _root.hero.taunt._currentframe < 78) {
_root.vcam.onHero = false;
_root.vcam._x -= 1.5;
}
}
}
instance of movieClip 1444 {
onClipEvent (load) {
_visible = false;
activated = false;
}
onClipEvent (enterFrame) {
if (activated == false) {
if (this.hitTest(_root.hero.bound)) {
_root.hero.activated = false;
_root.conversation.convoChoose = 14;
if (_root.conversation._currentframe == 1) {
_root.conversation.play();
}
_root.vcam._xscale = 50;
_root.vcam._yscale = 50;
activated = true;
}
}
}
}
instance of movieClip 3169 {
onClipEvent (load) {
var percent = 0;
var life = _root.boss.lifeOrig;
}
onClipEvent (enterFrame) {
this._x = _root.boss._x;
this._y = _root.boss._y - 180;
if (_root.boss._currentframe == 1 or _root.boss._currentframe == 4) {
_visible = false;
} else {
_visible = true;
}
percent = (_root.boss.life / life) * 100;
this.bar._xscale = percent;
}
}
frame 1169 {
_root.gameClocked = true;
_root.mission = 1;
_root.sword = 1;
_root.savefile.data.sword = _root.sword;
_root.savefile.data.mission = _root.mission;
_root.savefile.data.fightingBoss2 = _root.fightingBoss2;
_root.savefile.data.swordsUnlocked = _root.swordsUnlocked;
_root.savefile.data.difficulty = _root.difficulty;
_root.savefile.data.gameClocked = _root.gameClocked;
_root.savefile.flush();
_root.play();
}
frame 1170 {
_root.gotoAndStop('cutscene6');
}
frame 1171 {
instantKill = true;
nextFrame();
}
frame 1172 {
_root.mission = 5;
stop();
var lvl = 'Credits';
vcam.onHero = true;
wall._visible = false;
hero._x = sPoint._x;
hero._y = sPoint._y;
}
movieClip 4066 {
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
stopAllSounds();
_root.gotoAndPlay('menu');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
instance sPoint of movieClip 3399 {
onClipEvent (enterFrame) {
_root.vcam.onHero = false;
_root.vcam._x = 350;
_root.vcam._y = 200;
}
}
movieClip 4070 {
}
instance wall of movieClip 4070 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 4071 {
frame 10 {
stop();
}
}
movieClip 4081 {
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('menuMenu');
}
}
movieClip 4093 {
}
// unknown tag 88 length 76
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://armorgames.com/play/2819/armed-with-wings-2', '_blank');
}
}
instance of movieClip 209 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
stopAllSounds();
_root.gotoAndPlay('menu');
}
}
frame 1223 {
stop();
}