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();
}
}
}
// unknown tag 88 length 63
movieClip 68 {
frame 1 {
onEnterFrame = function () {
urlStart = _url.indexOf('://') + 3;
urlEnd = _url.indexOf('/', urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf('.') - 1;
pfixEnd = domain.lastIndexOf('.', LastDot) + 1;
domain = domain.substring(pfixEnd, domain.length);
if (domain != '' && domain != 'armorgames.com') {
_root.gotoAndStop('fukno');
}
};
this._visible = false;
}
}
movieClip 4125 __Packages.ab3.rankz.Armor_Bot_30_En_AS1 {
#initclip
if (!_global.ab3) {
_global.ab3 = new Object();
}
if (!_global.ab3.rankz) {
_global.ab3.rankz = new Object();
}
if (!_global.ab3.rankz.Armor_Bot_30_En_AS1) {
var v1 = function () {
super();
};
ab3.rankz.Armor_Bot_30_En_AS1 = v1;
ab3.rankz.Armor_Bot_30_En_AS1 extends Object;
var v2 = v1.prototype;
v1.Encode = function (str) {
var v1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return v1.encodeArmor_Bot_30_En_AS1(str);
};
v1.Decode = function (str) {
var v1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return v1.decodeArmor_Bot_30_En_AS1(str);
};
v1.StringReplaceAll = function (source, find, replacement) {
return (source.split(find)).join(replacement);
};
v1.InitReverseChars = function () {
ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup = new Array();
var v1 = 0;
while (v1 < ab3.rankz.Armor_Bot_30_En_AS1._Chars.length) {
ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup[ab3.rankz.Armor_Bot_30_En_AS1._Chars[v1]] = v1;
++v1;
}
return true;
};
v1.UrlDecode = function (str) {
str = ab3.rankz.Armor_Bot_30_En_AS1.StringReplaceAll(str, '\\', ' ');
str = unescape(str);
return str;
};
v1.UrlEncode = function (str) {
str = escape(str);
str = ab3.rankz.Armor_Bot_30_En_AS1.StringReplaceAll(str, '\\', '%2B');
str = ab3.rankz.Armor_Bot_30_En_AS1.StringReplaceAll(str, '%20', '+');
return str;
};
v2.setArmor_Bot_30_En_AS1Str = function (str) {
this._Armor_Bot_30_En_AS1Str = str;
this._Armor_Bot_30_En_AS1Count = 0;
};
v2.readArmor_Bot_30_En_AS1 = function () {
if (!this._Armor_Bot_30_En_AS1Str) {
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
}
if (this._Armor_Bot_30_En_AS1Count >= this._Armor_Bot_30_En_AS1Str.length) {
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
}
var v2 = this._Armor_Bot_30_En_AS1Str.charCodeAt(this._Armor_Bot_30_En_AS1Count) & 255;
++this._Armor_Bot_30_En_AS1Count;
return v2;
};
v2.encodeArmor_Bot_30_En_AS1 = function (str) {
this.setArmor_Bot_30_En_AS1Str(str);
var v3 = '';
var v2 = new Array(3);
var v5 = 0;
var v4 = false;
for (;;) {
if (!(!v4 && v2[0] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput)) break;
v2[1] = this.readArmor_Bot_30_En_AS1();
v2[2] = this.readArmor_Bot_30_En_AS1();
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[0] >> 2];
if (v2[1] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) {
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[0] << 4 & 48 | v2[1] >> 4];
if (v2[2] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) {
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[1] << 2 & 60 | v2[2] >> 6];
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[2] & 63];
} else {
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[1] << 2 & 60];
v3 += '=';
v4 = true;
}
} else {
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[0] << 4 & 48];
v3 += '=';
v3 += '=';
v4 = true;
}
v5 += 4;
if (v5 >= 76) {
v3 += '\n';
v5 = 0;
}
}
return v3;
};
v2.readReverseArmor_Bot_30_En_AS1 = function () {
if (!this._Armor_Bot_30_En_AS1Str) {
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
}
while (!false) {
if (this._Armor_Bot_30_En_AS1Count >= this._Armor_Bot_30_En_AS1Str.length) {
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
}
var v2 = this._Armor_Bot_30_En_AS1Str.charAt(this._Armor_Bot_30_En_AS1Count);
++this._Armor_Bot_30_En_AS1Count;
if (ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup[v2]) {
return ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup[v2];
}
if (v2 == 'A') {
return 0;
}
}
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
};
v2.ntos = function (n) {
var v1 = n.toString(16);
if (v1.length == 1) {
v1 = '0' + v1;
}
v1 = '%' + v1;
return unescape(v1);
};
v2.decodeArmor_Bot_30_En_AS1 = function (str) {
this.setArmor_Bot_30_En_AS1Str(str);
var v3 = '';
var v2 = new Array(4);
var v4 = false;
for (;;) {
if (!(!v4 && v2[0] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput && v2[1] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput)) break;
v2[2] = this.readReverseArmor_Bot_30_En_AS1();
v2[3] = this.readReverseArmor_Bot_30_En_AS1();
v3 += this.ntos(v2[0] << 2 & 255 | v2[1] >> 4);
if (v2[2] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) {
v3 += this.ntos(v2[1] << 4 & 255 | v2[2] >> 2);
if (v2[3] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) {
v3 += this.ntos(v2[2] << 6 & 255 | v2[3]);
} else {
v4 = true;
}
} else {
v4 = true;
}
}
return v3;
};
v2.toHex = function (n) {
var v4 = '';
var v3 = true;
var v1 = 32;
while (v1 > 0) {
v1 -= 4;
var v2 = n >> v1 & 15;
if (!v3 || v2 != 0) {
v3 = false;
v4 += ab3.rankz.Armor_Bot_30_En_AS1._Digits[v2];
}
}
return (v4 == '') ? '0' : v4;
};
v2.pad = function (str, len, pad) {
var v2 = str;
var v1 = str.length;
while (v1 < len) {
v2 = pad + v2;
++v1;
}
return v2;
};
v2.encodeHex = function (str) {
var v4 = '';
var v2 = 0;
while (v2 < str.length) {
v4 += this.pad(this.toHex(str.charCodeAt(v2) & 255), 2, '0');
++v2;
}
return v4;
};
v2.decodeHex = function (str) {
var v5 = '';
var v3 = '';
var v2 = 0;
while (v2 < str.length) {
v3 += str.charAt(v2);
if (v3.length == 2) {
v5 += this.ntos(parseInt('0x' + v3));
v3 = '';
}
++v2;
}
return v5;
};
v1._EndOfInput = -1;
v1._Chars = new Array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/');
v1._CharsReverseLookupInited = ab3.rankz.Armor_Bot_30_En_AS1.InitReverseChars();
v1._Digits = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
ASSetPropFlags(ab3.rankz.Armor_Bot_30_En_AS1.prototype, null, 1);
}
#endinitclip
}
movieClip 77 {
}
movieClip 102 {
}
movieClip 113 {
}
button 118 {
on (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
movieClip 121 {
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 140 {
}
movieClip 145 {
}
movieClip 160 {
}
movieClip 167 {
}
movieClip 208 {
}
movieClip 213 {
frame 28 {
stop();
}
frame 45 {
gotoAndStop(28);
}
frame 57 {
stop();
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('storyMenu');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
stopAllSounds();
_root.gotoAndPlay('survivalMenu');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndStop('instructions');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://www.sun-studios.net', '_blank');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://armorgames.com/play/1408/armed-with-wings', '_blank');
}
}
frame 874 {
stop();
}
movieClip 220 {
frame 1 {
stop();
}
frame 70 {
stop();
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('loadMenu');
}
}
instance of movieClip 213 {
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 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('loadMenu');
}
}
frame 939 {
stop();
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('menuMenu');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.difficulty = 1;
_root.play();
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.difficulty = 2;
_root.play();
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.difficulty = 3;
_root.play();
}
}
frame 990 {
stop();
}
instance of movieClip 213 {
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 477 {
}
movieClip 558 {
frame 1596 {
_root.nextFrame();
}
}
instance of movieClip 558 {
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 607 {
}
movieClip 614 {
}
movieClip 656 {
}
movieClip 679 {
}
movieClip 681 {
}
movieClip 683 {
}
movieClip 708 {
}
movieClip 733 {
frame 270 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 591 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 700 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 751 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 884 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1214 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1318 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1402 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1523 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1569 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1618 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1688 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1737 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1886 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1937 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2022 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2125 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2211 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2274 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2489 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2624 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2706 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 2749 {
_root.nextFrame();
}
}
instance of movieClip 733 {
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_root.play();
}
}
}
frame 1083 {
stopAllSounds();
_root._visible = false;
_root.gotoAndPlay('lvl2start');
}
frame 1088 {
stop();
}
movieClip 740 {
}
movieClip 742 {
}
// unknown tag 88 length 170
movieClip 746 {
instance sbar of movieClip 740 {
onClipEvent (load) {
var percent = 0;
}
onClipEvent (enterFrame) {
percent = (_root.hero.special / 10) * 100;
_xscale = percent;
}
}
instance bar of movieClip 742 {
onClipEvent (load) {
var percent = 0;
}
onClipEvent (enterFrame) {
percent = (_root.hero.life / 10) * 100;
_xscale = percent;
}
}
}
movieClip 768 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 769 {
instance of movieClip 768 {
onClipEvent (enterFrame) {
gotoAndStop(_root.sword);
}
}
}
movieClip 796 {
instance lifebar of movieClip 746 {
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 800 {
}
movieClip 868 {
}
movieClip 871 {
}
movieClip 950 {
frame 179 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 224 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 266 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 440 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 686 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 762 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 786 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 864 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 921 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1026 {
_root.play();
}
}
instance of movieClip 950 {
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_root.play();
}
}
}
frame 1099 {
stopAllSounds();
_root._visible = false;
_root.gotoAndPlay('lvl2start');
}
frame 1107 {
stop();
}
movieClip 988 {
}
movieClip 1008 {
}
movieClip 1072 {
}
movieClip 1073 {
}
movieClip 1091 {
frame 391 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 870 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 899 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 958 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1006 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1030 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1053 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1122 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1145 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 1242 {
_root.play();
}
}
instance of movieClip 1091 {
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_root.play();
}
}
}
frame 1108 {
stopAllSounds();
_root._visible = false;
_root.gotoAndPlay('lvl5start');
}
frame 1115 {
stop();
}
movieClip 1164 {
frame 144 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 309 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 526 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 595 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 638 {
_root.gotoAndPlay('credits');
}
}
instance of movieClip 1164 {
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_root.play();
}
}
}
frame 1116 {
_root.gotoAndPlay('credits');
}
frame 1117 {
instantKill = true;
sword2ZoomScale = true;
nextFrame();
}
movieClip 1166 {
frame 1 {
play();
}
frame 18 {
stop();
}
}
instance music of movieClip 1166 {
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 800 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 1170 {
}
movieClip 1172 {
}
movieClip 1174 {
}
instance of movieClip 1174 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
instance of movieClip 1174 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
movieClip 1176 {
}
movieClip 1191 {
frame 1 {
stop();
}
}
movieClip 1200 {
frame 10 {
_parent.gotoAndStop(1);
}
}
movieClip 1208 {
frame 10 {
_parent.gotoAndStop(1);
}
}
movieClip 1209 {
frame 1 {
stop();
}
}
movieClip 1225 {
frame 1 {
_visible = false;
}
}
movieClip 1292 {
}
movieClip 1293 {
frame 48 {
stop();
}
}
movieClip 1309 {
}
movieClip 1372 {
frame 1 {
stop();
}
}
movieClip 1395 {
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 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 26 {
if (_parent._xscale == -100) {
_parent.xSpeed = -5;
}
if (_parent._xscale == 100) {
_parent.xSpeed = 5;
}
}
instance hit of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 33 {
if (_parent._xscale == -100) {
_parent.xSpeed = -5;
}
if (_parent._xscale == 100) {
_parent.xSpeed = 5;
}
}
instance hit of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 70 {
if (_parent._xscale == -100) {
_parent.xSpeed = -15;
}
if (_parent._xscale == 100) {
_parent.xSpeed = 15;
}
}
instance hit2 of movieClip 1225 {
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 1309 {
onClipEvent (load) {
this.gotoAndPlay(25);
}
}
instance of movieClip 1309 {
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 1225 {
onClipEvent (load) {
_visible = false;
}
}
}
movieClip 1436 {
frame 12 {
_parent.gotoAndStop(1);
}
frame 28 {
gotoAndPlay('spin');
}
frame 39 {
_parent.gotoAndStop(1);
}
frame 83 {
stop();
_parent._visible = false;
}
frame 114 {
stop();
}
}
movieClip 1438 {
}
movieClip 1444 {
frame 1 {
stop();
}
frame 43 {
stop();
}
}
movieClip 1445 {
frame 1 {
stop();
}
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
}
instance sf1 of movieClip 1445 {
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 1447 {
}
instance event1 of movieClip 1447 {
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 1447 {
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 1447 {
onClipEvent (load) {
_visible = false;
var activated = false;
}
onClipEvent (enterFrame) {
if (_root.sf1.hitTest(this)) {
_root.sf1.moveflag = false;
activated = true;
}
}
}
movieClip 1459 {
frame 1 {
stop();
}
}
movieClip 1532 {
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 1544 {
frame 1 {
stop();
}
}
movieClip 1583 {
frame 1 {
onEnterFrame = function () {
if (_parent.difficulty == 0) {
if (this._currentframe == 20) {
_parent.gotoAndStop(1);
}
}
};
}
instance hit of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 49 {
_parent.gotoAndStop(1);
}
}
movieClip 1585 {
}
movieClip 1586 {
frame 9 {
_parent.gotoAndStop(1);
}
}
movieClip 1587 {
frame 1 {
thrown = false;
stop();
}
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
}
instance gaurdOrig of movieClip 1587 {
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 1591 {
}
movieClip 1592 {
frame 39 {
gotoAndPlay(20);
}
}
instance of movieClip 1592 {
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 1595 {
}
movieClip 1597 {
}
movieClip 1599 {
}
movieClip 1601 {
}
movieClip 1656 {
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 1667 {
frame 18 {
_parent.gotoAndStop(1);
}
}
movieClip 1679 {
frame 22 {
_parent.gotoAndStop(1);
}
}
movieClip 1689 {
frame 12 {
_parent.gotoAndStop(1);
}
}
movieClip 1690 {
frame 1 {
stop();
}
}
movieClip 1772 {
frame 14 {
_parent.gotoAndStop(1);
}
}
movieClip 1784 {
frame 16 {
_parent.gotoAndStop(1);
}
}
movieClip 1794 {
frame 13 {
_parent.gotoAndStop(1);
}
}
movieClip 1795 {
frame 1 {
stop();
}
}
movieClip 1946 {
}
movieClip 1962 {
frame 30 {
stop();
}
}
movieClip 1974 {
frame 35 {
stop();
}
}
movieClip 2013 {
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
}
movieClip 2066 {
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 1225 {
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 1225 {
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 1225 {
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 1225 {
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 1225 {
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 1225 {
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 1225 {
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 1225 {
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 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 264 {
_parent.gotoAndStop(1);
}
instance hit4 of movieClip 1225 {
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 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 537 {
_parent.gotoAndStop(1);
}
frame 539 {
_parent.special -= 5;
}
instance hit3 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit3 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit3 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit3 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit3 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
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 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 674 {
_parent.gotoAndStop(1);
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit5 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 745 {
_parent.gotoAndStop(1);
}
}
movieClip 2076 {
}
movieClip 2103 {
frame 21 {
_parent.gotoAndStop(1);
}
}
movieClip 2106 {
}
movieClip 2107 {
frame 1 {
stop();
}
}
movieClip 2154 {
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 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 120 {
this.gotoAndPlay(40);
}
instance hit2 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 158 {
this.gotoAndPlay(40);
}
instance hit3 of movieClip 1225 {
onClipEvent (load) {
_visible = false;
}
}
frame 201 {
this.gotoAndPlay(40);
}
}
movieClip 2210 {
}
movieClip 2212 {
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 2268 {
frame 53 {
stop();
}
frame 108 {
_parent.gotoAndStop(1);
}
}
movieClip 2269 {
frame 1 {
stop();
attacking = false;
}
instance bound of movieClip 1601 {
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 2269 {
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 2272 {
frame 1 {
stop();
}
frame 34 {
this.removeMovieClip();
}
}
instance wball of movieClip 2272 {
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 2274 {
}
instance wp of movieClip 2274 {
onClipEvent (enterFrame) {
if (_name == 'wp') {
this._visible = false;
} else {
_alpha = _alpha - 2;
_xscale = _xscale - 1;
_yscale = _yscale - 1;
if (_alpha <= 2) {
removeMovieClip(this);
}
}
}
}
movieClip 2276 {
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 2276 {
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 2278 {
}
movieClip 2288 {
frame 1 {
_parent._parent.advatar.gotoAndStop('sf1');
}
frame 27 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
frame 28 {
stop();
}
}
movieClip 2304 {
frame 1 {
_parent._parent.advatar.gotoAndStop('gaurd');
}
frame 10 {
stop();
}
instance of movieClip 607 {
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 607 {
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 607 {
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 2325 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 18 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 32 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 33 {
_parent._parent.advatar.gotoAndStop('quema');
}
frame 46 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 47 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 53 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.quema.bossTitle = true;
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
frame 54 {
stop();
}
}
movieClip 2343 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 13 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 14 {
_parent._parent.advatar.gotoAndStop('quema');
}
frame 25 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 36 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 46 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 47 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 58 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 59 {
_parent._parent.advatar.gotoAndStop('quema');
}
frame 65 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 66 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 74 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 80 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent._parent._parent.gotoAndPlay('close');
_root.hero.taunt.play();
_parent.nextFrame();
}
}
}
frame 81 {
stop();
}
}
movieClip 2346 {
frame 1 {
_parent._parent.advatar.gotoAndStop('eivana');
}
frame 12 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 22 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent._parent._parent.gotoAndPlay('close');
_root.hero.activated = true;
_parent.nextFrame();
}
}
}
frame 23 {
stop();
}
}
movieClip 2359 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hawken');
}
frame 15 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 26 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.lvlscreen.gotoAndPlay('endlvl2');
_parent.nextFrame();
}
}
}
frame 27 {
stop();
}
}
movieClip 2369 {
frame 1 {
_parent._parent.advatar.gotoAndStop('vindstot');
}
frame 12 {
stop();
}
instance of movieClip 607 {
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 607 {
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 607 {
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 607 {
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 2384 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 10 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 11 {
_parent._parent.advatar.gotoAndStop('vindstot');
}
frame 28 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 29 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 43 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 44 {
_parent._parent.advatar.gotoAndStop('vindstot');
}
frame 53 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.hero.taunt.play();
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
}
movieClip 2407 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hawken');
}
frame 23 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 40 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.lvlscreen.gotoAndPlay('endlvl2');
_parent.nextFrame();
}
}
}
}
movieClip 2420 {
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 607 {
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 607 {
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 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 66 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.boss.taunt.play();
_parent.nextFrame();
}
}
}
}
movieClip 2425 {
frame 1 {
_parent._parent.advatar.gotoAndStop('smoking');
}
frame 15 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 28 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 40 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 41 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 49 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.hero.taunt.play();
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
}
movieClip 2443 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 15 {
stop();
}
instance of movieClip 607 {
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 607 {
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 607 {
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 2463 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 14 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 15 {
_parent._parent.advatar.gotoAndStop('hawken');
}
frame 27 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 28 {
_parent._parent.advatar.gotoAndStop('hero');
}
frame 40 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
}
frame 41 {
_parent._parent.advatar.gotoAndStop('hawken');
}
frame 63 {
stop();
}
instance of movieClip 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.hero.taunt.play();
_parent._parent._parent.gotoAndPlay('close');
_parent.nextFrame();
}
}
}
}
movieClip 2486 {
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 607 {
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 607 {
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 607 {
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 607 {
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 607 {
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 607 {
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 607 {
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 2517 {
frame 1 {
_parent._parent.advatar.gotoAndStop('hero');
_root.vcam.onHero = true;
}
frame 24 {
stop();
}
instance of movieClip 607 {
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 607 {
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 607 {
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 607 {
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 607 {
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 607 {
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 607 {
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 607 {
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 607 {
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 607 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_parent._parent._parent.gotoAndPlay('close');
_root.boss.death.play();
_parent.nextFrame();
}
}
}
}
movieClip 2518 {
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 2522 {
frame 11 {
stop();
}
}
movieClip 2524 {
frame 12 {
stop();
}
}
movieClip 2526 {
frame 13 {
stop();
}
}
movieClip 2528 {
frame 15 {
stop();
}
}
movieClip 2530 {
frame 18 {
stop();
}
}
movieClip 2532 {
frame 15 {
stop();
}
}
movieClip 2534 {
frame 15 {
stop();
}
}
movieClip 2536 {
frame 15 {
stop();
}
}
movieClip 2538 {
frame 13 {
stop();
}
}
movieClip 2539 {
frame 1 {
stop();
}
}
movieClip 2540 {
frame 1 {
stop();
_visible = false;
}
instance of movieClip 2278 {
onClipEvent (load) {
_visible = false;
}
}
frame 2 {
_visible = true;
}
frame 25 {
stop();
this.chat.gotoAndStop(convoChoose + 1);
}
}
instance conversation of movieClip 2540 {
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 2542 {
frame 1 {
lvlname = _root.lvl;
}
}
movieClip 2547 {
frame 30 {
stop();
}
}
movieClip 2548 {
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 213 {
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 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
stopAllSounds();
_root.gotoAndPlay('menu');
}
}
instance of movieClip 213 {
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 213 {
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 2548 {
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 746 {
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 800 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 2554 {
frame 1 {
stop();
}
}
instance ground of movieClip 2554 {
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 2556 {
}
movieClip 2558 {
}
instance death of movieClip 2558 {
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 2558 {
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 1587 {
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 1592 {
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 2560 {
}
movieClip 2562 {
}
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 800 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 2567 {
frame 1 {
stop();
}
}
instance ground of movieClip 2567 {
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 2569 {
}
instance event1 of movieClip 1447 {
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 1447 {
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 2558 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hero.bound.hitTest(this)) {
_root.hero.life = 0;
_root.vcam.setZoom = true;
}
}
}
instance gaurdOrig of movieClip 1587 {
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 1592 {
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 2572 {
}
movieClip 2574 {
}
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 800 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 2);
}
}
movieClip 2577 {
}
instance of movieClip 2577 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 2580 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 2581 {
instance swall of movieClip 2580 {
onClipEvent (enterFrame) {
if (_root.hero._x < -30) {
if (this._currentframe == 1) {
this.play();
_root.wall.nextFrame();
}
}
}
}
}
movieClip 2583 {
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
frame 139 {
this.removeMovieClip();
}
}
instance floorAtOrig of movieClip 2583 {
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 2586 {
frame 1 {
stop();
}
}
movieClip 2588 {
}
movieClip 2671 {
frame 105 {
_parent.i1 = -1;
_parent.gotoAndStop(1);
}
frame 199 {
_parent.i2 = _parent.attackCountDown;
_parent.gotoAndStop(1);
}
frame 230 {
_parent.gotoAndStop(1);
}
}
movieClip 2684 {
}
movieClip 2742 {
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 2755 {
frame 180 {
gotoAndPlay(145);
}
}
movieClip 2802 {
frame 86 {
stop();
}
}
movieClip 2803 {
frame 1 {
stop();
}
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
}
instance quema of movieClip 2803 {
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 2806 {
frame 1 {
stop();
}
frame 15 {
stop();
}
frame 30 {
stop();
}
}
instance of movieClip 2806 {
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 1447 {
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 2810 {
frame 23 {
gotoAndPlay(1);
}
frame 39 {
this.removeMovieClip();
}
}
instance fireballOrig of movieClip 2810 {
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 2812 {
}
movieClip 2813 {
instance bar of movieClip 2812 {
onClipEvent (load) {
var percent = 0;
var life = _root.quema.life;
}
onClipEvent (enterFrame) {
percent = (_root.quema.life / life) * 100;
_xscale = percent;
}
}
}
instance of movieClip 2813 {
onClipEvent (enterFrame) {
if (_root.quema.fighting == true) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 2815 {
}
instance partOrig of movieClip 2815 {
onClipEvent (enterFrame) {
if (_name == 'partOrig') {
_visible = false;
} else {
if (_alpha > 0) {
_alpha = _alpha - 1;
}
if (_alpha == 0) {
this.removeMovieClip();
}
}
}
}
movieClip 2817 {
frame 39 {
gotoAndPlay(20);
}
}
instance endlvl of movieClip 2817 {
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 2818 {
frame 34 {
stop();
}
}
instance music of movieClip 2818 {
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 800 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 2);
}
}
movieClip 2822 {
}
movieClip 2824 {
}
instance wall of movieClip 2824 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 2826 {
}
movieClip 2828 {
}
movieClip 2830 {
instance of movieClip 607 {
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 2830 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 2832 {
instance of movieClip 607 {
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 2832 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 2834 {
instance of movieClip 607 {
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 2834 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 2835 {
frame 17 {
stop();
}
}
frame 1128 {
stop();
}
movieClip 2838 {
}
movieClip 2841 {
frame 1 {
stop();
}
}
movieClip 2842 {
frame 1 {
stop();
}
}
instance of movieClip 2842 {
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 2843 {
frame 1 {
stop();
}
}
instance of movieClip 2843 {
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 2844 {
frame 1 {
stop();
}
}
instance of movieClip 2844 {
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 2845 {
frame 1 {
stop();
}
}
instance of movieClip 2845 {
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 2847 {
}
movieClip 2849 {
frame 1 {
stop();
}
frame 9 {
stop();
}
frame 17 {
gotoAndStop(1);
}
}
instance of movieClip 2849 {
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 2828 {
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 2855 {
frame 1 {
stop();
}
}
instance of movieClip 2855 {
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 2858 {
}
instance of movieClip 2858 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 2860 {
}
movieClip 2862 {
}
movieClip 2864 {
}
movieClip 2866 {
}
movieClip 2870 {
frame 1 {
stop();
}
}
instance ground of movieClip 2870 {
onClipEvent (load) {
if (_root.difficulty == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
movieClip 2873 {
frame 1 {
stop();
}
}
instance wall of movieClip 2873 {
onClipEvent (load) {
_visible = false;
if (_root.difficulty == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
movieClip 2929 {
frame 1 {
stop();
}
}
movieClip 2951 {
frame 15 {
_parent.gotoAndStop(1);
}
frame 82 {
stop();
}
}
movieClip 2952 {
frame 1 {
stop();
}
}
instance of movieClip 2952 {
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 2013 {
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 2558 {
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 1592 {
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 2955 {
frame 25 {
stop();
}
}
instance music of movieClip 2955 {
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 2858 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 2959 {
}
movieClip 2961 {
}
movieClip 2964 {
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
}
instance of movieClip 2964 {
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
}
}
instance death of movieClip 2558 {
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 1587 {
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 2952 {
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 2013 {
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 1592 {
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 2858 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 2972 {
frame 1 {
stop();
}
frame 83 {
stop();
}
}
movieClip 2974 {
frame 1 {
stop();
}
frame 42 {
stop();
}
}
movieClip 2975 {
frame 1 {
stop();
}
instance of movieClip 2972 {
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
if (this._currentframe == 1) {
this.play();
}
}
}
}
instance of movieClip 2974 {
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
if (this._currentframe == 1) {
this.play();
}
}
}
}
}
instance ground of movieClip 2975 {
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 2978 {
frame 1 {
stop();
}
}
instance wall of movieClip 2978 {
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 1174 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
instance of movieClip 2964 {
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
}
}
instance of movieClip 2964 {
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 2558 {
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 1447 {
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 2964 {
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 1592 {
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 2858 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 2983 {
frame 1 {
stop();
}
frame 10 {
stop();
_root.wall.gotoAndStop(2);
}
}
movieClip 2985 {
frame 1 {
stop();
}
}
movieClip 2986 {
}
movieClip 2988 {
frame 1 {
stop();
}
frame 43 {
stop();
_root.wall.blocked._x += 100000;
}
}
movieClip 2990 {
}
movieClip 2992 {
frame 1 {
stop();
}
}
instance wall of movieClip 2992 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1174 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
instance of movieClip 2964 {
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 2995 {
}
movieClip 2997 {
frame 1 {
stop();
}
}
movieClip 2998 {
}
instance of movieClip 2998 {
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 2964 {
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 2998 {
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 1447 {
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 2964 {
onClipEvent (enterFrame) {
if (_root.hero.life > 0) {
if (_visible == true) {
if (_root.hero.hitTest(this.bound)) {
_root.hero.grav += 2;
}
}
}
}
}
instance wind3 of movieClip 2964 {
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 1447 {
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 2558 {
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 1592 {
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 1587 {
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 1447 {
onClipEvent (load) {
_visible = false;
var Show = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
Show = true;
}
}
}
instance of movieClip 2998 {
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 3002 {
}
movieClip 3004 {
}
instance wall of movieClip 3004 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 3011 {
frame 130 {
gotoAndPlay(100);
}
}
movieClip 3037 {
frame 1 {
stop();
}
frame 273 {
_parent.rise = 10;
_root.vcam.onHero = true;
_root.hero.activated = true;
_root.boss.battleCam = true;
_parent.gotoAndStop(2);
}
}
movieClip 3059 {
}
movieClip 3081 {
frame 39 {
_parent.spawnProjectile = true;
}
frame 40 {
_parent.spawnProjectile = false;
}
frame 71 {
--_parent.spamAttackCounter;
_parent.gotoAndStop('idle');
}
}
movieClip 3102 {
frame 23 {
_parent.spawnProjectile = true;
}
frame 24 {
_parent.spawnProjectile = false;
}
frame 41 {
--_parent.spamAttackCounter;
_parent.gotoAndStop('idle');
}
}
movieClip 3123 {
frame 17 {
_parent.spawnProjectile = true;
}
frame 18 {
_parent.spawnProjectile = false;
}
frame 23 {
--_parent.spamAttackCounter;
_parent.gotoAndStop('idle');
}
}
movieClip 3130 {
instance of movieClip 1225 {
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 {
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 3133 {
}
movieClip 3135 {
frame 2 {
stop();
}
frame 7 {
gotoAndStop(2);
}
}
movieClip 3165 {
frame 56 {
_parent.pantTimeCounter = _parent.pantTime;
_parent.rise = 10;
_parent.gotoAndStop('attack4');
}
}
movieClip 3166 {
frame 1 {
stop();
}
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
}
instance boss of movieClip 3166 {
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 2998 {
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 2998 {
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 2964 {
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 2964 {
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 1447 {
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 3168 {
}
movieClip 3169 {
}
instance windAttack of movieClip 3169 {
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 3171 {
frame 60 {
stop();
this.removeMovieClip();
}
}
instance windParticle of movieClip 3171 {
onClipEvent (enterFrame) {
if (_name == 'windPart') {
_visible = false;
} else {}
}
}
movieClip 3172 {
}
instance of movieClip 3172 {
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 3174 {
}
movieClip 3177 {
}
movieClip 3179 {
}
instance wall of movieClip 3179 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 3181 {
frame 71 {
stop();
}
}
movieClip 3241 {
}
movieClip 3250 {
}
movieClip 3251 {
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 3263 {
}
movieClip 3308 {
}
movieClip 3311 {
frame 3 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
} else {
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
}
instance hit1 of movieClip 1225 {
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 1225 {
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 1225 {
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 1225 {
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 3324 {
}
movieClip 3366 {
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 3372 {
instance of movieClip 1225 {
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 3373 {
frame 1 {
stop();
_root.hero.activated = false;
}
frame 2 {
_root.hero.activated = true;
}
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
instance lifebar of movieClip 3172 {
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 3373 {
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 3376 {
frame 16 {
stop();
}
}
movieClip 3388 {
}
instance debOrig of movieClip 3388 {
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 3388 {
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 2558 {
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 2013 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3388 {
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 3392 {
}
instance of movieClip 3392 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
}
}
movieClip 3394 {
}
movieClip 3396 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 3398 {
}
movieClip 3400 {
}
instance wall of movieClip 3400 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 2998 {
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 1447 {
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 1447 {
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 1592 {
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 2558 {
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 3402 {
frame 1 {
_visible = false;
}
}
instance gaurdOrig of movieClip 1587 {
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 3404 {
frame 22 {
stop();
}
}
instance music of movieClip 3404 {
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 3392 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
}
}
movieClip 3408 {
}
movieClip 3409 {
instance of movieClip 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 1592 {
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 2558 {
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 1587 {
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 2858 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 3412 {
instance of movieClip 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3414 {
}
instance wall of movieClip 3414 {
onClipEvent (load) {
_visible = false;
}
}
instance death of movieClip 2558 {
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 1592 {
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 1447 {
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 1447 {
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 2858 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 3418 {
}
movieClip 3420 {
}
movieClip 3421 {
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 1176 {
onClipEvent (load) {
_visible = false;
}
}
}
instance of movieClip 3421 {
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 1587 {
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 1592 {
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 3426 {
frame 323 {
stop();
}
}
movieClip 3428 {
}
instance wall of movieClip 3428 {
onClipEvent (load) {
_visible = false;
}
}
instance death of movieClip 2558 {
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 3434 {
frame 188 {
gotoAndPlay(140);
}
}
movieClip 3480 {
frame 1 {
stop();
}
frame 331 {
_parent.attacking = true;
_root.vcam.onHero = true;
_parent.battleCam = true;
_root.hero.activated = true;
_parent.gotoAndStop(2);
}
}
movieClip 3509 {
frame 1 {
stop();
}
instance hit1 of movieClip 1225 {
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 1225 {
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 1225 {
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 3516 {
frame 1 {
if (_root.difficulty == 3) {
_visible = false;
}
}
}
movieClip 3517 {
frame 12 {
_root.telsmoke.spawn = true;
}
frame 27 {
stop();
}
}
movieClip 3547 {
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 3548 {
frame 1 {
stop();
}
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
instance lifebar of movieClip 3172 {
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 3548 {
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 1447 {
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 3550 {
frame 60 {
this.removeMovieClip();
}
}
instance smokeOrig of movieClip 3550 {
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 3564 {
frame 57 {
this.removeMovieClip();
stop();
}
}
instance telsmoke of movieClip 3564 {
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 800 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 2);
}
}
instance wall of movieClip 2824 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 2834 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 2832 {
onClipEvent (enterFrame) {
xdist = this._x - _root.hero._x;
if (this.xdist > -150 && this.xdist < 150) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1592 {
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 3568 {
frame 30 {
stop();
}
}
instance music of movieClip 3568 {
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 800 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 3571 {
}
movieClip 3573 {
}
instance wall of movieClip 3573 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 3421 {
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 3421 {
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 3421 {
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 3421 {
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 1592 {
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 2558 {
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 800 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 3577 {
}
movieClip 3579 {
}
instance wall of movieClip 3579 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 3421 {
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 3421 {
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 3421 {
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 3421 {
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 2558 {
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 1592 {
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 2964 {
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 800 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 3582 {
instance of movieClip 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3408 {
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 3584 {
}
instance wall of movieClip 3584 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1592 {
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 2558 {
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 1447 {
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 1447 {
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 3588 {
}
movieClip 3590 {
}
instance death of movieClip 2558 {
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 1447 {
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 3598 {
frame 160 {
gotoAndPlay(127);
}
}
movieClip 3628 {
frame 1 {
stop();
}
frame 271 {
_root.hero.activated = true;
_root.vcam.onHero = true;
_root.boss.battleCam = true;
_parent.gotoAndStop(2);
}
}
movieClip 3656 {
frame 1 {
stop();
}
frame 10 {
gotoAndStop(1);
}
frame 19 {
gotoAndStop(1);
}
frame 29 {
gotoAndStop(1);
}
frame 38 {
gotoAndStop(1);
}
}
movieClip 3775 {
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 3789 {
frame 172 {
stop();
_root.vcam.onHero = true;
_root.hero.activated = true;
}
frame 353 {
stop();
_root.lvlscreen.gotoAndPlay('endlvl');
}
}
movieClip 3790 {
frame 1 {
stop();
}
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
instance bound2 of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
frame 2 {
stop();
attacking = true;
}
frame 3 {
stop();
}
}
instance boss of movieClip 3790 {
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 3172 {
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 2858 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 3793 {
}
movieClip 3795 {
}
instance walls of movieClip 3795 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1174 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
while (this.hitTest(_root.hero.bound)) {
_root.hero._y += 1;
}
}
}
instance of movieClip 1592 {
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 3798 {
}
movieClip 3800 {
}
instance wall of movieClip 3800 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1592 {
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 3802 {
}
instance of movieClip 3802 {
onClipEvent (enterFrame) {
this._x += Math.round(_root.hero.xSpeed / 3);
}
}
movieClip 3806 {
}
instance ground of movieClip 3806 {
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 3809 {
}
instance wall of movieClip 3809 {
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 2558 {
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 3814 {
frame 181 {
gotoAndPlay(145);
}
}
movieClip 3835 {
frame 1 {
stop();
}
frame 254 {
_root.hero.activated = true;
_root.vcam.onHero = true;
_root.boss.battleCam = true;
_parent.attacking = true;
_parent.gotoAndStop(2);
}
}
movieClip 3874 {
frame 1 {
stop();
}
frame 10 {
gotoAndStop(1);
}
frame 19 {
gotoAndStop(1);
}
frame 29 {
gotoAndStop(1);
}
frame 42 {
gotoAndStop(1);
}
}
movieClip 3928 {
}
movieClip 3943 {
}
movieClip 3991 {
frame 58 {
gotoAndPlay(38);
}
}
movieClip 4026 {
frame 34 {
gotoAndPlay(18);
}
}
movieClip 4046 {
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 4048 {
}
movieClip 4064 {
frame 110 {
stop();
_root.vcam.onHero = true;
_root.hero.activated = true;
}
frame 192 {
_root.play();
}
}
movieClip 4065 {
frame 1 {
stop();
}
instance bound of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
instance bound2 of movieClip 1176 {
onClipEvent (load) {
_visible = false;
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance boss of movieClip 4065 {
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 1447 {
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 3172 {
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 4069 {
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
stopAllSounds();
_root.gotoAndPlay('menu');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
instance sPoint of movieClip 3402 {
onClipEvent (enterFrame) {
_root.vcam.onHero = false;
_root.vcam._x = 350;
_root.vcam._y = 200;
}
}
movieClip 4073 {
}
instance wall of movieClip 4073 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 4074 {
frame 10 {
stop();
}
}
movieClip 4084 {
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('menuMenu');
}
}
movieClip 4091 {
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.play();
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://rankz.armorbot.com/AwW2/', '_blank');
}
}
frame 1248 {
stop();
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.stopAllSounds();
_root.gotoAndPlay('menu');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('lololol');
}
}
frame 1261 {
stop();
instantKill = false;
var survivalScore = 0;
spawnTime = 100;
spawnTimeOrig = spawnTime;
}
movieClip 4098 {
frame 1 {
onEnterFrame = function () {
this._yscale += random(5) - random(5);
if (this._yscale > 150) {
this._yscale = 150;
}
if (this._yscale < 50) {
this._yscale = 50;
}
};
}
}
movieClip 4099 {
}
movieClip 4100 {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 19 {
stop();
}
frame 29 {
stop();
}
frame 38 {
stop();
}
}
instance of movieClip 4100 {
onClipEvent (enterFrame) {
if (_root.survivalScore == 10 or _root.survivalScore == 20 or _root.survivalScore == 30 or _root.survivalScore == 40 or _root.survivalScore == 50 or _root.survivalScore == 60 or _root.survivalScore == 70 or _root.survivalScore == 80 or _root.survivalScore == 90 or _root.survivalScore == 100 or _root.survivalScore == 110) {
this.play();
++_root.survivalScore;
}
}
}
movieClip 4102 {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 20 {
stop();
}
frame 30 {
stop();
}
frame 40 {
stop();
}
}
instance ground of movieClip 4102 {
onClipEvent (load) {
var timetochange = 500;
var timetochangeOrig = timetochange;
}
onClipEvent (enterFrame) {
if (timetochange > 0) {
--timetochange;
}
if (timetochange == 0) {
this.play();
timetochange = timetochangeOrig;
}
}
}
instance hero of movieClip 2269 {
onClipEvent (load) {
var activated = true;
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) {
if (this._x < -493) {
this._x = -493;
}
if (this._x > 1199) {
this._x = 1199;
}
if (this.hurt._currentframe == 152) {
_root.play();
}
--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 (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();
}
}
}
}
instance gaurdOrig of movieClip 1587 {
onClipEvent (load) {
var life = 3;
var deathCount = 0;
var gaurd = this;
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') {
if (_root.spawnTime == 1) {
gaurd = this.duplicateMovieClip('gaurd' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gaurd._y = -60;
gaurd._x = 328 + random(800) - random(800);
}
} 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 (_root.hero.life <= 0) {
if (this._alpha > 0) {
--this._alpha;
}
}
if (_root.instantKill == true) {
this.removeMovieClip();
}
}
}
instance wball of movieClip 2272 {
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();
}
}
}
}
instance wp of movieClip 2274 {
onClipEvent (enterFrame) {
if (_name == 'wp') {
this._visible = false;
} else {
_alpha = _alpha - 2;
_xscale = _xscale - 1;
_yscale = _yscale - 1;
if (_alpha <= 2) {
removeMovieClip(this);
}
}
}
}
instance vcam of movieClip 2276 {
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 4105 {
frame 1 {
this.survivalScore = _root.survivalScore;
}
instance sbar of movieClip 740 {
onClipEvent (load) {
var percent = 0;
}
onClipEvent (enterFrame) {
percent = (_root.hero.special / 10) * 100;
_xscale = percent;
}
}
instance bar of movieClip 742 {
onClipEvent (load) {
var percent = 0;
}
onClipEvent (enterFrame) {
percent = (_root.hero.life / 10) * 100;
_xscale = percent;
}
}
}
instance lifebar of movieClip 4105 {
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 4107 {
}
instance of movieClip 4107 {
onClipEvent (enterFrame) {
if (_root.spawnTime > 0) {
--_root.spawnTime;
}
if (_root.spawnTime == 0) {
if (_root.spawnTimeOrig > 20) {
_root.spawnTimeOrig -= 3;
}
_root.spawnTime = _root.spawnTimeOrig;
}
}
}
frame 1262 {
instantKill = true;
stopAllSounds();
}
// unknown tag 88 length 172
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.play();
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
getURL('http://rankz.armorbot.com/AwW2/', '_blank');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('survivalMenu2');
}
}
frame 1317 {
stop();
survivalName = 'Your name here';
}
// unknown tag 88 length 304
frame 1324 {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + 'j%e%a%n%s');
par227.flashkey = (par227.flashkey.split('=')).join('');
par227.SU0249 = (par227.SU0249.split('=')).join('');
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad('http://rankz.armorbot.com/submit/', par228, 'POST');
}
bXlnYW1lX25hbWVfdmFyaWFibGU = survivalName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = survivalScore;
__rankz_send__('MzA4NWolZSVhJW4lcw==', 'UVRwbGpZS28=', bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
stop();
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('lololol');
}
}
instance of movieClip 213 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('lololol');
}
}
frame 1349 {
_root.gotoAndPlay('survivalMenu');
}
frame 1350 {
_root.nextFrame();
}
// unknown tag 88 length 76
frame 1352 {
_root.prevFrame();
}