Combined Code
movieClip 8 {
}
movieClip 10 {
}
movieClip 19 {
frame 15 {
_parent.distroy();
}
}
movieClip 20 SpitMC {
frame 1 {
function Coll(TX, TY) {
return _parent.level.Collision(TX, TY);
}
function CheckHero() {
var v2 = false;
if (_parent.hero.coll.hitTest(_x + _parent._x, _y + _parent._y, false)) {
_parent.hero.hitx(30, 10, dir);
v2 = true;
}
return v2;
}
function distroy() {
this.removeMovieClip();
}
if (!Activated) {
Activated = true;
var zz = new zaman();
var collide = false;
var speed = 12;
var dir = 1;
if (ang == 0) {
dir = 2;
_xscale = -100;
}
gotoAndStop(2);
}
this.onEnterFrame = function () {
if (!collide) {
if (Coll(_x, _y) or CheckHero()) {
collide = true;
gotoAndStop(3);
}
if (dir == 1) {
if (ang > 90) {
ang -= 0.5;
}
}
if (dir == 2) {
if (ang < 90) {
ang += 0.5;
}
}
_x = _x + Math.cos(zz.rad(ang)) * speed;
_y = _y + Math.sin(zz.rad(ang)) * speed;
if (dir == 1) {
_rotation = zz.WrapValue(ang - 180);
}
if (dir == 2) {
_rotation = zz.WrapValue(ang);
}
}
};
}
}
movieClip 25 {
}
movieClip 27 {
}
movieClip 29 {
}
movieClip 31 {
}
movieClip 33 {
}
movieClip 35 {
}
movieClip 36 {
frame 10 {
stop();
_parent.removeMovieClip();
}
}
movieClip 37 FireMC {
frame 1 {
function Coll(TX, TY) {
return _parent.level.Collision(TX, TY);
}
function CheckMonsters() {
var v2 = false;
i = 0;
while (i < _parent.level.Monsters.length) {
if (_parent.level.Monsters[i].ACTIVE) {
if (_parent.level.Monsters[i].coll.hitTest(_x + _parent._x, _y + _parent._y, true)) {
_parent.level.Monsters[i].health -= 1;
v2 = true;
}
}
++i;
}
return v2;
}
if (!Activated) {
Activated = true;
var zz = new zaman();
var isRaw;
var speed = 5 + random(5);
var angle = 0;
var XVEL = 15 + random(5);
var YVEL = random(2) - 1;
var life = 100;
var collide = false;
var StopRotation = false;
_rotation = random(350);
g.stop();
_xscale = 170 - life;
_yscale = 170 - life;
}
this.onEnterFrame = function () {
if (!collide) {
if (Coll(_x, _y) or CheckMonsters()) {
collide = true;
XVEL = 0;
StopRotation = true;
g.play();
}
}
XVEL = zz.CurveValue(0, XVEL, 0.05);
if (life < 50) {
}
if (!StopRotation) {
_rotation = zz.WrapValue(_rotation + 30);
} else {
_rotation = 0;
}
_xscale = 170 - life;
_yscale = 170 - life;
life -= 5;
if (direction == 1) {
_x = _x + XVEL;
} else {
_x = _x - XVEL;
}
_y = _y + YVEL;
if (life <= 0) {
g.play();
StopRotation = true;
}
};
}
}
frame 1 {
function gotosite() {
getURL('http://nucleusgames.com', '_blank');
}
function KillLoading() {
delete onEnterFrame;
play();
}
var totalBytes;
var loadedBytes;
var percentDone;
var FTimer = 0;
Stage.showMenu = false;
var men = new ContextMenu();
men.hideBuiltInItems();
men.builtInItems.quality = true;
men.customItems.push(new ContextMenuItem('Nucleus Games', gotosite));
DeleteMePlease.swapDepths(this.getNextHighestDepth());
DeleteMePlease.removeMovieClip();
MyPlayButton._visible = false;
MyPlayButton._alpha = 0;
var BTN_UP = 38;
var BTN_LEFT = 37;
var BTN_RIGHT = 39;
var BTN_CROUCH = 40;
var BTN_JUMP = 38;
var BTN_FIRE = 65;
var BTN_KICK = 83;
var BTN_RELOAD = 68;
var BTN_ACTION = 69;
var BTN_MEDIC = 49;
_quality = 'high';
_root.menu = men;
Stage.scaleMode = 'noScale';
Stage.align = 'CC';
stop();
onEnterFrame = function () {
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.ceil((loadedBytes / totalBytes) * 100);
_root.loadText.text = percentDone + '%';
lbar.gotoAndStop(percentDone);
++FTimer;
if (FTimer > 2) {
FTimer = 0;
var v5 = this.getNextHighestDepth();
var v3;
var v4;
v3 = this.attachMovie('lfirepart', 'LFireP' + v5, v5);
v3._x = lbar._x + random(lbar._width);
v3._y = lbar._y - 7 + random(14);
v3._rotation = 45 + random(90);
v4 = random(20) + 100;
v3._xscale = v4;
v3._yscale = v4;
}
if (getBytesLoaded() >= getBytesTotal()) {
MyPlayButton._visible = true;
}
if (MyPlayButton._visible and MyPlayButton._alpha < 100) {
MyPlayButton._alpha += 5;
}
};
}
movieClip 139 {
}
movieClip 153 lfirepart {
frame 14 {
this.removeMovieClip();
}
}
// unknown tag 88 length 70
movieClip 157 {
frame 1 {
onPress = function () {
_parent.KillLoading();
};
}
}
movieClip 2716 __Packages.zaman {
#initclip
if (!_global.zaman) {
var v1 = function () {};
_global.zaman = v1;
var v2 = v1.prototype;
v2.dist = function (Ax, Ay, Bx, By) {
var v2;
var v1;
v2 = Ax - Bx;
v1 = Ay - By;
return Math.sqrt(v2 * v2 + v1 * v1);
};
v2.rad = function (deg) {
return deg * Math.PI / 180;
};
v2.deg = function (rad) {
return (rad / Math.PI) * 180;
};
v2.CurveValue = function (dest, current, speed) {
return current + (dest - current) * speed;
};
v2.CurveAngle = function (dest, Current, speed) {
return this.WrapValue(this.CurveValue(0, this.WrapValue(Current + 180 - dest) - 180, speed) + dest);
};
v2.StepAngle = function (dest, current, step) {};
v2.LookAt = function (x, y, atX, atY) {
return Math.round((Math.atan2(atY - y, atX - x) / Math.PI) * 180);
};
v2.WrapValue = function (angle) {
while (angle >= 360) {
angle -= 360;
}
while (angle < 0) {
angle += 360;
}
return angle;
};
v2.LineCollision = function (mc, px, py, Ang, acc, MaxDist) {
var v7;
var v6;
var v5;
v5 = false;
var v1 = 0;
while (v1 < MaxDist) {
v7 = px + Math.cos(Ang) * v1;
v6 = py + Math.sin(Ang) * v1;
if (mc.hitTest(px, py, true)) {
v5 = true;
break;
}
v1 += acc;
}
return v5;
};
v2.clone = function (obj) {
if (typeof this == 'object') {
var v2 = this instanceof Array ? [] : {};
for (var v3 in this) {
v2[v3] = (typeof this[v3] == 'object') ? this[v3].clone() : this[v3];
}
return v2;
}
trace('Warning! Object.clone can not be used on MovieClip or XML objects');
return undefined;
};
ASSetPropFlags(_global.zaman.prototype, null, 1);
}
#endinitclip
}
movieClip 2717 __Packages.Languages.Lang_English {
#initclip
if (!_global.Languages) {
_global.Languages = new Object();
}
if (!_global.Languages.Lang_English) {
var v1 = function () {
this.Conversations = new Array();
var v3 = new Array();
v3.push(new Array(1, 'hello girl', 0));
v3.push(new Array(2, 'hello Adam :)', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(1, 'ouch! ... stupid quake!', 0));
v3.push(new Array(1, 'it almost killed me, better move on before this place breaks apart', 0));
v3.push(new Array(1, 'HQ do you hear me?', 0));
v3.push(new Array(1, 'Damn, the phone is broken, I should find some way to contact them.', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(2, 'Welcome to underground research lab C2 I wish you spend a joyful time in here, Sir.', 0));
v3.push(new Array(2, 'I am Smart Managing System VX-995411 V9.1, Sir.', 0));
v3.push(new Array(2, 'But you can call me Vux, Sir.', 0));
v3.push(new Array(2, 'The facility has suffered great damage due to the earthquake, and it\'s not safe anymore, Sir.', 0));
v3.push(new Array(1, 'What happened to the staff here?', 0));
v3.push(new Array(2, 'They are dead, Sir.', 0));
v3.push(new Array(1, 'Then why didn\'t the HQ, hear about that?', 0));
v3.push(new Array(2, 'The communication system is damaged and we can\'t connect with HQ, Sir.', 0));
v3.push(new Array(2, 'But I still can guide you through the Lab ...', 0));
v3.push(new Array(2, '... Sir', 0));
v3.push(new Array(1, 'No need to, I am better off by my own, and stop calling me Sir', 0));
v3.push(new Array(2, 'I am programmed to, Sir', 0));
v3.push(new Array(1, '.......', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(2, 'Hi Sir', 0));
v3.push(new Array(2, '....', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(2, 'Welcome again to the underground Lab C2', 0));
v3.push(new Array(2, 'I\'ll be communicating with you through this speaker on the wall', 0));
v3.push(new Array(2, 'I will record your progress automatically into the database whenever you (leave) a room with a speaker, which is a check point, sir', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(2, 'Just in case you don\'t know, access to the third floor is forbidden now', 0));
v3.push(new Array(2, 'I am afraid you have to unlock it manually, Sir.', 0));
v3.push(new Array(1, 'How useless!', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(2, 'Are you alright, your look pale, Sir.', 0));
v3.push(new Array(1, '........', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(2, 'Sir, if you can help me restore the database maybe we can find out what happened to the staff in lab C2, Sir', 0));
v3.push(new Array(1, 'And how can I help you restore your database?', 0));
v3.push(new Array(2, 'Just keep an eye on any blue data discs you see and bring them back to me, Sir.', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(1, 'what the hell was that thing!!', 0));
v3.push(new Array(1, 'I must contact HQ and tell them about it.', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(1, 'W-Who are you?!', 0));
v3.push(new Array(5, '.......................', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(1, 'Hey wait!', 1));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(2, 'Welcome to the temple of flame', 0));
v3.push(new Array(1, 'a temple and a forest underground?', 0));
v3.push(new Array(2, 'Yes, this is reason this lab exists', 0));
v3.push(new Array(1, 'and what about the monsters?', 0));
v3.push(new Array(2, 'I am afraid you have to find out yourself by collecting the data discs', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(1, 'I might be able to use this device to call HQ ...', 0));
v3.push(new Array(1, 'Aya do you here me?!', 0));
v3.push(new Array(3, 'Adam ... glad you still alive.', 0));
v3.push(new Array(1, 'yeah me too, what happened?', 0));
v3.push(new Array(3, 'We don\'t know exactly, it was an unusual earth quake, the same as the one that happened 2 days ago', 0));
v3.push(new Array(3, 'Since then, we couldn\'t contact the staff underground', 0));
v3.push(new Array(3, 'We don\'t have much time for that Adam, head straight Lab C5 before another quake hits again.', 0));
v3.push(new Array(3, 'Sergeant Aya off.', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(1, 'You over there....', 0));
v3.push(new Array(1, 'You!! Show yourself!!', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(5, 'B-L-O-O-D .... S-U-M-M-O-N ....\rF-L-A-M-E .... M-A-S-T-E-R', 0));
v3.push(new Array(1, 'What?', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(5, 'COME!', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(1, 'What is this place?!', 0));
v3.push(new Array(1, 'Is this a forest ... underground?!', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(1, 'Template', 0));
this.Conversations.push(v3);
v3 = new Array();
v3.push(new Array(1, 'Template', 0));
this.Conversations.push(v3);
this.Others = new Array();
var v2 = new Array();
v2.push(new Array(15, 'The elevator has no power', 0));
this.Others.push(v2);
v2 = new Array();
v2.push(new Array(15, 'Power has been restored to the elevator', 0));
this.Others.push(v2);
v2 = new Array();
v2.push(new Array(15, 'Access to B3 is denied', 0));
this.Others.push(v2);
v2 = new Array();
v2.push(new Array(15, 'Access restriction to B3 has been disabled', 0));
this.Others.push(v2);
v2 = new Array();
v2.push(new Array(1, 'This poor dude had a strong hit on his chest, I wonder what happened to him', 0));
this.Others.push(v2);
v2 = new Array();
v2.push(new Array(1, 'This unlucky guy has been slashed real bad', 0));
this.Others.push(v2);
v2 = new Array();
v2.push(new Array(1, 'This lock seems to be rusty, I think I should try firing it!', 0));
this.Others.push(v2);
v2 = new Array();
v2.push(new Array(1, 'Something is written on this stone, it seems to be an ancient text', 0));
this.Others.push(v2);
this.Robot = new Array();
v2 = new Array();
v2.push(new Array(2, 'Welcome back Adam :)', 0));
v2.push(new Array(1, 'Hey Vux!', 0));
this.Robot.push(v2);
};
Languages.Lang_English = v1;
var v2 = v1.prototype;
ASSetPropFlags(Languages.Lang_English.prototype, null, 1);
}
#endinitclip
}
movieClip 2718 __Packages.SaveGame {
#initclip
if (!_global.SaveGame) {
var v1 = function () {
this.z = new zaman();
this.LevelData = new Array();
this.keys = new Array();
var v2 = 0;
while (v2 < 10) {
this.keys.push(false);
++v2;
}
this.bools = new Array();
v2 = 0;
while (v2 < 100) {
this.bools.push(false);
++v2;
}
this.numbers = new Array();
v2 = 0;
while (v2 < 20) {
this.numbers.push(new Number(0));
++v2;
}
};
_global.SaveGame = v1;
var v2 = v1.prototype;
v2.LoadLevel = function (LevelMC) {
var v3 = false;
var v2 = 0;
while (v2 < this.LevelData.length) {
if (LevelMC._name == this.LevelData[v2][0]) {
trace('Level Exists, name: ' + this.LevelData[v2][0] + ', Monster Count: ' + this.LevelData[v2][1].length);
v3 = true;
break;
}
++v2;
}
if (!v3) {
var v5 = new Array();
v5.push(LevelMC._name);
var v6 = new Array();
v5.push(v6);
this.LevelData.push(v5);
trace('Level does not exist, Created data space for ' + LevelMC._name + ' with array ID: ' + String(this.LevelData.length - 1));
trace('----------------------------------------');
}
};
v2.SaveLevel = function (LevelMC) {
trace('Saving level ' + LevelMC._name);
var v5 = false;
var v3;
v3 = 0;
while (v3 < this.LevelData.length) {
if (this.LevelData[v3][0] == LevelMC._name) {
trace('Level was found with the ID: ' + v3 + ' in level array');
var v2;
v2 = 0;
while (v2 < this.LevelData[v3][1].length) {
this.LevelData[v3][1][v2][1] = LevelMC[this.LevelData[v3][1][v2][0]]._x;
this.LevelData[v3][1][v2][2] = LevelMC[this.LevelData[v3][1][v2][0]]._y;
this.LevelData[v3][1][v2][3] = LevelMC[this.LevelData[v3][1][v2][0]].dead;
trace('Saved data for monster ' + this.LevelData[v3][1][v2][0] + ' , with the ID: ' + v2 + ' Inside the array');
++v2;
}
trace('done saving ' + v2 + ' monsters');
break;
}
++v3;
}
trace('+++++++++++++++++++++++++++++++++++++++');
trace('+++++++++++++++++++++++++++++++++++++++');
trace('+++++++++++++++++++++++++++++++++++++++');
};
v2.LoadMonster = function (MonsterMC, LevelMC) {
trace('Adding monster ' + MonsterMC._name + '...');
var v5 = false;
var v3;
v3 = 0;
while (v3 < this.LevelData.length) {
if (this.LevelData[v3][0] == LevelMC._name) {
trace('Searching for monster data inside ' + LevelMC._name + ' that has ' + this.LevelData[v3][1].length + ' Monster records.');
var v2 = 0;
while (v2 < this.LevelData[v3][1].length) {
if (MonsterMC._name == this.LevelData[v3][1][v2][0]) {
v5 = true;
trace('Found monster with the name: ' + this.LevelData[v3][1][v2][0]);
MonsterMC._x = this.LevelData[v3][1][v2][1];
MonsterMC._y = this.LevelData[v3][1][v2][2];
MonsterMC.dead = this.LevelData[v3][1][v2][3];
break;
}
++v2;
}
trace('Done searching monsters.');
break;
}
++v3;
}
trace('the level was found in array ID: ' + v3);
if (!v5) {
trace('Monster ' + MonsterMC._name + ' was not found, creating data for it..');
var v7 = new Array();
v7.push(MonsterMC._name, MonsterMC._x, MonsterMC._y, MonsterMC.dead);
this.LevelData[v3][1].push(v7);
trace('Created monster data in Array ID: ' + String(this.LevelData[v3][1].length - 1));
}
trace('----------------------------------------');
};
v2.SaveCheckPoint = function (LevelID) {
this.mpcount = _root.mpcount;
this.bombcount = _root.bombcount;
this.datacount = _root.datacount;
this.CheckPoint = LevelID;
this.cLevelData = this.CopyLevelData();
this.ckeys = this.keys.concat();
this.cbools = this.bools.concat();
this.cnumbers = this.numbers.concat();
trace('Saved Check point for Level ID: ' + LevelID);
};
v2.LoadCheckPoint = function () {
Level;
this.LevelData = this.cLevelData;
this.keys = this.ckeys;
this.bools = this.cbools;
this.numbers = this.cnumbers;
_root.mpcount = this.mpcount;
_root.bombcount = this.bombcount;
_root.datacount = this.datacount;
trace('Loading CheckPoint for Level: ' + this.CheckPoint);
return this.CheckPoint;
};
v2.CopyLevelData = function () {
var v5 = new Array();
var v3 = 0;
while (v3 < this.LevelData.length) {
var v4 = new Array();
var v2 = 0;
while (v2 < this.LevelData[v3][1].length) {
v4.push(new Array(this.LevelData[v3][1][v2][0], this.LevelData[v3][1][v2][1], this.LevelData[v3][1][v2][2], this.LevelData[v3][1][v2][3]));
++v2;
}
v5.push(new Array(this.LevelData[v3][0], v4));
++v3;
}
return v5;
};
v2.GetObject = function () {
var v2 = new Object();
v2.CheckPoint = this.CheckPoint;
v2.LevelData = this.cLevelData;
v2.mpcount = this.mpcount;
v2.bombcount = this.bombcount;
v2.datacount = this.datacount;
v2.keys = this.ckeys;
v2.numbers = this.cnumbers;
v2.bools = this.cbools;
return v2;
};
v2.SetObject = function (ob) {
this.CheckPoint = ob.CheckPoint;
this.cLevelData = ob.LevelData;
this.mpcount = ob.mpcount;
this.bombcount = ob.bombcount;
this.datacount = ob.datacount;
this.ckeys = ob.keys;
this.cnumbers = ob.numbers;
this.cbools = ob.bools;
};
v2.CheckPoint = 0;
v2.mpcount = 0;
v2.bombcount = 0;
v2.datacount = 0;
ASSetPropFlags(_global.SaveGame.prototype, null, 1);
}
#endinitclip
}
movieClip 2719 __Packages.Level {
#initclip
if (!_global.Level) {
var v1 = function (levelMC) {
this.z = new zaman();
this.LevelMC = levelMC;
this.iWidth = this.LevelMC._width;
this.CollisionObjects = new Array();
this.Actors = new Array();
this.Monsters = new Array();
_root.CurrentLevel = levelMC;
if (_root.point != '') {
this.LevelMC.hero._x = this.LevelMC[_root.point]._x;
this.LevelMC.hero._y = this.LevelMC[_root.point]._y;
this.LevelMC.hero.direction = _root.TargetDirection;
_root.point = '';
}
_root.SaveSystem.LoadLevel(this.LevelMC);
};
_global.Level = v1;
var v2 = v1.prototype;
v2.gotoHero = function () {
var v2;
var v3;
if (this.LevelMC.hero.direction == 1) {
v2 = -this.LevelMC.hero._x + this.offset;
} else {
v2 = -this.LevelMC.hero._x + this.offset + 400;
}
v3 = -this.LevelMC.hero._y + this.yoffset;
if (v2 < -this.iWidth + 800) {
v2 = -this.iWidth + 800;
}
if (v2 > -1) {
v2 = -1;
}
this.LevelMC._x = v2;
this.LevelMC._y = v3;
};
v2.CamFollow = function (obj) {
this.camFollow = obj;
this.LockCam = true;
};
v2.CamFollowY = function (obj) {
this.camFollow = obj;
this.LockY = true;
};
v2.CamNormal = function () {
this.LockCam = false;
};
v2.hiz = function (pow, time) {
this.HizPow = pow;
this.HizTimer = time;
};
v2.ControlHiz = function () {
if (this.HizTimer > 0) {
this.HizX = random(this.HizPow) - this.HizPow / 2;
this.HizY = random(this.HizPow) - this.HizPow / 2;
--this.HizTimer;
} else {
this.HizX = 0;
this.HizY = 0;
this.HizTimer = 0;
}
};
v2.setIWidth = function (n) {
this.iWidth = n;
};
v2.setBound = function (n) {
this.iWidth += n;
};
v2.update = function () {
var v2;
var v3;
this.ControlHiz();
if (!this.LockCam) {
if (this.LevelMC.hero.direction == 1) {
v2 = -this.LevelMC.hero._x + this.offset;
} else {
v2 = -this.LevelMC.hero._x + this.offset + 400;
}
v3 = -this.LevelMC.hero._y + this.yoffset;
if (v2 < -this.iWidth + 800) {
v2 = -this.iWidth + 800;
}
if (v2 > -1) {
v2 = -1;
}
this.LevelMC._x = this.z.CurveValue(v2, this.LevelMC._x, 0.1) + this.HizX;
if (!this.LockY) {
this.LevelMC._y = this.z.CurveValue(v3, this.LevelMC._y, 0.1) + this.HizY;
} else {
this.LevelMC._y = -this.camFollow._y + 250 + this.HizX;
}
} else {
this.LevelMC._x = -this.camFollow._x + 400 + this.HizX;
this.LevelMC._y = -this.camFollow._y + 250 + this.HizX;
}
};
v2.AddCollisionObject = function (o) {
this.CollisionObjects.push(o);
};
v2.RemoveCollisionObject = function (o) {
var v2 = 0;
while (v2 < this.CollisionObjects.length) {
if (this.CollisionObjects[v2] == o) {
this.CollisionObjects.splice(v2, 1);
break;
}
++v2;
}
};
v2.Collision = function (x, y) {
var v3;
v3 = this.LevelMC.coll.hitTest(x + this.LevelMC._x, y + this.LevelMC._y, true);
if (!v3) {
var v2 = 0;
while (v2 < this.CollisionObjects.length) {
if (this.CollisionObjects[v2].hitTest(x + this.LevelMC._x, y + this.LevelMC._y, true)) {
v3 = true;
}
++v2;
}
}
return v3;
};
v2.offset = 250;
v2.yoffset = 400;
v2.Event1 = false;
v2.HizTimer = 0;
v2.HizPow = 0;
v2.HizX = 0;
v2.HizY = 0;
v2.LockCam = false;
v2.LockY = false;
ASSetPropFlags(_global.Level.prototype, null, 1);
}
#endinitclip
}
movieClip 2720 __Packages.Actor {
#initclip
if (!_global.Actor) {
var v1 = function (TargetMC, CollisionMC, ParentMC, Gravity, MaxVel) {
this.TC = TargetMC;
this.CC = CollisionMC;
this.P = ParentMC;
this.collision = new Collision(this.TC, this.CC, this.P, Gravity, MaxVel);
this.P.level.Actors.push(this);
};
_global.Actor = v1;
var v2 = v1.prototype;
v2.Run = function (Direction, Speed) {
this.collision.Running = true;
if (Direction == 1) {
this.collision.XVel += Speed;
} else {
this.collision.XVel -= Speed;
}
};
v2.jumpAnim = function () {
var v2 = 0;
if (!this.collision.onGround) {
if (this.collision.Grav < -1) {
v2 = 1;
return v2;
}
if (this.collision.Grav > 1) {
v2 = 3;
return v2;
}
v2 = 2;
}
return v2;
};
v2.Jump = function (pow) {
this.TC._y -= 20;
this.collision.Grav = -pow;
};
v2.Force = function (force) {
this.collision.XForce = force;
};
v2.update = function () {
this.collision.update();
};
v2.onGround = function () {
return this.collision.onGround;
};
v2.SkipThis = function (o) {
this.collision.Skip(o);
};
v2.TC = null;
v2.CC = null;
v2.P = null;
ASSetPropFlags(_global.Actor.prototype, null, 1);
}
#endinitclip
}
movieClip 2721 __Packages.Collision {
#initclip
if (!_global.Collision) {
var v1 = function (TargetMC, CollisionMC, ParentMC, Gravity, maxvel) {
this.zz = new zaman();
this.TC = TargetMC;
this.CC = CollisionMC;
this.P = ParentMC;
this.G = Gravity;
this.MaxXVel = maxvel;
};
_global.Collision = v1;
var v2 = v1.prototype;
v2.Coll = function (TX, TY) {
var v3;
v3 = this.CC.hitTest(TX + this.P._x, TY + this.P._y, true);
if (!v3) {
var v2 = 0;
while (v2 < this.P.level.CollisionObjects.length) {
if (this.P.level.CollisionObjects[v2] != this.SkipObj) {
if (this.P.level.CollisionObjects[v2].hitTest(TX + this.P._x, TY + this.P._y, true)) {
v3 = true;
break;
}
}
++v2;
}
}
return v3;
};
v2.update = function () {
this.onGround = false;
var v2 = 0;
while (v2 <= 9) {
if (this.Coll(this.TC._x, this.TC._y + v2)) {
this.onGround = true;
break;
}
v2 += 3;
}
if (this.XVel < 0) {
if (this.XVel < -this.MaxXVel) {
this.XVel = -this.MaxXVel;
}
} else {
if (this.XVel > this.MaxXVel) {
this.XVel = this.MaxXVel;
}
}
var v4 = 0;
if (this.XVel + this.XForce < 0) {
v4 = -this.CollisionWidth;
} else {
v4 = this.CollisionWidth;
}
this.totalVel = this.XVel + this.XForce + this.OutSideForce;
if (this.Coll(this.TC._x + this.totalVel + v4, this.TC._y + this.VCheck)) {
this.totalVel = 0;
}
if (!this.Running) {
this.XVel = this.zz.CurveValue(0, this.XVel, 0.4);
if (this.XVel < 0.4 and this.XVel > -0.4) {
this.XVel = 0;
}
}
this.TC._x += this.totalVel;
this.XForce = this.zz.CurveValue(0, this.XForce, 0.2);
if (!this.onGround) {
if (!this.cutJump) {
this.Grav += -this.G;
} else {
this.Grav += -(this.G * 2);
}
} else {
this.Grav = 0;
}
this.TC._y += this.Grav;
if (this.onGround and this.Grav >= 0) {
if (!this.Coll(this.TC._x, this.TC._y + 1)) {
this.TC._y += 4;
} else {
var v3 = 0;
while (this.Coll(this.TC._x, this.TC._y - 1)) {
++v3;
this.TC._y -= 1;
if (v3 > 20) {
break;
}
}
}
} else {
if (this.Grav < -1) {
if (this.Coll(this.TC._x, this.TC._y - 50)) {
this.Grav = 0;
}
}
}
this.Running = false;
this.OutSideForce = 0;
};
v2.SetMaxVel = function (mv) {
this.MaxXVel = mv;
if (this.TC._name != 'hero') {
trace(this.TC._name + ' set xvel: ' + this.MaxXVel);
}
};
v2.SetWidth = function (cw) {
this.CollisionWidth = cw;
};
v2.Skip = function (o) {
this.SkipObj = o;
};
v2.CutJump = function (flag) {
this.cutJump = flag;
};
v2.onGround = false;
v2.TC = null;
v2.CC = null;
v2.P = null;
v2.XVel = 0;
v2.YVel = 0;
v2.MaxXVel = 2;
v2.XForce = 0;
v2.YForce = 0;
v2.Grav = 0;
v2.Jumping = 0;
v2.CollisionWidth = 30;
v2.OutSideForce = 0;
v2.totalVel = 0;
v2.rot = 0;
v2.cutJump = false;
v2.VCheck = -20;
v2.Running = false;
ASSetPropFlags(_global.Collision.prototype, null, 1);
}
#endinitclip
}
movieClip 159 {
}
movieClip 162 {
}
movieClip 164 {
}
movieClip 287 {
frame 87 {
stop();
}
}
frame 137 {
function SaveControls() {
var v1 = new Object();
v1.BTN_UP = BTN_UP;
v1.BTN_LEFT = BTN_LEFT;
v1.BTN_RIGHT = BTN_RIGHT;
v1.BTN_CROUCH = BTN_CROUCH;
v1.BTN_JUMP = BTN_JUMP;
v1.BTN_FIRE = BTN_FIRE;
v1.BTN_KICK = BTN_KICK;
v1.BTN_RELOAD = BTN_RELOAD;
v1.BTN_ACTION = BTN_ACTION;
v1.BTN_MEDIC = BTN_MEDIC;
SaveFile.data.ControlObject = v1;
SaveFile.flush();
}
stop();
var z;
z = new zaman();
offset = -500;
menC._alpha = 0;
menC._visible = false;
credits._visible = false;
var disableButtons = false;
l1_initY = l1._y;
l2_initY = l2._y;
l3_initY = l3._y;
l35_initY = l35._y;
l4_initY = l4._y;
yy = 0;
l1_initX = l1._x;
l2_initX = l2._x;
l3_initX = l3._x;
l35_initX = l35._x;
l4_initX = l4._x;
xx = 0;
var CurrentMenu = 0;
contMenu._visible = false;
contMenu._alpha = 0;
credits._visible = false;
credits._alpha = 0;
var SaveFile = SharedObject.getLocal('ProjectFlameDemoV6');
var okLoad = SaveFile.data.SaveObject != undefined;
var toLoad = false;
trace('!!!!!!!!!!!!!!! SaveFile: ' + SaveFile + ' Obj: ' + SaveFile.data.SaveObject);
if (okLoad) {
menC.loadBTN._alpha = 100;
} else {
menC.loadBTN._alpha = 50;
}
if (SaveFile.data.ControlObject != undefined) {
BTN_UP = SaveFile.data.ControlObject.BTN_UP;
BTN_LEFT = SaveFile.data.ControlObject.BTN_LEFT;
BTN_RIGHT = SaveFile.data.ControlObject.BTN_RIGHT;
BTN_CROUCH = SaveFile.data.ControlObject.BTN_CROUCH;
BTN_JUMP = SaveFile.data.ControlObject.BTN_JUMP;
BTN_FIRE = SaveFile.data.ControlObject.BTN_FIRE;
BTN_KICK = SaveFile.data.ControlObject.BTN_KICK;
BTN_RELOAD = SaveFile.data.ControlObject.BTN_RELOAD;
BTN_ACTION = SaveFile.data.ControlObject.BTN_ACTION;
BTN_MEDIC = SaveFile.data.ControlObject.BTN_MEDIC;
}
onEnterFrame = function () {
msx = _root._xmouse;
msy = _root._ymouse;
if (msx > Stage.width) {
msx = Stage.width;
}
if (msx < 0) {
msx = 0;
}
if (msy > Stage.height) {
msy = Stage.height;
}
if (msy < 0) {
msy = 0;
}
if (menC._alpha < 100 and darkak._alpha == 0) {
menC._alpha += 5;
if (menC._alpha > 100) {
menC._alpha = 100;
}
}
if (darkak._alpha > 0) {
darkak._alpha -= 2;
if (darkak._alpha < 0) {
darkak._alpha = 0;
menC._visible = true;
}
}
if (CurrentMenu == 0) {
contMenu._x += (800 - contMenu._x) / 4;
contMenu._alpha += Math.floor(-contMenu._alpha / 4);
credits._x += (800 - credits._x) / 4;
credits._alpha += Math.floor(-credits._alpha / 4);
menC._x += (190 - menC._x) / 4;
menC._alpha += Math.ceil((100 - menC._alpha) / 4);
} else {
if (CurrentMenu == 1) {
contMenu._x += (252 - contMenu._x) / 4;
contMenu._alpha += Math.ceil((100 - contMenu._alpha) / 4);
menC._x += (-320 - menC._x) / 4;
menC._alpha += Math.round(-menC._alpha / 4);
credits._x += (800 - credits._x) / 4;
credits._alpha += Math.floor(-credits._alpha / 4);
} else {
if (CurrentMenu == 2) {
contMenu._x += (800 - contMenu._x) / 4;
contMenu._alpha += Math.floor(-contMenu._alpha / 4);
credits._x += (235 - credits._x) / 4;
credits._alpha += Math.floor((100 - credits._alpha) / 4);
menC._x += (-320 - menC._x) / 4;
menC._alpha += Math.round(-menC._alpha / 4);
}
}
}
menC._visible = menC._alpha > 20;
contMenu._visible = contMenu._alpha > 20;
credits._visible = credits._alpha > 20;
ty = -msy + Stage.height + offset;
yy = z.CurveValue(ty, yy, 0.05);
l1._y = l1_initY + yy / 6;
l2._y = l2_initY + yy / 7;
l3._y = l3_initY + yy / 12;
l35._y = l35_initY + yy / 15;
l4._y = l4_initY + yy / 20;
tx = -msx + Stage.width + offset;
xx = z.CurveValue(tx, xx, 0.05);
l1._x = l1_initX + xx / 3;
l2._x = l2_initX + xx / 5;
l3._x = l3_initX + xx / 9;
l35._x = l35_initX + xx / 12;
l4._x = l4_initX + xx / 20;
};
}
movieClip 301 {
}
movieClip 305 {
frame 1 {
stop();
}
frame 32 {
stop();
}
}
movieClip 306 {
}
movieClip 309 {
}
movieClip 312 {
}
movieClip 316 {
}
movieClip 320 {
}
movieClip 321 {
}
movieClip 322 {
}
movieClip 324 {
}
movieClip 325 {
frame 1 {
stop();
}
frame 32 {
stop();
}
}
movieClip 328 {
}
movieClip 329 {
}
movieClip 330 {
instance of movieClip 316 {
onClipEvent (release) {
getURL('http://nucleusgames.com', '_blank');
}
}
}
movieClip 334 {
frame 1 {
stop();
}
frame 32 {
stop();
}
}
movieClip 337 {
}
movieClip 338 {
}
movieClip 339 {
}
movieClip 340 {
frame 1 {
stop();
}
frame 32 {
stop();
}
}
movieClip 381 {
}
movieClip 382 {
}
movieClip 385 {
frame 1 {
onPress = function () {
getURL('http://www.nucleusgames.com', '_blank');
};
}
}
// unknown tag 88 length 63
movieClip 392 {
frame 1 {
if (!ACTIVATED) {
ACTIVATED = true;
blur = new flash.filters.BlurFilter(0, 10, 1);
var hover = new Sound(this);
hover.attachSound('toif');
var zz = new zaman();
var mouseIN = false;
var timer = random(350);
var blurF = 0;
ttt.text = bText;
stop();
onEnterFrame = function () {
timer = zz.WrapValue(timer + 5);
blurX = 5 + Math.sin(zz.rad(timer)) * 2;
if (mouseIN) {
blurF = zz.CurveValue(0, blurF, 0.2);
} else {
blurF = zz.CurveValue(blurX, blurF, 0.4);
}
blur.blurX = Math.abs(blurF);
blur.blurY = Math.abs(blurF);
filters = [blur];
};
onRollOver = function () {
gotoAndStop(2);
mouseIN = true;
hover.start();
};
onRollOut = function () {
gotoAndStop(1);
mouseIN = false;
};
onReleaseOutside = function () {
gotoAndStop(1);
mouseIN = false;
};
}
}
}
movieClip 395 {
frame 1 {
if (!ACTIVATED) {
ACTIVATED = true;
blur = new flash.filters.BlurFilter(0, 10, 1);
var hover = new Sound(this);
hover.attachSound('toif');
var zz = new zaman();
var mouseIN = false;
var timer = random(350);
var blurF = 0;
ttt.text = bText;
stop();
onEnterFrame = function () {
timer = zz.WrapValue(timer + 5);
blurX = 5 + Math.sin(zz.rad(timer)) * 2;
if (mouseIN) {
blurF = zz.CurveValue(0, blurF, 0.2);
} else {
blurF = zz.CurveValue(blurX, blurF, 0.4);
}
blur.blurX = Math.abs(blurF);
blur.blurY = Math.abs(blurF);
filters = [blur];
};
onRollOver = function () {
gotoAndStop(2);
mouseIN = true;
hover.start();
};
onRollOut = function () {
gotoAndStop(1);
mouseIN = false;
};
onReleaseOutside = function () {
gotoAndStop(1);
mouseIN = false;
};
}
}
}
movieClip 398 {
frame 1 {
if (!ACTIVATED) {
ACTIVATED = true;
blur = new flash.filters.BlurFilter(0, 10, 1);
var hover = new Sound(this);
hover.attachSound('toif');
var zz = new zaman();
var mouseIN = false;
var timer = random(350);
var blurF = 0;
ttt.text = bText;
stop();
onEnterFrame = function () {
timer = zz.WrapValue(timer + 5);
blurX = 5 + Math.sin(zz.rad(timer)) * 2;
if (mouseIN) {
blurF = zz.CurveValue(0, blurF, 0.2);
} else {
blurF = zz.CurveValue(blurX, blurF, 0.4);
}
blur.blurX = Math.abs(blurF);
blur.blurY = Math.abs(blurF);
filters = [blur];
};
onRollOver = function () {
gotoAndStop(2);
mouseIN = true;
hover.start();
};
onRollOut = function () {
gotoAndStop(1);
mouseIN = false;
};
onReleaseOutside = function () {
gotoAndStop(1);
mouseIN = false;
};
}
}
}
movieClip 401 {
frame 1 {
if (!ACTIVATED) {
ACTIVATED = true;
blur = new flash.filters.BlurFilter(0, 10, 1);
var hover = new Sound(this);
hover.attachSound('toif');
var zz = new zaman();
var mouseIN = false;
var timer = random(350);
var blurF = 0;
ttt.text = bText;
stop();
onEnterFrame = function () {
timer = zz.WrapValue(timer + 5);
blurX = 5 + Math.sin(zz.rad(timer)) * 2;
if (mouseIN) {
blurF = zz.CurveValue(0, blurF, 0.2);
} else {
blurF = zz.CurveValue(blurX, blurF, 0.4);
}
blur.blurX = Math.abs(blurF);
blur.blurY = Math.abs(blurF);
filters = [blur];
};
onRollOver = function () {
gotoAndStop(2);
mouseIN = true;
hover.start();
};
onRollOut = function () {
gotoAndStop(1);
mouseIN = false;
};
onReleaseOutside = function () {
gotoAndStop(1);
mouseIN = false;
};
}
}
}
movieClip 402 {
instance of movieClip 392 {
onClipEvent (release) {
if (!_root.disableButtons) {
_root.disableButtons = true;
_root.play();
_root.lite.play();
_root.l1.lite.play();
_root.l2.lite.play();
_root.l4.lite.play();
}
}
}
instance of movieClip 395 {
onClipEvent (load) {
var bText = 'Controls';
}
onClipEvent (release) {
if (!_root.disableButtons) {
_root.CurrentMenu = 1;
}
}
}
instance of movieClip 398 {
onClipEvent (load) {
var bText = 'Credits';
}
onClipEvent (release) {
if (!_root.disableButtons) {
_root.CurrentMenu = 2;
}
}
}
instance loadBTN of movieClip 401 {
onClipEvent (release) {
if (!_root.disableButtons and _root.okLoad) {
_root.toLoad = true;
_root.disableButtons = true;
_root.play();
_root.lite.play();
_root.l1.lite.play();
_root.l2.lite.play();
_root.l4.lite.play();
}
}
}
}
// unknown tag 88 length 142
// unknown tag 88 length 145
movieClip 409 {
}
movieClip 411 {
}
movieClip 414 {
}
movieClip 415 {
}
movieClip 422 {
frame 1 {
function ChangeControls() {
ccText.text = 'Left (Move)';
pk4._visible = true;
Changing = true;
cKey = 0;
lKey = Key.getCode();
onEnterFrame = ChangingControlsFunction;
}
function ChangingControlsFunction() {
xcode = Key.getCode();
if (xcode != lKey) {
lKey = xcode;
switch (cKey) {
case 0:
_root.BTN_LEFT = xcode;
cKey = 1;
ccText.text = 'Right (Move)';
break;
case 1:
_root.BTN_RIGHT = xcode;
cKey = 2;
ccText.text = 'UP (Elevator control, can be mixed with others)';
break;
case 2:
_root.BTN_UP = xcode;
cKey = 3;
ccText.text = 'Down (crouching,Elevator)';
break;
case 3:
_root.BTN_CROUCH = xcode;
cKey = 4;
ccText.text = 'Jump';
break;
case 4:
_root.BTN_JUMP = xcode;
cKey = 5;
ccText.text = 'Fire';
break;
case 5:
_root.BTN_FIRE = xcode;
cKey = 6;
ccText.text = 'Kick';
break;
case 6:
_root.BTN_KICK = xcode;
cKey = 7;
ccText.text = 'Reload';
break;
case 7:
_root.BTN_RELOAD = xcode;
cKey = 8;
ccText.text = 'Action / Interaction / Open';
break;
case 8:
_root.BTN_ACTION = xcode;
cKey = 9;
ccText.text = 'Use medic pack';
break;
case 9:
_root.BTN_MEDIC = xcode;
cKey = 0;
ccText.text = 'Done!!';
Changing = false;
pk4._visible = false;
_root.SaveControls();
delete onEnterFrame;
}
}
}
var Changing = false;
var cKey = 0;
var lKey = 0;
var xcode = 0;
ccText.text = '';
pk4._visible = false;
}
instance of movieClip 409 {
onClipEvent (press) {
if (!_parent.Changing) {
_root.CurrentMenu = 0;
}
}
}
instance of movieClip 411 {
onClipEvent (press) {
if (!_parent.Changing) {
_parent.ChangeControls();
}
}
}
}
// unknown tag 88 length 68
movieClip 428 {
}
movieClip 429 {
frame 1 {
var startPos = 300;
txt._y = startPos;
var lastVisible = false;
onEnterFrame = function () {
if (lastVisible != _visible) {
txt._y = startPos;
}
txt._y -= 1.2;
if (txt._y < -txt._height) {
txt._y = startPos;
}
lastVisible = _visible;
};
}
instance of movieClip 409 {
onClipEvent (press) {
_root.CurrentMenu = 0;
}
}
}
movieClip 431 {
}
movieClip 434 {
}
frame 201 {
stop();
if (toLoad) {
gotoAndStop('StartTheGame');
}
}
movieClip 439 {
}
// unknown tag 88 length 151
movieClip 442 {
}
movieClip 444 {
}
movieClip 446 {
}
movieClip 449 {
}
movieClip 451 {
}
movieClip 456 {
}
movieClip 461 {
}
movieClip 462 {
}
movieClip 465 {
}
movieClip 468 {
}
movieClip 471 {
}
movieClip 474 {
}
movieClip 478 {
}
movieClip 481 {
}
movieClip 483 {
}
movieClip 485 {
}
movieClip 491 {
}
movieClip 492 {
}
movieClip 494 {
}
movieClip 496 {
}
movieClip 498 {
}
movieClip 500 {
}
movieClip 502 {
}
movieClip 504 {
}
movieClip 506 {
}
movieClip 508 {
}
movieClip 509 {
frame 24 {
stop();
}
}
movieClip 514 {
}
movieClip 522 {
}
movieClip 525 {
}
movieClip 528 {
}
movieClip 531 {
}
movieClip 534 {
}
movieClip 536 {
}
movieClip 538 {
}
movieClip 551 {
frame 30 {
stop();
}
}
movieClip 554 {
frame 197 {
stop();
}
}
movieClip 557 {
}
movieClip 561 {
}
movieClip 562 {
frame 56 {
stop();
}
}
movieClip 563 {
frame 1367 {
stop();
_parent.nextFrame();
}
}
movieClip 566 {
frame 1 {
onPress = function () {
_parent.play();
};
}
}
movieClip 572 {
}
movieClip 601 {
}
movieClip 635 {
}
movieClip 638 {
}
movieClip 639 {
}
movieClip 640 {
}
movieClip 641 {
frame 222 {
_parent.play();
}
}
frame 203 {
function Reload() {
if (GazMeter < 100) {
LockFire = true;
stats.reload.play();
}
}
function FadeIn() {
FadeAct = 1;
}
function FadeOut() {
FadeAct = 2;
}
function Die() {
justDied = true;
DiedOnce = true;
Dying = true;
}
function SaveTheGame() {
SaveFile.data.SaveObject = SaveSystem.GetObject();
SaveFile.flush();
}
function CheckPointSaved() {
CPSTimer = 80;
}
var z = new zaman();
var SaveSystem = new SaveGame();
var quality = 2;
var Lang = new Languages.Lang_English();
var keys = new Array();
i = 0;
while (i < 255) {
keys.push(0);
++i;
}
var oldkeys = new Array();
i = 0;
while (i < 255) {
oldkeys.push(0);
++i;
}
_root.grav = -1;
_global.life = 100;
var Fader = 100;
var FadeAct = 0;
var SmoothHealth = 0;
FadeAct = 1;
var tele = false;
var TargetLabel = '';
var TargetFrame = 1;
var TargetDirection = 1;
var point = '';
var GazMeter = 100;
var SmoothGaz = 0;
var MonsterSave = new Array();
var CurrentLevel;
var LockFire = false;
var Dying = false;
var justDied = false;
var lockControls = false;
var mpcount = 0;
var bombcount = 0;
var datacount = 0;
var CurrentLevelID = 0;
var UsedMed = false;
var DiedOnce = false;
var CPSTimer = 0;
cps._alpha = 0;
if (toLoad) {
SaveFile.data.SaveObject;
SaveSystem.SetObject(SaveFile.data.SaveObject);
CurrentLevelID = SaveSystem.LoadCheckPoint();
toLoad = false;
gotoAndStop(CurrentLevelID);
} else {
gotoAndStop(204);
}
this.onEnterFrame = function () {
if (_global.life < 80) {
}
if (GazMeter <= 0) {
Reload();
}
stats.reloadhint._visible = GazMeter <= 0;
if (Dying) {
tele = false;
FadeAct = -1;
Fader += 1;
trace(Fader);
if (Fader > 100) {
Fader = 100;
Dying = false;
_global.life = 100;
GazMeter = 100;
FadeIn();
CurrentLevelID = SaveSystem.LoadCheckPoint();
gotoAndStop(CurrentLevelID);
}
}
if (FadeAct == 1) {
if (Fader > 0) {
Fader -= 10;
if (Fader < 0) {
Fader = 0;
}
}
}
if (FadeAct == 2) {
if (Fader < 100) {
Fader += 10;
if (Fader > 100) {
Fader = 100;
}
}
}
faderMC._alpha = Fader;
i = 0;
while (i < 255) {
if (Key.isDown(i) && oldkeys[i] == 0) {
keys[i] = 1;
} else {
keys[i] = 0;
}
oldkeys[i] = Key.isDown(i);
++i;
}
if (_global.life < 0) {
_global.life = 0;
}
if (_global.life > 100) {
_global.life = 100;
}
if (_global.life <= 0) {
}
SmoothHealth = z.CurveValue(_global.life, SmoothHealth, 0.1);
stats.health.gotoAndStop(Math.ceil(100 - SmoothHealth + 1));
SmoothGaz = z.CurveValue(GazMeter, SmoothGaz, 0.2);
var v2 = 7 - SmoothGaz / 1.4285 / 10;
stats.gaz.gotoAndStop(Math.ceil(v2));
if (CPSTimer > 0) {
--CPSTimer;
cps._alpha += Math.ceil((100 - cps._alpha) / 8);
} else {
cps._alpha += Math.floor(-cps._alpha / 8);
}
if (tele) {
if (Fader == 100) {
SaveSystem.SaveLevel(CurrentLevel);
if (CurrentLevel.CheckPoint) {
SaveSystem.SaveCheckPoint(CurrentLevelID);
SaveTheGame();
CheckPointSaved();
}
CurrentLevel.swapDepths(90000000);
CurrentLevel.removeMovieClip();
tele = false;
FadeIn();
CurrentLevelID = TargetFrame;
gotoAndStop(TargetFrame);
}
}
};
}
movieClip 646 {
}
movieClip 647 {
}
movieClip 648 {
}
movieClip 650 {
}
movieClip 657 {
}
movieClip 658 {
}
movieClip 659 {
frame 1 {
onEnterFrame = function () {
if (_parent._xmouse > _x and _parent._xmouse < _x + _width and _parent._ymouse < 75) {
_y = _y + (-26 - _y) / 6;
} else {
_y = _y + (-79 - _y) / 6;
}
};
}
instance of movieClip 657 {
onClipEvent (press) {
stopAllSounds();
_root.gotoAndPlay('MainMenu');
}
}
instance of movieClip 658 {
onClipEvent (press) {
_quality = 'high';
}
}
instance of movieClip 658 {
onClipEvent (press) {
_quality = 'medium';
}
}
instance of movieClip 658 {
onClipEvent (press) {
_quality = 'low';
}
}
}
movieClip 661 {
}
movieClip 683 {
frame 1 {
function AddSound(sname) {
var v2 = new Sound(this);
v2.attachSound(sname);
sounds.push(v2);
}
function Play(id) {
if (current != id) {
sounds[id].start(0, 0);
}
}
stop();
var sounds = new Array();
AddSound('sndElHit');
AddSound('sndSwitchOn');
AddSound('sndIronDoor');
AddSound('MonsterLightEventComes');
AddSound('LightsOff');
AddSound('hjump');
AddSound('LightToggel1');
AddSound('AcidFall');
var current = -1;
var Playing = false;
}
}
instance snd of movieClip 683 {
onClipEvent (load) {
stop();
this._visible = 0;
}
}
movieClip 688 {
frame 1 {
function AddSong(sname) {
var v3 = this.getNextHighestDepth();
var v4 = this.createEmptyMovieClip('container' + v3, v3);
var v2 = new Sound(v4);
v2.attachSound(sname);
Songs.push(v2);
SVol.push(new Number(50));
}
function Play(id) {
trace('BGM ToPlay:' + id);
if (current != id) {
Songs[id].start(0, 1000);
Songs[id].setVolume(10);
SVol[id] = 10;
current = id;
Playing = true;
}
}
function sStop() {
trace('BGM Stoped');
Playing = false;
current = -1;
}
function ForceStop() {
Playing = false;
current = -1;
var v1 = 0;
while (v1 < Songs.length) {
Songs[v1].stop();
++v1;
}
}
function Pause() {}
stop();
var Songs = new Array();
var SVol = new Array();
AddSong('sngBG1');
AddSong('FanEvent');
AddSong('MeetTheGhost');
AddSong('TempleEntranceMusic');
var current = -1;
var Playing = false;
onEnterFrame = function () {
if (_root.keys[33]) {
this.Play(0);
}
if (_root.keys[34]) {
this.Play(1);
}
var v5;
var v3 = 0;
while (v3 < Songs.length) {
var v4 = SVol[v3];
if (v3 == current) {
if (SVol[v3] < 100) {
SVol[v3] += 2;
}
} else {
if (SVol[v3] > 2) {
SVol[v3] -= 2;
} else {
Songs[v3].stop();
}
}
if (v4 != SVol[v3]) {
Songs[v3].setVolume(SVol[v3]);
}
++v3;
}
};
}
}
instance bgm of movieClip 688 {
onClipEvent (load) {
stop();
}
}
movieClip 691 {
}
movieClip 706 {
frame 15 {
stop();
}
}
movieClip 708 {
frame 1 {
stop();
}
frame 36 {
_root.GazMeter = 100;
_root.LockFire = false;
}
}
// unknown tag 88 length 73
movieClip 722 {
}
movieClip 723 {
}
movieClip 725 {
}
movieClip 728 {
}
movieClip 729 {
}
movieClip 730 {
}
movieClip 743 {
frame 1 {
stop();
}
}
movieClip 756 {
frame 1 {
stop();
}
}
movieClip 769 {
frame 1 {
stop();
}
}
movieClip 780 {
frame 1 {
stop();
}
}
movieClip 792 {
frame 1 {
stop();
}
}
movieClip 799 {
frame 1 {
stop();
}
}
movieClip 800 {
frame 1 {
bomb._visible = false;
bomb_text._visible = false;
var old = 30;
onEnterFrame = function () {
mp_text.text = 'x' + _root.mpcount.toString();
bomb_text.text = 'x' + _root.bombcount.toString();
dt_text.text = 'x' + _root.datacount.toString();
if (old != _root.datacount) {
trace('Data Count: ' + _root.datacount);
}
old = _root.datacount;
if (_root.SaveSystem.keys[0]) {
key1._alpha = 100;
} else {
key1._alpha = 0;
}
if (_root.SaveSystem.keys[1]) {
key2._alpha = 100;
} else {
key2._alpha = 0;
}
if (_root.SaveSystem.keys[2]) {
key3._alpha = 100;
} else {
key3._alpha = 0;
}
};
}
}
// unknown tag 88 length 105
movieClip 805 {
}
movieClip 808 {
}
movieClip 811 {
}
movieClip 813 {
}
movieClip 816 {
}
movieClip 819 {
}
movieClip 823 {
}
movieClip 825 {
}
movieClip 827 {
}
movieClip 829 {
}
movieClip 830 {
}
movieClip 833 {
}
movieClip 835 {
frame 1 {
function PlayConv() {
trace('playing text');
TextCounter = 0;
TextSeeker = 0;
Active = true;
_global.Lock = true;
textOBJ.text = TextBank[TextCounter][1].slice(0, TextSeeker);
SetName(TextBank[TextCounter][0]);
var v2 = TextBank[TextCounter][0] + 2;
gotoAndStop(v2);
}
function NewConv() {
TextBank = new Array();
trace('Added new fucking array');
}
function AddText(char, txt) {
TextBank.push(new Array(char, txt));
trace('Added new fucking Text');
}
function Say(char, txt) {
NewConv();
AddText(char, txt);
PlayConv();
}
function SayOthers(idx) {
PlayArray(_root.Lang.Others[idx]);
}
function SayConv(idx) {
PlayArray(_root.Lang.Conversations[idx]);
}
function PlayArray(convArray) {
TextBank = convArray;
PlayConv();
}
function Next() {
if (Active) {
if (TextSeeker < TextBank[TextCounter][1].length) {
TextSeeker = TextBank[TextCounter][1].length - 1;
} else {
if (TextCounter < TextBank.length - 1) {
trace('Next');
++TextCounter;
TextSeeker = 0;
} else {
_global.Lock = false;
Active = false;
}
}
}
}
function SetName(id) {
if (id == 1) {
nameOBJ.text = 'Adam';
}
if (id == 2) {
nameOBJ.text = 'Vux';
}
if (id == 3) {
nameOBJ.text = 'S.Aya';
}
if (id == 5) {
nameOBJ.text = 'Ghost';
}
}
if (!ACTIVATED) {
ACTIVATED = true;
var AStage = 0;
var Conv;
var ConvCounter = 0;
var TextCounter = 0;
var TextBank;
var Active = false;
var ActualText = '';
var TextSeeker = 0;
var Scaler = 0;
var Show = false;
TextBank = new Array();
TextBank.push(new Array(1, new String('Hello, my name is adam\rAnd I am the hero of this game')));
TextBank.push(new Array(1, new String('Do you believe in fairy tales?\rno?')));
TextBank.push(new Array(1, new String('Fuck you then!')));
gotoAndStop(2);
textOBJ.multiline = true;
textOBJ.wordWrap = true;
var E = false;
var WhoSpeaks = 0;
}
onEnterFrame = function () {
WhoSpeaks = 0;
if (Active and Scaler < 100) {
Scaler += 10;
if (Scaler > 100) {
Scaler = 100;
}
}
if (!Active and Scaler > 0) {
Scaler -= 10;
if (Scaler < 0) {
Scaler = 0;
}
}
if (Scaler < 5) {
gotoAndStop(2);
_visible = false;
} else {
_visible = true;
}
if (Active and Scaler == 100) {
if (TextSeeker < TextBank[TextCounter][1].length) {
++TextSeeker;
while (TextBank[TextCounter][1].charAt(TextSeeker) == '\n') {
++TextSeeker;
}
WhoSpeaks = TextBank[TextCounter][0];
}
textOBJ.text = TextBank[TextCounter][1].slice(0, TextSeeker);
var v2 = TextBank[TextCounter][0] + 2;
gotoAndStop(v2);
SetName(TextBank[TextCounter][0]);
if ((_root.keys[_root.BTN_FIRE] or _root.keys[_root.BTN_KICK] or _root.keys[_root.BTN_ACTION]) and E) {
Next();
}
} else {
if (textOBJ.text != '') {
}
textOBJ.text = '';
if (nameOBJ.text != '') {
}
nameOBJ.text = '';
}
E = Active;
_xscale = Scaler;
_yscale = Scaler;
_alpha = Scaler;
};
}
}
movieClip 837 {
}
movieClip 840 {
}
instance mbg of movieClip 840 {
onClipEvent (enterFrame) {
_x = _root.CurrentLevel._x / 12;
_y = _root.CurrentLevel._y / 12;
if (_x > 0) {
_x = 0;
}
if (_y > 0) {
_y = 0;
}
if (_x < -_width + 800) {
_x = -_width + 800;
}
if (_y < -_height + 500) {
_y = -_height + 500;
}
}
}
movieClip 843 {
}
instance mbg of movieClip 843 {
onClipEvent (enterFrame) {
_x = _root.CurrentLevel._x / 4;
_y = _root.CurrentLevel._y / 4;
if (_y > 0) {
_y = 0;
}
if (_y < -_height + Stage.height) {
_y = -_height + 500;
}
}
}
movieClip 849 {
}
movieClip 850 {
frame 1 {
function Shoot() {
if (FreqTimer == Freq and _root.GazMeter > 0) {
--_root.GazMeter;
if (_parent.direction == 1) {
tx = _parent._x + _x + random(3);
ty = _parent._y + _y + random(3);
} else {
tx = _parent._x - _x + random(3);
ty = _parent._y + _y + random(3);
}
FreqTimer = 0;
dp = _parent._parent.getNextHighestDepth();
_parent._parent.attachMovie('FireMC', 'pfMC' + dp, dp);
_parent._parent['pfMC' + dp]._x = tx;
_parent._parent['pfMC' + dp]._y = ty;
_parent._parent['pfMC' + dp].direction = _parent.direction;
}
}
if (!Activated) {
Activated = true;
var Freq = 2;
var FreqTimer = 0;
var targetMC = _parent._parent;
}
this.onEnterFrame = function () {
if (FreqTimer < Freq) {
++FreqTimer;
}
};
}
instance of movieClip 849 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 867 {
frame 1 {
if (!ACTIVATED) {
ACTIVATED = true;
stop();
var prev = false;
var die = false;
gotoAndStop(2);
}
onEnterFrame = function () {
if (_parent.DontChangeDirection) {
if (prev != _parent.DontChangeDirection) {
gotoAndPlay(3);
}
if (this._currentframe > 7) {
gotoAndPlay(3);
}
die = true;
} else {
if (die and _currentframe > 2) {
die = false;
play();
}
}
prev = _parent.DontChangeDirection;
};
}
frame 19 {
stop();
}
}
movieClip 869 {
}
movieClip 871 {
frame 1 {
this._visible = false;
stop();
}
frame 2 {
this._visible = false;
stop();
}
}
movieClip 873 {
frame 1 {
_visible = false;
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 952 {
}
movieClip 969 {
}
movieClip 986 {
}
movieClip 1003 {
}
movieClip 1020 {
frame 4 {
_parent.hit = true;
trace('Should hit');
}
frame 5 {
_parent.hit = false;
}
frame 9 {
_parent.kicking = false;
}
}
movieClip 1025 {
}
movieClip 1032 {
}
movieClip 1043 {
frame 10 {
_parent.GettingHit = false;
}
}
movieClip 1086 {
frame 21 {
stop();
}
}
movieClip 1151 {
}
movieClip 1255 {
frame 42 {
_root.Die();
stop();
}
}
movieClip 1270 {
frame 8 {
stop();
onEnterFrame = function () {
if (_parent.ReleaseCroch) {
play();
onEnterFrame = null;
}
};
}
frame 15 {
_parent.croch = false;
}
}
movieClip 1281 {
frame 10 {
_parent.GettingHit = false;
}
}
movieClip 1282 {
frame 1 {
function hitx(power, off, _dir) {
_global.life -= power;
GettingHit = true;
croch = false;
kicking = false;
this.gotoAndStop(9);
if (_dir == 1) {
MyActor.Force(-off);
} else {
MyActor.Force(off);
}
}
function ehit(power, off, _dir) {
_global.life -= power;
_root.snd.Play(0);
GettingHit = true;
croch = false;
this.gotoAndStop(14);
if (_dir == 1) {
MyActor.Force(-off);
} else {
MyActor.Force(off);
}
}
function Acid() {
if (!AcidDeath) {
_root.snd.Play(7);
}
_global.life = 0;
AcidDeath = true;
Lock = true;
this.gotoAndStop(12);
}
stop();
if (!activated) {
var z;
z = new zaman();
var MyActor = new Actor(this, _parent.coll, _parent, _root.grav, 8);
blur = new flash.filters.BlurFilter(0, 10, 1);
var speed = 1.8;
var act = 0;
var anim = 0;
var direction = _root.TargetDirection;
var hit = false;
var SpeedVX = 0;
var XForce = 0;
var YForce = 0;
var onGround = 0;
var grav = 0;
var jumping = 0;
var kicking = false;
var DontChangeDirection = false;
var Moving = false;
var GettingHit = false;
var croch = false;
var ReleaseCroch = false;
var AcidDeath = false;
var DT_Hapen = false;
var DT_timer = 0;
var Lock = false;
var BlurFactor = 0;
var Pushing = false;
var kJump = false;
initOverride();
activated = true;
var BTN_LEFT = _root.BTN_LEFT;
var BTN_RIGHT = _root.BTN_RIGHT;
var BTN_CROUCH = _root.BTN_CROUCH;
var BTN_JUMP = _root.BTN_JUMP;
var BTN_FIRE = _root.BTN_FIRE;
var BTN_KICK = _root.BTN_KICK;
var BTN_RELOAD = _root.BTN_RELOAD;
var BTN_ACTION = _root.BTN_ACTION;
var BTN_MEDIC = _root.BTN_MEDIC;
_parent.level.gotoHero();
}
this.onEnterFrame = function () {
Moving = false;
if (_global.life <= 0 and !AcidDeath) {
_root.Die();
Lock = true;
gotoAndStop(10);
Lock = true;
}
if (!Lock and !_global.Lock) {
act = 0;
if (kJump) {
if (MyActor.onGround()) {
kJump = false;
MyActor.collision.CutJump(false);
}
}
if (!Pushing) {
MyActor.collision.SetMaxVel(8);
} else {
MyActor.collision.SetMaxVel(2);
}
if (Key.isDown(BTN_CROUCH) && act != 2 && act != 3 and MyActor.onGround() and !GettingHit and !_root.lockControls) {
if (!croch) {
croch = true;
ReleaseCroch = false;
this.gotoAndStop(13);
coll._yscale = 65;
}
} else {
if (croch) {
ReleaseCroch = true;
}
}
if (!croch) {
coll._yscale = 100;
}
if (Key.isDown(BTN_RIGHT) && act != 2 && act != 3 and !croch and !_root.lockControls) {
MyActor.Run(1, speed);
act = 1;
if (!DontChangeDirection) {
direction = 1;
}
Moving = true;
}
if (Key.isDown(BTN_LEFT) && act != 2 && act != 3 and !croch and !_root.lockControls) {
MyActor.Run(0, speed);
act = 1;
if (!DontChangeDirection) {
direction = 0;
}
Moving = true;
}
DontChangeDirection = false;
if (_root.keys[BTN_RELOAD] and !croch and !_root.lockControls) {
_root.Reload();
}
if (_root.keys[BTN_JUMP] and !croch and !_root.lockControls) {
if (MyActor.onGround()) {
act = 2;
MyActor.Jump(14.5);
kicking = false;
kJump = true;
_root.snd.Play(5);
}
}
if (Key.isDown(BTN_JUMP)) {
if (kJump) {
MyActor.collision.CutJump(false);
}
} else {
if (kJump) {
MyActor.collision.CutJump(true);
}
}
if (Key.isDown(BTN_FIRE) and MyActor.onGround() and !_root.LockFire and _root.GazMeter > 0 and !croch and !_root.lockControls) {
kicking = false;
act = 3;
this.Fire.Shoot();
DontChangeDirection = true;
if (ss_flame._currentframe != 3) {
ss_flame.gotoAndStop(3);
}
} else {
if (ss_flame._currentframe != 2) {
ss_flame.gotoAndStop(2);
}
}
if (_root.keys[BTN_KICK] && MyActor.onGround() && act <= 1 && !GettingHit and !croch and !_root.lockControls) {
kicking = true;
hit = false;
this.gotoAndStop(6);
}
if (_root.keys[BTN_MEDIC]) {
if (_root.mpcount > 0 and _global.life < 100) {
_root.UsedMed = true;
--_root.mpcount;
_global.life += 30;
}
}
var v4 = MyActor.jumpAnim();
if (v4 != 0 && !GettingHit and !croch) {
if (v4 == 1) {
this.gotoAndStop(7);
} else {
kicking = false;
this.gotoAndStop(8);
}
}
if (act == 3 and !Moving and MyActor.onGround() && !GettingHit and !croch) {
this.gotoAndStop(4);
}
if (Moving and MyActor.onGround() and !kicking && !GettingHit and !croch) {
if (act == 1) {
if (!Pushing) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(11);
}
}
if (act == 3) {
this.gotoAndStop(5);
}
if (!Pushing) {
snd_run.gotoAndStop(2);
}
} else {
snd_run.gotoAndStop(1);
}
if (Pushing) {
snd_run.gotoAndStop(1);
}
if (act == 0 and MyActor.onGround() and !kicking && !GettingHit and !croch) {
this.gotoAndStop(2);
}
if (direction == 1) {
this._xscale = 100;
} else {
this._xscale = -100;
}
blur.blurX = Math.abs(XForce);
blur.blurY = 0;
filters = [blur];
Pushing = false;
MyActor.update();
} else {
blur.blurX = 0;
blur.blurY = 0;
filters = [blur];
XForce = 0;
SpeedVX = 0;
DontChangeDirection = false;
act = 0;
ReleaseCroch = true;
croch = false;
if (!Lock) {
this.gotoAndStop(2);
}
if (ss_flame._currentframe != 2) {
ss_flame.gotoAndStop(2);
}
MyActor.update();
}
};
}
instance coll of movieClip 869 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 1292 {
}
movieClip 1293 {
frame 1 {
if (!activated) {
var z;
z = new zaman();
var ACTIVE = true;
var dead = false;
var a = 100;
var at = 100;
var SndHitHero;
SndHitHero = new Sound(this);
SndHitHero.attachSound('takeitem1');
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
stop();
ACTIVE = false;
_visible = false;
}
}
onEnterFrame = function () {
if (ACTIVE) {
var v3 = z.dist(_x, _y, _parent.hero._x, _parent.hero._y - 50);
if (v3 < 50 and at != 0) {
_root.SaveSystem.keys[1] = true;
SndHitHero.start(0, 0);
at = 0;
}
a = Math.ceil(z.CurveValue(at, a, 0.2));
if (a < 5) {
_visible = false;
dead = true;
ACTIVE = false;
}
_alpha = a;
}
};
}
}
movieClip 1304 {
}
movieClip 1305 {
frame 1 {
if (!activated) {
var z;
z = new zaman();
var ACTIVE = true;
var dead = false;
var a = 100;
var at = 100;
var SndHitHero;
SndHitHero = new Sound(this);
SndHitHero.attachSound('takeitem1');
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
stop();
ACTIVE = false;
_visible = false;
}
}
onEnterFrame = function () {
if (ACTIVE) {
var v3 = z.dist(_x, _y, _parent.hero._x, _parent.hero._y - 50);
if (v3 < 50 and at != 0) {
_root.SaveSystem.keys[2] = true;
SndHitHero.start(0, 0);
at = 0;
}
a = Math.ceil(z.CurveValue(at, a, 0.2));
if (a < 5) {
_visible = false;
dead = true;
ACTIVE = false;
}
_alpha = a;
}
};
}
}
movieClip 1322 {
}
movieClip 1323 {
frame 1 {
if (!activated) {
var z;
z = new zaman();
var ACTIVE = true;
var dead = false;
var a = 100;
var at = 100;
var SndHitHero;
SndHitHero = new Sound(this);
SndHitHero.attachSound('takeitem1');
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
stop();
ACTIVE = false;
_visible = false;
}
}
onEnterFrame = function () {
if (ACTIVE) {
var v3 = z.dist(_x, _y, _parent.hero._x, _parent.hero._y - 50);
if (v3 < 50 and at != 0) {
_root.SaveSystem.keys[0] = true;
SndHitHero.start(0, 0);
at = 0;
}
a = Math.ceil(z.CurveValue(at, a, 0.2));
if (a < 5) {
_visible = false;
dead = true;
ACTIVE = false;
}
_alpha = a;
}
};
}
}
movieClip 1406 {
frame 1 {
stop();
var timer = 0;
onEnterFrame = function () {
if (!_root.SaveSystem.bools[4]) {
++timer;
if (timer > 100) {
play();
delete this.onEnterFrame;
}
}
};
}
frame 78 {
_parent.hero._visible = true;
_global.Lock = false;
_root.SaveSystem.bools[4] = true;
this._visible = false;
_root.TextSys.PlayArray(_root.Lang.Conversations[1]);
stop();
}
}
movieClip 1408 {
}
movieClip 1409 {
}
movieClip 1410 {
frame 1 {
var z = new zaman();
var dead = false;
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
_visible = false;
}
onEnterFrame = function () {
if (_visible) {
if (z.dist(_x, _y, _parent.hero._x, _parent.hero._y) < 100) {
dead = true;
}
if (dead) {
_alpha = _alpha - 5;
if (_alpha < 6) {
this._visible = false;
}
}
}
};
}
}
movieClip 1412 {
}
movieClip 1413 {
}
movieClip 1414 {
frame 1 {
var dead = false;
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
_visible = false;
} else {
dead = true;
}
}
}
movieClip 1418 {
frame 1 {
stop();
}
}
movieClip 1419 {
frame 1 {
_visible = false;
var Activated = false;
onEnterFrame = function () {
if (_root.keys[_root.BTN_ACTION] and !Activated) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false)) {
Activated = true;
snd.play();
if (dir == 0) {
_root.TargetDirection = _parent.hero.direction;
} else {
_root.TargetDirection = dir;
}
_root.TargetFrame = to;
_root.point = point;
_root.FadeOut();
_root.tele = true;
}
}
};
}
}
movieClip 1421 {
frame 1 {
_visible = false;
}
}
movieClip 1423 {
frame 1 {
_visible = false;
var Activated = false;
onEnterFrame = function () {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, true) and !Activated) {
Activated = true;
if (dir == 0) {
_root.TargetDirection = _parent.hero.direction;
} else {
_root.TargetDirection = dir;
}
_root.TargetFrame = to;
_root.point = point;
_root.FadeOut();
_root.tele = true;
}
};
}
}
movieClip 1425 {
}
movieClip 1427 {
frame 1 {
this._visible = false;
}
}
movieClip 1428 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.setBound(-240);
level.CamFollowY(cam);
_root.bgm.Play(0);
if (!_root.SaveSystem.bools[4]) {
_global.Lock = true;
hero._visible = false;
heroStand.play();
} else {
heroStand.stop();
heroStand._visible = false;
}
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 3;
var point = 'p1';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance of movieClip 1423 {
onClipEvent (load) {
var to = 2;
var point = 'p1';
var dir = 0;
}
}
instance coll of movieClip 1425 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 1434 {
}
movieClip 1435 {
}
movieClip 1436 {
}
movieClip 1438 {
}
movieClip 1440 {
}
movieClip 1442 {
}
movieClip 1454 {
}
movieClip 1455 {
}
movieClip 1456 {
frame 1 {
if (!activated) {
var z;
z = new zaman();
var ACTIVE = true;
var dead = false;
var a = 100;
var at = 100;
var SndHitHero;
SndHitHero = new Sound(this);
SndHitHero.attachSound('takeitem1');
anm.gotoAndPlay(random(anm._totalframes - 1) + 1);
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
stop();
ACTIVE = false;
_visible = false;
}
}
onEnterFrame = function () {
if (ACTIVE) {
var v3 = z.dist(_x, _y, _parent.hero._x, _parent.hero._y - 50);
if (v3 < 50 and at != 0) {
SndHitHero.start(0, 0);
at = 0;
_root.stats.dataIcon.play();
++_root.datacount;
}
a = Math.ceil(z.CurveValue(at, a, 0.2));
if (a < 5) {
_visible = false;
dead = true;
ACTIVE = false;
}
_alpha = a;
}
};
}
}
movieClip 1458 {
}
movieClip 1459 {
}
movieClip 1460 {
}
movieClip 1462 {
}
movieClip 1472 {
}
movieClip 1502 {
}
movieClip 1504 {
}
movieClip 1505 {
}
movieClip 1540 {
frame 79 {
_parent.die();
stop();
}
}
movieClip 1541 {
frame 1 {
function die() {
PushSound.stop();
trace('die box');
ACTIVE = false;
dead = true;
delete onEnterFrame;
_visible = false;
}
if (!activated) {
var dead = false;
_root.SaveSystem.LoadMonster(this, _parent);
v.stop();
if (!dead) {
var z;
z = new zaman();
var health = 50;
var actor = new Actor(this, _parent.coll, _parent, _root.grav, 2);
_parent.level.AddCollisionObject(this.coll);
_parent.level.Monsters.push(this);
var PushSound = new Sound(this);
PushSound.attachSound('PushBox');
PushSound.stop();
actor.SkipThis(coll);
actor.collision.VCheck = -3;
var ACTIVE = true;
AI = 0;
checkOBJ._visible = false;
checkOBJ2._visible = false;
coll._visible = false;
activated = true;
var PlayingSound = false;
} else {
_visible = false;
}
}
if (_visible) {
this.onEnterFrame = function () {
var v3 = 0;
while (v3 < _parent.level.Actors.length) {
if (checkOBJ2.hitTest(_parent.level.Actors[v3].TC._x + _parent._x, _parent.level.Actors[v3].TC._y + _parent._y, true)) {
_parent.level.Actors[v3].collision.OutSideForce = this.actor.collision.totalVel;
}
++v3;
}
if (!dead) {
if (health > 0) {
v.gotoAndStop(51 - health);
} else {
PushSound.stop();
v.gotoAndPlay(50);
dead = true;
_parent.level.RemoveCollisionObject(this.coll);
}
}
if (checkOBJ.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, true)) {
if (_parent.hero.Moving and _parent.hero.MyActor.onGround() and _parent.hero.act != 3) {
if (_parent.hero.Moving and _parent.hero.MyActor.onGround() and _parent.hero.act != 3) {
if (_x > _parent.hero._x) {
if (_parent.hero.direction == 1 and _parent.hero._x < _x) {
_parent.hero.Pushing = true;
actor.Run(1, 0.2);
if (!PlayingSound) {
PlayingSound = true;
PushSound.start(0, 33333);
}
}
} else {
if (_parent.hero.direction == 0 and _parent.hero._x > _x) {
_parent.hero.Pushing = true;
actor.Run(0, 0.2);
if (!PlayingSound) {
PlayingSound = true;
PushSound.start(0, 33333);
}
}
}
}
} else {
PushSound.stop();
PlayingSound = false;
}
} else {
if (PlayingSound) {
PushSound.stop();
PlayingSound = false;
}
}
if (!dead) {
actor.update();
} else {
PushSound.stop();
}
};
onUnload = function () {
if (PlayingSound) {
PushSound.stop();
PlayingSound = false;
}
};
}
}
}
movieClip 1544 {
frame 1 {
var activated = false;
_visible = false;
onEnterFrame = function () {
if (!_root.TextSys.Active) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false) and _root.keys[69]) {
_root.TextSys.Say(id, txt);
}
}
};
}
}
movieClip 1545 {
frame 1 {
_visible = false;
var Activated = false;
onEnterFrame = function () {
if (_root.keys[_root.BTN_ACTION] and !Activated) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false)) {
Activated = true;
_root.snd.Play(2);
if (dir == 0) {
_root.TargetDirection = _parent.hero.direction;
} else {
_root.TargetDirection = dir;
}
_root.TargetFrame = to;
_root.point = point;
_root.FadeOut();
_root.tele = true;
_parent.ahint.dead = true;
}
}
};
}
}
movieClip 1546 {
frame 1 {
var dead = false;
_root.SaveSystem.LoadMonster(this, _parent);
this._visible = false;
if (dead) {
}
onEnterFrame = function () {
if (!_root.TextSys.Active and !dead) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false) and !_global.Lock) {
dead = true;
_root.TextSys.PlayArray(conv);
}
}
};
}
}
movieClip 1548 {
}
movieClip 1549 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.CamFollow(cam);
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 2;
var point = 'p1';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance of movieClip 1423 {
onClipEvent (load) {
var to = 2;
var point = 'p1';
var dir = 0;
}
}
instance of movieClip 1544 {
onClipEvent (load) {
txt = 'This is a computer\rWOW!';
id = 1;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance d2 of movieClip 1545 {
onClipEvent (load) {
var to = 4;
var point = 'p1';
var dir = 0;
}
}
instance sayEventX1 of movieClip 1546 {
onClipEvent (load) {
var conv = _root.Lang.Conversations[12];
}
}
instance coll of movieClip 1548 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 1554 {
}
movieClip 1561 {
}
movieClip 1562 {
frame 1 {
if (!activated) {
var z;
z = new zaman();
var ACTIVE = true;
var dead = false;
var a = 100;
var at = 100;
var SndHitHero;
SndHitHero = new Sound(this);
SndHitHero.attachSound('takeitem1');
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
stop();
ACTIVE = false;
_visible = false;
}
}
onEnterFrame = function () {
if (ACTIVE) {
var v3 = z.dist(_x, _y, _parent.hero._x, _parent.hero._y - 50);
if (v3 < 50 and at != 0) {
++_root.mpcount;
_root.stats.medkit.play();
SndHitHero.start(0, 0);
at = 0;
}
a = Math.ceil(z.CurveValue(at, a, 0.2));
if (a < 5) {
_visible = false;
dead = true;
ACTIVE = false;
}
_alpha = a;
}
};
}
}
movieClip 1564 {
}
movieClip 1565 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.setBound(-480);
level.CamFollowY(cam);
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1545 {
onClipEvent (load) {
var to = 3;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance d2 of movieClip 1545 {
onClipEvent (load) {
var to = 5;
var point = 'p1';
var dir = 0;
}
}
instance coll of movieClip 1564 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 1570 {
}
movieClip 1573 {
frame 23 {
}
}
movieClip 1577 {
}
movieClip 1579 {
}
movieClip 1581 {
}
movieClip 1583 {
}
movieClip 1587 {
}
movieClip 1588 {
}
movieClip 1623 {
frame 55 {
_parent.done1 = true;
stop();
}
}
movieClip 1624 {
}
movieClip 1625 {
}
movieClip 1626 {
frame 1 {
stop();
var firstEncounter;
var firstEncounterInit = false;
if (_root.SaveSystem.bools[3]) {
this.gotoAndStop(3);
a.stop();
firstEncounter = false;
} else {
this.gotoAndStop(2);
a.stop();
firstEncounter = true;
}
var xd = 0;
var done1 = false;
var anm = false;
onEnterFrame = function () {
xd = Math.abs(_x - _parent.hero._x);
if (firstEncounter) {
if (xd < 150 and !firstEncounterInit) {
_root.SaveSystem.bools[3] = true;
firstEncounterInit = true;
_global.Lock = true;
a.play();
}
if (done1) {
_root.TextSys.PlayArray(_root.Lang.Conversations[2]);
firstEncounter = false;
gotoAndStop(3);
}
} else {
if (xd < 150) {
if (a._currentframe < a._totalframes) {
a.gotoAndStop(a._currentframe + 1);
}
} else {
if (a._currentframe > 1) {
a.gotoAndStop(a._currentframe - 1);
}
}
if (xd < 150 and !_global.Lock and _root.keys[_root.BTN_ACTION]) {
_root.TextSys.PlayArray(_root.Lang.Robot[0]);
}
}
};
}
}
movieClip 1629 {
}
movieClip 1630 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.setBound(-300);
level.CamFollowY(cam);
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 6;
var point = 'p1';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance coll of movieClip 1629 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 1634 {
}
movieClip 1638 {
}
movieClip 1640 {
}
movieClip 1642 {
}
// unknown tag 88 length 97
movieClip 1645 {
}
movieClip 1647 {
}
movieClip 1649 {
}
movieClip 1650 {
}
movieClip 1652 {
}
movieClip 1653 {
frame 1 {
var z = new zaman();
arrow1._visible = false;
arrow2._visible = false;
var active = false;
var fadeTimer = 0;
var FinalFade = 0;
if (_root.SaveSystem.bools[0]) {
lite._visible = true;
screen._visible = true;
} else {
lite._visible = false;
screen._visible = false;
}
lite.stop();
onEnterFrame = function () {
screen.floorTXT.text = 'B' + floor;
if (active) {
arrow1._visible = true;
arrow2._visible = true;
fadeTimer = z.WrapValue(fadeTimer + 20);
FinalFade = 50 + Math.sin(z.rad(fadeTimer)) * 30;
if (Key.isDown(_root.BTN_UP)) {
arrow1._alpha = 100;
arrow2._alpha = FinalFade;
} else {
if (Key.isDown(_root.BTN_CROUCH)) {
arrow2._alpha = 100;
arrow1._alpha = FinalFade;
} else {
arrow1._alpha = FinalFade;
arrow2._alpha = FinalFade;
}
}
} else {
arrow1._visible = false;
arrow2._visible = false;
}
};
}
}
movieClip 1655 {
frame 1 {
lite.stop();
kk._visible = false;
}
}
movieClip 1658 {
}
movieClip 1660 {
}
movieClip 1661 {
frame 1 {
onEnterFrame = function () {
if (_root.TextSys.WhoSpeaks == 2) {
lite.play();
} else {
lite.gotoAndStop(3);
}
};
}
}
movieClip 1663 {
frame 1 {
_parent.level.AddCollisionObject(this.coll);
if (!activated) {
var z;
z = new zaman();
var actor = new Actor(this, _parent.coll, _parent, _root.grav, 2);
var PushSound = new Sound(this);
PushSound.attachSound('PushBox');
PushSound.stop();
actor.SkipThis(coll);
actor.collision.VCheck = -3;
var ACTIVE = true;
var dead = false;
AI = 0;
_root.SaveSystem.LoadMonster(this, _parent);
checkOBJ._visible = false;
checkOBJ2._visible = false;
coll._visible = false;
activated = true;
var PlayingSound = false;
}
this.onEnterFrame = function () {
var v3 = 0;
while (v3 < _parent.level.Actors.length) {
if (checkOBJ2.hitTest(_parent.level.Actors[v3].TC._x + _parent._x, _parent.level.Actors[v3].TC._y + _parent._y, true)) {
_parent.level.Actors[v3].collision.OutSideForce = this.actor.collision.totalVel;
}
++v3;
}
if (checkOBJ.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, true)) {
if (_parent.hero.Moving and _parent.hero.MyActor.onGround() and _parent.hero.act != 3) {
if (_x > _parent.hero._x) {
if (_parent.hero.direction == 1 and _parent.hero._x < _x) {
_parent.hero.Pushing = true;
actor.Run(1, 0.2);
if (!PlayingSound) {
PlayingSound = true;
PushSound.start(0, 33333);
}
}
} else {
if (_parent.hero.direction == 0 and _parent.hero._x > _x) {
_parent.hero.Pushing = true;
actor.Run(0, 0.2);
if (!PlayingSound) {
PlayingSound = true;
PushSound.start(0, 33333);
}
}
}
} else {
if (PlayingSound) {
PushSound.stop();
PlayingSound = false;
}
}
} else {
PushSound.stop();
PlayingSound = false;
}
actor.update();
};
onUnload = function () {
if (PlayingSound) {
PushSound.stop();
PlayingSound = false;
}
};
}
}
movieClip 1666 {
frame 1 {
_visible = false;
var Activated = false;
var floors = new Array();
vis.floor = floor;
var Select = floor;
var E = false;
floors.push(new Array(6, 'p3', true));
floors.push(new Array(8, 'p3', true));
floors.push(new Array(12, 'p1', _root.SaveSystem.bools[1]));
onEnterFrame = function () {
if (_root.keys[_root.BTN_ACTION] and !_global.Lock and !Activated) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false)) {
if (_root.SaveSystem.bools[0]) {
_global.Lock = true;
Activated = true;
vis.active = true;
} else {
_root.TextSys.Say(15, 'It looks like there\'s no power.');
}
}
}
if (Activated) {
if (_root.keys[_root.BTN_UP]) {
--Select;
if (Select < 1) {
Select = 1;
}
} else {
if (_root.keys[_root.BTN_CROUCH]) {
++Select;
if (Select > floors.length) {
Select = floors.length;
}
}
}
if (E) {
if (_root.keys[_root.BTN_ACTION]) {
if (Select != floor) {
if (floors[Select - 1][2]) {
_global.Lock = false;
Activated = false;
snd.play();
_root.TargetDirection = _parent.hero.direction;
_root.TargetFrame = floors[Select - 1][0];
_root.point = floors[Select - 1][1];
_root.FadeOut();
_root.tele = true;
} else {
_global.Lock = false;
Activated = false;
_root.TextSys.Say(15, 'Access to floor ' + Select + ' is denied.');
Select = floor;
}
} else {
Select = floor;
_global.Lock = false;
Activated = false;
}
}
}
E = true;
} else {
E = false;
}
vis.active = Activated;
vis.floor = Select;
};
}
}
movieClip 1668 {
}
movieClip 1669 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.setBound(-400);
level.CamFollowY(cam);
_root.bgm.Play(0);
var CheckPoint = true;
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 5;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance of movieClip 1423 {
onClipEvent (load) {
var to = 2;
var point = 'p1';
var dir = 0;
}
}
instance d2 of movieClip 1419 {
onClipEvent (load) {
var to = 7;
var point = 'p1';
var dir = 0;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance elev1 of movieClip 1666 {
onClipEvent (load) {
var floor = 1;
var vis = _parent.elv;
}
}
instance p3 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance sayEventX1 of movieClip 1546 {
onClipEvent (load) {
var conv = _root.Lang.Conversations[4];
}
}
instance coll of movieClip 1668 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 1675 {
}
movieClip 1677 {
frame 1 {
var Enabled;
hint._visible = false;
if (_root.SaveSystem.bools[0]) {
lite.gotoAndStop(2);
Enabled = false;
} else {
lite.gotoAndStop(1);
Enabled = true;
}
onEnterFrame = function () {
if (Enabled) {
var v4 = Math.abs(_x - _parent.hero._x);
if (v4 < 70) {
hint._visible = true;
} else {
hint._visible = false;
}
if (_root.keys[_root.BTN_ACTION]) {
if (v4 < 70 and !_global.Lock) {
lite.gotoAndStop(2);
_root.SaveSystem.bools[0] = true;
Enabled = false;
_root.snd.Play(1);
_root.TextSys.Say(15, 'Power to elevator is restored');
hint._visible = false;
}
}
}
};
}
}
movieClip 1680 {
}
movieClip 1682 {
frame 1 {
var activated = false;
_visible = false;
onEnterFrame = function () {
if (!_root.TextSys.Active) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false) and _root.keys[_root.BTN_ACTION]) {
_root.TextSys.PlayArray(conv);
}
}
};
}
}
movieClip 1684 {
}
movieClip 1685 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.CamFollow(cam);
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 6;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance of movieClip 1423 {
onClipEvent (load) {
var to = 2;
var point = 'p1';
var dir = 0;
}
}
instance of movieClip 1682 {
onClipEvent (load) {
var conv = _root.Lang.Others[4];
}
}
instance coll of movieClip 1684 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 1689 {
}
movieClip 1692 {
}
movieClip 1694 {
}
movieClip 1695 {
}
movieClip 1698 {
frame 1 {
var dead = false;
_root.SaveSystem.LoadMonster(this, _parent);
this._visible = false;
if (dead) {
}
onEnterFrame = function () {
if (!_root.TextSys.Active and !dead and _root.SaveSystem.bools[evID]) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false) and !_global.Lock) {
dead = true;
_root.TextSys.PlayArray(conv);
}
}
};
}
}
movieClip 1700 {
}
movieClip 1701 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.setBound(-50);
level.CamFollowY(cam);
var CheckPoint = true;
_root.bgm.Play(0);
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 9;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance d2 of movieClip 1419 {
onClipEvent (load) {
var to = 9;
var point = 'p1';
var dir = 0;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance elev1 of movieClip 1666 {
onClipEvent (load) {
var floor = 2;
var vis = _parent.elv;
}
}
instance p3 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance d4 of movieClip 1419 {
onClipEvent (load) {
var to = 10;
var point = 'p1';
var dir = 0;
}
}
instance p4 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance sayEventX2 of movieClip 1546 {
onClipEvent (load) {
var conv = _root.Lang.Conversations[5];
}
}
instance sayEventX1 of movieClip 1698 {
onClipEvent (load) {
var evID = 5;
var conv = _root.Lang.Conversations[6];
}
}
instance coll of movieClip 1700 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 1705 {
}
movieClip 1710 {
frame 1 {
stop();
_visible = false;
}
}
movieClip 1711 {
}
movieClip 1712 {
frame 1 {
function Shoot() {
ang = 0;
if (_parent.direction == 1) {
tx = _parent._x - _x + random(3);
ty = _parent._y + _y + random(3);
ang = 0;
} else {
tx = _parent._x + _x + random(3);
ty = _parent._y + _y + random(3);
ang = 180;
}
dp = _parent._parent.getNextHighestDepth();
_parent._parent.attachMovie('SpitMC', 'spitMC' + dp, dp);
_parent._parent['spitMC' + dp]._x = tx;
_parent._parent['spitMC' + dp]._y = ty;
_parent._parent['spitMC' + dp].ang = ang;
}
if (!Activated) {
Activated = true;
var Freq = 2;
var FreqTimer = 0;
var targetMC = _parent._parent;
}
this.onEnterFrame = function () {};
}
instance of movieClip 849 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 1791 {
}
movieClip 1888 {
}
movieClip 1986 {
frame 15 {
_parent.hitPoint = true;
}
frame 48 {
this.stop();
_parent.endAction = true;
}
}
movieClip 2087 {
frame 50 {
stop();
}
}
movieClip 2123 {
frame 23 {
stop();
}
}
movieClip 2177 {
frame 10 {
stop();
}
}
movieClip 2216 {
frame 21 {
_parent.spitter.Shoot();
}
frame 40 {
stop();
this.stop();
_parent.endAction = true;
}
}
movieClip 2251 {
frame 9 {
_parent.actor.Jump(15);
}
frame 11 {
stop();
onEnterFrame = function () {
if (_parent.actor.onGround()) {
play();
}
};
}
frame 17 {
_parent.jump = false;
}
}
movieClip 2266 {
frame 7 {
_parent.AI = 6;
}
}
movieClip 2283 {
}
movieClip 2304 {
frame 10 {
_parent.AI = 1;
}
}
movieClip 2305 {
frame 1 {
function hitx(power, off, _dir) {
health -= power;
if (_dir == 1) {
actor.Force(-off);
} else {
actor.Force(off);
}
}
function Activate() {
ACTIVE = true;
}
function spit() {}
if (!activated) {
var z;
z = new zaman();
var actor = new Actor(this, _parent.coll, _parent, _root.grav, 4);
var direction = 1;
var endAction = false;
var hitPoint = false;
var health = 60;
var ACTIVE = true;
var SpitTimer = 0;
var dead = false;
var SndHitHero;
SndHitHero = new Sound(this);
SndHitHero.attachSound('herohit');
var SndKicked;
SndKicked = new Sound(this);
SndKicked.attachSound('KickMonster');
var jump = false;
var jumpTimer = 0;
var roll = false;
var rollTimer = 0;
var oldHealth = health;
AI = 0;
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
stop();
ACTIVE = false;
AI = 10;
_visible = false;
}
if (!_root.SaveSystem.bools[5]) {
ACTIVE = false;
_visible = false;
}
activated = true;
if (!dead) {
initOverride();
gotoAndStop(2);
_parent.level.Monsters.push(this);
}
this._xscale = -100;
}
this.onEnterFrame = function () {
if (ACTIVE) {
var v4 = z.dist(_x, _y, _parent.hero._x, _parent.hero._y);
if (health <= 0) {
++_root.SaveSystem.numbers[10];
_parent.UnlockDoors();
dead = true;
ACTIVE = false;
AI = 10;
_root.bgm.Play(0);
this.gotoAndStop(6);
}
if (AI != 10) {
if (v4 < 100 && _parent.hero.kicking && _parent.hero.hit) {
SndKicked.start(0, 0);
if (_parent.hero._x < _x) {
actor.Force(25);
} else {
actor.Force(-25);
}
}
}
if (AI == 0) {
this.gotoAndStop(2);
if (v4 < 1500) {
snd_see.play();
AI = 1;
}
}
if (AI == 1) {
if (_parent.hero._x > _x) {
direction = 1;
actor.Run(direction, 3);
this.gotoAndStop(3);
} else {
direction = 0;
actor.Run(direction, 3);
this.gotoAndStop(3);
}
if (actor.onGround()) {
jump = false;
}
if (!jump) {
if (direction == 1) {
if (_parent.level.Collision(_x + 60, _y - 20)) {
++jumpTimer;
}
} else {
if (_parent.level.Collision(_x - 60, _y - 20)) {
++jumpTimer;
}
}
if (jumpTimer > 10) {
jump = true;
jumpTimer = 0;
AI = 4;
gotoAndStop(8);
}
}
if (v4 < 100) {
AI = 2;
}
if (v4 > 130) {
++SpitTimer;
}
if (SpitTimer >= 70) {
SpitTimer = 0;
AI = 3;
}
rollTimer += oldHealth - health;
if (rollTimer > 10) {
roll = true;
AI = 5;
rollTimer = 0;
}
}
if (AI == 2) {
jumpTimer = 0;
if (endAction) {
endAction = false;
AI = 1;
}
if (hitPoint) {
if (v4 < 120) {
_parent.level.hiz(10, 10);
_parent.hero.hitx(20, 30, direction + 1);
SndHitHero.start(0, 0);
}
hitPoint = false;
}
this.gotoAndStop(4);
}
if (AI == 3) {
if (endAction) {
endAction = false;
AI = 1;
}
this.gotoAndStop(7);
}
if (AI == 4) {
actor.Run(direction, 1);
if (!jump) {
AI = 1;
}
}
if (AI == 5) {
actor.Run(direction, 1);
this.gotoAndStop(9);
}
if (AI == 6) {
this.gotoAndStop(10);
actor.collision.SetMaxVel(18);
actor.Run(direction, 3);
++rollTimer;
if (rollTimer > 30) {
AI = 7;
rollTimer = 0;
}
if (direction == 1) {
if (_x > _parent.hero._x + 50) {
AI = 7;
}
} else {
if (_x < _parent.hero._x - 50) {
AI = 7;
}
}
}
if (AI == 7) {
rollTimer = 0;
actor.collision.SetMaxVel(4);
roll = false;
this.gotoAndStop(11);
}
if (direction == 1) {
this._xscale = -100;
} else {
this._xscale = 100;
}
oldHealth = health;
actor.update();
}
};
}
instance coll of movieClip 1711 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2308 {
}
movieClip 2309 {
frame 1 {
_visible = false;
var Activated = false;
onEnterFrame = function () {
if (!_parent.Locked) {
if (_root.keys[_root.BTN_ACTION] and !Activated and !_global.Lock) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false)) {
Activated = true;
snd.play();
if (dir == 0) {
_root.TargetDirection = _parent.hero.direction;
} else {
_root.TargetDirection = dir;
}
_root.TargetFrame = to;
_root.point = point;
_root.FadeOut();
_root.tele = true;
}
}
}
};
}
}
movieClip 2311 {
}
movieClip 2312 {
frame 1 {
function LockDoors() {
ldoor.lite.gotoAndStop(2);
rdoor.lite.gotoAndStop(2);
Locked = true;
}
function UnlockDoors() {
ldoor.lite.gotoAndStop(1);
rdoor.lite.gotoAndStop(1);
Locked = false;
_root.SaveSystem.bools[5] = true;
_root.TextSys.PlayArray(_root.Lang.Conversations[8]);
}
var level = new Level(this);
var z = new zaman();
var Event1 = false;
level.setBound(-100);
level.CamFollowY(cam);
var trig = false;
var darkt = false;
var d = 0;
var Locked = false;
var ShowMoony = false;
var AcrivatedMoony = false;
var lighterTimer = 0;
var dmax = 65;
var dspd = 0.35;
var timer = 0;
if (_root.SaveSystem.bools[5]) {
dark._visible = false;
} else {
_root.bgm.sStop();
}
onEnterFrame = function () {
if (!_root.SaveSystem.bools[5]) {
if (!trig) {
++lighterTimer;
if (lighterTimer > 2) {
lighterTimer = -random(10);
}
if (Math.abs(hero._x - 550) < 30) {
trig = true;
darkt = true;
LockDoors();
_root.snd.Play(4);
dmax = 100;
dspd = 0.1;
dark.gotoAndStop(1);
}
} else {
if (!ShowMoony) {
++timer;
if (timer > 50) {
ShowMoony = true;
moony._visible = true;
darkt = false;
_root.snd.Play(4);
_root.snd.Play(3);
dark._visible = false;
}
}
if (!AcrivatedMoony and ShowMoony) {
if (d < 2) {
_root.bgm.Play(1);
moony.Activate();
}
}
}
}
level.update();
};
}
instance d1 of movieClip 2309 {
onClipEvent (load) {
var to = 8;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance d2 of movieClip 2309 {
onClipEvent (load) {
var to = 8;
var point = 'p1';
var dir = 0;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance coll of movieClip 2311 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2321 {
}
movieClip 2338 {
frame 3 {
_parent.hit = true;
}
frame 14 {
_parent.hit = false;
}
}
movieClip 2339 {
frame 1 {
var hit = false;
onEnterFrame = function () {
if (hit) {
if (_parent.hero._y > _y && _parent.hero._y < _y + 248) {
if (Math.abs(_parent.hero._x - _x) < 40) {
trace('callind ehit');
if (_parent.hero._x < _x) {
_parent.hero.ehit(20, 20, 1);
} else {
_parent.hero.ehit(20, 20, 2);
}
}
}
}
};
}
}
movieClip 2342 {
frame 1 {
this._visible = false;
onEnterFrame = function () {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, true)) {
_parent.hero.Acid();
}
};
}
}
movieClip 2345 {
frame 1 {
var z = new zaman();
var dist = 0;
var x_sound = new Sound(this);
x_sound.attachSound('acid_sound');
x_sound.setVolume(0);
x_sound.start(0, 999999);
_visible = false;
onEnterFrame = function () {
dist = z.dist(_x, _y, -_parent._x + 400, -_parent._y + 250);
if (dist < 500) {
x_sound.setVolume(100 - Math.ceil(dist / 5));
pan = (_parent.hero._x - _x) / 2;
if (pan < -90) {
pan = -90;
}
if (pan > 90) {
pan = 90;
}
}
};
onUnload = function () {
trace('Unloaded Sound');
x_sound.stop();
};
}
}
movieClip 2347 {
}
movieClip 2348 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.setBound(-250);
level.CamFollowY(cam);
_root.bgm.Play(0);
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 8;
var point = 'p4';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance of movieClip 1423 {
onClipEvent (load) {
var to = 2;
var point = 'p1';
var dir = 0;
}
}
instance d2 of movieClip 1419 {
onClipEvent (load) {
var to = 11;
var point = 'p1';
var dir = 0;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance coll of movieClip 2347 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2353 {
frame 1 {
var z = new zaman();
var Enabled;
if (_root.SaveSystem.bools[1]) {
lite.gotoAndStop(2);
Enabled = false;
} else {
lite.gotoAndStop(1);
Enabled = true;
}
onEnterFrame = function () {
if (Enabled) {
if (_root.keys[_root.BTN_ACTION]) {
if (z.dist(_x, _y, _parent.hero._x, _parent.hero._y) < 60) {
_root.snd.Play(1);
lite.gotoAndStop(2);
_root.SaveSystem.bools[1] = true;
Enabled = false;
}
}
}
};
}
}
movieClip 2354 {
frame 1 {
function hitx(power, off, _dir) {
health -= power;
if (_dir == 1) {
actor.Force(-off);
} else {
actor.Force(off);
}
}
function Activate() {
_visible = true;
ACTIVE = true;
AI = 2;
}
function spit() {}
if (!activated) {
var z;
z = new zaman();
var actor = new Actor(this, _parent.coll, _parent, _root.grav, 4);
var direction = 0;
var endAction = false;
var hitPoint = false;
var health = 80;
var ACTIVE = true;
var SpitTimer = 0;
var dead = false;
var SndHitHero;
SndHitHero = new Sound(this);
SndHitHero.attachSound('herohit');
var SndKicked;
SndKicked = new Sound(this);
SndKicked.attachSound('KickMonster');
var jump = false;
var jumpTimer = 0;
var roll = false;
var rollTimer = 0;
var oldHealth = health;
AI = 0;
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
stop();
ACTIVE = false;
AI = 10;
_visible = false;
}
if (_root.SaveSystem.bools[2]) {
} else {
ACTIVE = false;
_visible = false;
}
activated = true;
if (!dead) {
initOverride();
gotoAndStop(2);
_parent.level.Monsters.push(this);
}
}
this.onEnterFrame = function () {
if (ACTIVE) {
var v4 = z.dist(_x, _y, _parent.hero._x, _parent.hero._y);
if (health <= 0) {
++_root.SaveSystem.numbers[10];
dead = true;
ACTIVE = false;
AI = 10;
_root.bgm.Play(0);
this.gotoAndStop(6);
}
if (AI != 10) {
if (v4 < 100 && _parent.hero.kicking && _parent.hero.hit) {
SndKicked.start(0, 0);
if (_parent.hero._x < _x) {
actor.Force(25);
} else {
actor.Force(-25);
}
}
}
if (AI == 0) {
this.gotoAndStop(2);
if (v4 < 500) {
snd_see.play();
AI = 1;
}
}
if (AI == 1) {
if (_parent.hero._x > _x) {
direction = 1;
actor.Run(direction, 3);
this.gotoAndStop(3);
} else {
direction = 0;
actor.Run(direction, 3);
this.gotoAndStop(3);
}
if (actor.onGround()) {
jump = false;
}
if (!jump) {
if (direction == 1) {
if (_parent.level.Collision(_x + 60, _y - 20)) {
++jumpTimer;
}
} else {
if (_parent.level.Collision(_x - 60, _y - 20)) {
++jumpTimer;
}
}
if (jumpTimer > 10) {
jump = true;
jumpTimer = 0;
AI = 4;
gotoAndStop(8);
}
}
if (v4 < 100) {
AI = 2;
}
if (v4 > 130) {
++SpitTimer;
}
if (SpitTimer >= 70) {
SpitTimer = 0;
AI = 3;
}
rollTimer += oldHealth - health;
if (rollTimer > 10) {
roll = true;
AI = 5;
rollTimer = 0;
}
}
if (AI == 2) {
jumpTimer = 0;
if (endAction) {
endAction = false;
AI = 1;
}
if (hitPoint) {
if (v4 < 120) {
_parent.level.hiz(10, 10);
_parent.hero.hitx(20, 30, direction + 1);
SndHitHero.start(0, 0);
}
hitPoint = false;
}
this.gotoAndStop(4);
}
if (AI == 3) {
if (endAction) {
endAction = false;
AI = 1;
}
this.gotoAndStop(7);
}
if (AI == 4) {
actor.Run(direction, 1);
if (!jump) {
AI = 1;
}
}
if (AI == 5) {
actor.Run(direction, 1);
this.gotoAndStop(9);
}
if (AI == 6) {
this.gotoAndStop(10);
actor.collision.SetMaxVel(18);
actor.Run(direction, 3);
++rollTimer;
if (rollTimer > 30) {
AI = 7;
rollTimer = 0;
}
if (direction == 1) {
if (_x > _parent.hero._x + 50) {
AI = 7;
}
} else {
if (_x < _parent.hero._x - 50) {
AI = 7;
}
}
}
if (AI == 7) {
rollTimer = 0;
actor.collision.SetMaxVel(4);
roll = false;
this.gotoAndStop(11);
}
if (direction == 1) {
this._xscale = -100;
} else {
this._xscale = 100;
}
oldHealth = health;
actor.update();
}
};
}
instance coll of movieClip 1711 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2357 {
}
movieClip 2358 {
}
movieClip 2359 {
}
movieClip 2360 {
}
movieClip 2361 {
}
movieClip 2362 {
}
movieClip 2363 {
}
movieClip 2364 {
frame 22 {
stop();
}
}
movieClip 2366 {
}
movieClip 2378 {
frame 30 {
stop();
}
}
movieClip 2383 {
frame 30 {
stop();
}
}
movieClip 2422 {
frame 28 {
_parent.CastMonster();
}
frame 60 {
stop();
}
}
movieClip 2423 {
frame 1 {
function CastMonster() {
_parent.mon.Activate();
_root.bgm.Play(1);
}
var z = new zaman();
var done;
done = _root.SaveSystem.bools[2];
v.stop();
onEnterFrame = function () {
if (!done) {
if (Math.abs(_x - _parent.hero._x) < 100) {
done = true;
_root.SaveSystem.bools[2] = true;
v.play();
}
}
};
}
}
movieClip 2426 {
}
movieClip 2427 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.CamFollow(cam);
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 10;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance coll of movieClip 2426 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2432 {
}
movieClip 2433 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.CamFollow(cam);
var CheckPoint = true;
_root.bgm.Play(0);
if (!_root.SaveSystem.bools[32]) {
_root.SaveSystem.bools[32] = true;
}
onEnterFrame = function () {
level.update();
};
}
instance d2 of movieClip 1419 {
onClipEvent (load) {
var to = 13;
var point = 'p1';
var dir = 0;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance d3 of movieClip 1419 {
onClipEvent (load) {
var to = 2;
var point = 'p2';
var dir = 0;
}
}
instance elev1 of movieClip 1666 {
onClipEvent (load) {
var floor = 3;
var vis = _parent.elv;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance p3 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance sayEventX1 of movieClip 1546 {
onClipEvent (load) {
var conv = _root.Lang.Conversations[7];
}
}
instance coll of movieClip 2432 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2448 {
}
movieClip 2449 {
frame 1 {
function Lock(b) {
if (b) {
lite.gotoAndStop(2);
lite2.play();
} else {
lite.gotoAndStop(1);
lite2.gotoAndStop(1);
}
}
lite.stop();
}
}
movieClip 2456 {
}
movieClip 2457 {
frame 1 {
var en = !_root.SaveSystem.bools[6];
onEnterFrame = function () {
if (en) {
if (_parent.hero._y > _y && _parent.hero._y < _y + 248) {
if (Math.abs(_parent.hero._x - _x) < 40) {
trace('callind ehit');
if (_parent.hero._x < _x) {
_parent.hero.ehit(20, 20, 1);
} else {
_parent.hero.ehit(20, 20, 2);
}
}
}
} else {
v.gotoAndStop(11);
}
};
}
}
movieClip 2461 {
}
movieClip 2462 {
frame 1 {
var Enabled;
if (_root.SaveSystem.bools[6]) {
lite.gotoAndStop(2);
Enabled = false;
} else {
lite.gotoAndStop(1);
Enabled = true;
}
onEnterFrame = function () {
if (Enabled) {
if (_root.keys[_root.BTN_ACTION]) {
if (Math.abs(_x - _parent.hero._x) < 70 and !_global.Lock) {
lite.gotoAndStop(2);
_root.SaveSystem.bools[6] = true;
Enabled = false;
_root.snd.Play(1);
_parent.DisableElectricity();
}
}
}
};
}
}
movieClip 2465 {
}
movieClip 2467 {
frame 1 {
if (!LOADED) {
LOADED = true;
var Activated = false;
_visible = false;
var dead = false;
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
vis.Lock(false);
} else {
vis.Lock(true);
}
}
onEnterFrame = function () {
if (_root.keys[_root.BTN_ACTION] and !Activated) {
if (!_root.TextSys.Active) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false)) {
if (dead) {
Activated = true;
snd.play();
if (dir == 0) {
_root.TargetDirection = _parent.hero.direction;
} else {
_root.TargetDirection = dir;
}
_root.TargetFrame = to;
_root.point = point;
_root.FadeOut();
_root.tele = true;
} else {
if (_root.SaveSystem.keys[1]) {
dead = true;
vis.Lock(false);
_root.SaveSystem.keys[1] = false;
_root.TextSys.Say(15, 'The door is unlocked');
} else {
_root.TextSys.Say(15, 'This door is locked and needs a green keycard');
}
}
}
}
}
};
}
}
movieClip 2469 {
frame 1 {
this._visible = false;
onEnterFrame = function () {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, true)) {
_parent.hero.Acid();
}
};
}
}
movieClip 2471 {
frame 1 {
function StopSound() {
x_sound.stop();
}
var z = new zaman();
var dist = 0;
var x_sound = new Sound(this);
x_sound.attachSound('sndElecConst');
x_sound.setVolume(0);
if (!_root.SaveSystem.bools[6]) {
x_sound.start(0, 999999);
}
_visible = false;
onEnterFrame = function () {
dist = z.dist(_x, _y, -_parent._x + 400, -_parent._y + 250);
if (dist < 500) {
x_sound.setVolume(100 - Math.ceil(dist / 5));
pan = (_parent.hero._x - _x) / 2;
if (pan < -90) {
pan = -90;
}
if (pan > 90) {
pan = 90;
}
}
};
onUnload = function () {
trace('Unloaded Sound');
x_sound.stop();
};
}
}
movieClip 2473 {
}
movieClip 2474 {
frame 1 {
function DisableElectricity() {
ElecSounder.StopSound();
ElecWire.en = false;
ElecWire2.en = false;
}
var level = new Level(this);
var Event1 = false;
level.setBound(-30);
if (_root.SaveSystem.bools[6]) {
ElecSounder.StopSound();
ElecWire.en = false;
ElecWire2.en = false;
} else {
ElecWire.en = true;
ElecWire2.en = true;
}
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 12;
var point = 'p2';
var dir = 0;
}
}
instance d2 of movieClip 2467 {
onClipEvent (load) {
var to = 14;
var point = 'p1';
var dir = 0;
var vis = _parent.d2vis;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance of movieClip 1682 {
onClipEvent (load) {
var conv = _root.Lang.Others[5];
}
}
instance coll of movieClip 2473 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2479 {
}
movieClip 2480 {
}
movieClip 2483 {
}
movieClip 2484 {
frame 1 {
an.gotoAndPlay(random(an._totalframes - 1) + 1);
}
}
movieClip 2487 {
}
movieClip 2489 {
}
movieClip 2491 {
frame 21 {
stop();
}
}
movieClip 2492 {
}
movieClip 2493 {
frame 1 {
var ACTIVE = true;
var dead = false;
_root.SaveSystem.LoadMonster(this, _parent);
coll._visible = false;
look.stop();
var health = 30;
if (dead) {
ACTIVE = false;
look._visible = false;
} else {
_parent.level.Monsters.push(this);
onEnterFrame = function () {
if (health <= 0) {
dead = true;
look.play();
delete onEnterFrame;
ACTIVE = false;
}
};
}
}
}
movieClip 2498 {
}
movieClip 2501 {
}
movieClip 2502 {
}
movieClip 2503 {
}
movieClip 2505 {
frame 1 {
_visible = false;
var Activated = false;
onEnterFrame = function () {
if (_root.keys[_root.BTN_ACTION] and !Activated and !_global.Lock) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false)) {
if (_parent.LockedDoor.dead) {
Activated = true;
snd.play();
if (dir == 0) {
_root.TargetDirection = _parent.hero.direction;
} else {
_root.TargetDirection = dir;
}
_root.TargetFrame = to;
_root.point = point;
_root.FadeOut();
_root.tele = true;
} else {
_root.TextSys.SayOthers(6);
}
}
}
};
}
}
movieClip 2507 {
}
movieClip 2508 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.setBound(-50);
level.CamFollowY(cam);
onEnterFrame = function () {
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 13;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance of movieClip 1544 {
onClipEvent (load) {
txt = 'This door is as far as you can go in this demo';
id = 4;
}
}
instance d2 of movieClip 2505 {
onClipEvent (load) {
var to = 15;
var point = 'p1';
var dir = 0;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance coll of movieClip 2507 {
onClipEvent (load) {
this._visible = false;
}
}
instance cam of movieClip 1427 {
onClipEvent (enterFrame) {
if (_parent.hero._x < _x) {
if (_y < 333) {
_y = _y + 4;
}
} else {
if (_y > 250) {
_y = _y - 4;
}
}
}
}
}
movieClip 2511 {
}
movieClip 2514 {
}
movieClip 2564 {
frame 25 {
_parent.mounted = true;
}
}
movieClip 2589 {
}
movieClip 2631 {
frame 11 {
_parent.hit = true;
}
frame 13 {
_parent.hit = false;
}
frame 21 {
_parent.AI = 10;
stop();
}
}
movieClip 2632 {
frame 1 {
function CheckMonsters(dst) {
var v4 = false;
var v2 = 0;
while (v2 < _parent.level.Monsters.length) {
if (!_parent.level.Monsters[v2].BlockMe) {
var v3 = z.dist(_x, _y, _parent.level.Monsters[v2]._x, _parent.level.Monsters[v2]._y);
if (v3 < dst) {
v4 = true;
break;
}
}
++v2;
}
return v4;
}
function CheckMonsterForHit() {
var v2 = 0;
while (v2 < _parent.level.Monsters.length) {
if (!_parent.level.Monsters[v2].BlockMe) {
var v3 = z.dist(_x, _y, _parent.level.Monsters[v2]._x, _parent.level.Monsters[v2]._y);
if (v3 < 100) {
trace('hit Monster: ' + _parent.level.Monsters[v2]._name);
if (_parent.level.Monsters[v2]._x > _x) {
_parent.level.Monsters[v2].hitx(10, 25, 2);
} else {
_parent.level.Monsters[v2].hitx(10, 25, 1);
}
}
}
++v2;
}
}
if (!activated) {
var z;
z = new zaman();
stop();
var BlockMe = true;
var ACTIVE = false;
AI = 0;
var mounted = false;
var hit = false;
initOverride();
activated = true;
_parent.level.Monsters.push(this);
}
this.onEnterFrame = function () {
var v3 = z.dist(_x, _y, _parent.hero._x, _parent.hero._y);
if (AI != 10) {
if (v3 < 100 and hit) {
_parent.level.hiz(30, 20);
if (_parent.hero._x > _x) {
_parent.hero.hitx(5, 25, 2);
} else {
_parent.hero.hitx(5, 25, 1);
}
}
if (hit) {
CheckMonsterForHit();
}
} else {
ACTIVE = false;
}
if (AI == 0) {
if (v3 < 200) {
this.gotoAndStop(2);
AI = 1;
}
}
if (AI == 1) {
if (mounted) {
ACTIVE = true;
AI = 2;
this.gotoAndStop(3);
}
}
if (AI == 2) {
if (v3 < 150) {
this.gotoAndStop(4);
} else {
if (CheckMonsters(150)) {
this.gotoAndStop(4);
}
}
}
};
}
instance coll of movieClip 2514 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2637 {
frame 1 {
function hitx(power, off, _dir) {
health -= power;
if (_dir == 1) {
actor.Force(-off);
} else {
actor.Force(off);
}
}
function Disable() {
dead = true;
ACTIVE = false;
AI = 10;
_visible = false;
++_root.SaveSystem.numbers[10];
}
function AnitFall() {
if (AI != 8) {
actor.collision.SetMaxVel(4);
AntiFallBugTimer = 0;
AI = 8;
if (direction == 1) {
direction = 2;
BackTarget = _x - 70;
} else {
direction = 1;
BackTarget = _x + 70;
}
jump = false;
jumpTimer = 0;
roll = false;
rollTimer = 0;
endAction = false;
hitPoint = false;
SpitTimer = 0;
DetectDist = 150;
}
}
function spit() {}
if (!activated) {
var z;
z = new zaman();
var actor = new Actor(this, _parent.coll, _parent, _root.grav, 4);
var direction = 1;
var endAction = false;
var hitPoint = false;
var health = 50;
var ACTIVE = true;
var SpitTimer = 0;
var BackTarget = _x;
var dead = false;
var SndHitHero;
SndHitHero = new Sound(this);
SndHitHero.attachSound('herohit');
var SndKicked;
SndKicked = new Sound(this);
SndKicked.attachSound('KickMonster');
var jump = false;
var jumpTimer = 0;
var roll = false;
var rollTimer = 0;
var oldHealth = health;
var DetectDist = 500;
var AntiFallBugTimer = 0;
AI = 0;
_root.SaveSystem.LoadMonster(this, _parent);
if (dead) {
stop();
ACTIVE = false;
AI = 10;
_visible = false;
}
activated = true;
if (!dead) {
initOverride();
gotoAndStop(2);
_parent.level.Monsters.push(this);
}
}
this.onEnterFrame = function () {
var v4 = z.dist(_x, _y, _parent.hero._x, _parent.hero._y);
if (health <= 0) {
++_root.SaveSystem.numbers[10];
dead = true;
ACTIVE = false;
AI = 10;
this.gotoAndStop(6);
}
if (AI != 10) {
if (v4 < 100 && _parent.hero.kicking && _parent.hero.hit) {
SndKicked.start(0, 0);
if (_parent.hero._x < _x) {
actor.Force(25);
} else {
actor.Force(-25);
}
}
}
if (AI == 0) {
this.gotoAndStop(2);
if (v4 < DetectDist) {
snd_see.play();
AI = 1;
}
}
if (AI == 1) {
if (_parent.hero._x > _x) {
direction = 1;
actor.Run(direction, 3);
this.gotoAndStop(3);
} else {
direction = 0;
actor.Run(direction, 3);
this.gotoAndStop(3);
}
if (actor.onGround()) {
jump = false;
}
if (!jump) {
if (direction == 1) {
if (_parent.level.Collision(_x + 60, _y - 20)) {
++jumpTimer;
}
} else {
if (_parent.level.Collision(_x - 60, _y - 20)) {
++jumpTimer;
}
}
if (jumpTimer > 10) {
jump = true;
jumpTimer = 0;
AI = 4;
gotoAndStop(8);
}
}
if (v4 < 100) {
AI = 2;
}
if (v4 > 130) {
++SpitTimer;
}
if (SpitTimer >= 70) {
SpitTimer = 0;
AI = 3;
}
rollTimer += oldHealth - health;
if (rollTimer > 10) {
roll = true;
AI = 5;
rollTimer = 0;
}
}
if (AI == 2) {
jumpTimer = 0;
if (endAction) {
endAction = false;
AI = 1;
}
if (hitPoint) {
if (v4 < 120) {
_parent.level.hiz(10, 10);
_parent.hero.hitx(20, 30, direction + 1);
SndHitHero.start(0, 0);
}
hitPoint = false;
}
this.gotoAndStop(4);
}
if (AI == 3) {
if (endAction) {
endAction = false;
AI = 1;
}
this.gotoAndStop(7);
}
if (AI == 4) {
actor.Run(direction, 1);
if (!jump) {
AI = 1;
}
}
if (AI == 5) {
actor.Run(direction, 1);
this.gotoAndStop(9);
}
if (AI == 6) {
this.gotoAndStop(10);
actor.collision.SetMaxVel(18);
actor.Run(direction, 3);
++rollTimer;
if (rollTimer > 30) {
AI = 7;
rollTimer = 0;
}
if (direction == 1) {
if (_x > _parent.hero._x + 50) {
AI = 7;
}
} else {
if (_x < _parent.hero._x - 50) {
AI = 7;
}
}
}
if (AI == 7) {
rollTimer = 0;
actor.collision.SetMaxVel(4);
roll = false;
this.gotoAndStop(11);
}
if (AI == 8) {
if (direction == 1) {
actor.Run(direction, 3);
this.gotoAndStop(3);
} else {
actor.Run(direction, 3);
this.gotoAndStop(3);
}
if (Math.abs(_x - BackTarget) < 5) {
AI = 0;
if (direction == 1) {
direction = 2;
} else {
direction = 1;
}
}
++AntiFallBugTimer;
if (AntiFallBugTimer > 60) {
AI = 0;
if (direction == 1) {
direction = 2;
} else {
direction = 1;
}
}
}
if (direction == 1) {
this._xscale = -100;
} else {
this._xscale = 100;
}
oldHealth = health;
actor.update();
};
}
instance coll of movieClip 1711 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2639 {
frame 1 {
var activated = false;
var Monsters = _parent.level.Monsters;
onEnterFrame = function () {
if (!activated) {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, true)) {
activated = true;
_global.life = 0;
}
}
var v4 = 0;
while (v4 < Monsters.length) {
if (this.hitTest(Monsters[v4]._x + _parent._x, Monsters[v4]._y + _parent._y, true) and !Monsters[v4].dead) {
Monsters[v4].Disable();
}
++v4;
}
};
}
}
movieClip 2641 {
frame 1 {
var Monsters = _parent.level.Monsters;
_visible = false;
var MonsterI = new Array();
var i = 0;
while (i < Monsters.length) {
MonsterI.push(new Number(0));
var d;
if (Monsters[i]._x < _x) {
MonsterI[i] = 1;
} else {
MonsterI[i] = 0;
}
++i;
}
onEnterFrame = function () {
var v3 = 0;
while (v3 < Monsters.length) {
if (this.hitTest(Monsters[v3]._x + _parent._x, Monsters[v3]._y + _parent._y, false)) {
if (Monsters[v3].direction == MonsterI[v3]) {
Monsters[v3].AnitFall();
}
}
++v3;
}
};
}
}
movieClip 2643 {
}
movieClip 2644 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.setBound(-120);
level.CamFollowY(cam);
_root.bgm.Play(0);
var pIX = pipe._x - 200;
onEnterFrame = function () {
pipe._x = -_x / 4 + pIX;
level.update();
};
}
instance monstah111 of movieClip 2637 {
onClipEvent (load) {
function initOverride() {
direction = 2;
}
}
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 14;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance d22 of movieClip 1423 {
onClipEvent (load) {
var to = 16;
var point = 'p1';
var dir = 0;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance sayEventXRR of movieClip 1546 {
onClipEvent (load) {
var conv = _root.Lang.Conversations[16];
}
}
instance coll of movieClip 2643 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2649 GirlSmokeParticle {
frame 1 {
var z = new zaman();
var speed = 0.5 + random(3);
var R = random(359);
var DTimer = 100;
onEnterFrame = function () {
R = z.CurveAngle(270, R, 0.06);
_x = _x + Math.cos(z.rad(R)) * speed;
_y = _y + Math.sin(z.rad(R)) * speed;
DTimer -= 3;
if (DTimer <= 0) {
this.removeMovieClip();
} else {
_alpha = DTimer;
_xscale = DTimer + 50;
_yscale = DTimer + 50;
}
};
}
}
movieClip 2651 {
frame 1 {
deleteMe.swapDepths(this.getNextHighestDepth());
var z = new zaman();
var oldX = _x;
var R = 0;
var Flow = 0;
onEnterFrame = function () {
Flow = z.WrapValue(Flow + 6);
_y = _y + Math.sin(z.rad(Flow)) / 2;
if (_visible and _alpha > 10) {
R += ((_x - oldX) * 3 - R) / 4;
_rotation = R;
var v3 = _parent.getNextHighestDepth();
var v2 = _parent.attachMovie('GirlSmokeParticle', 'smokeParticle' + v3, v3);
v2._x = _x + Math.cos(z.rad(_rotation + 90)) * 25 + random(30) - 15;
v2._y = _y + Math.sin(z.rad(_rotation + 90)) * 25;
}
oldX = _x;
};
}
}
movieClip 2657 {
}
movieClip 2659 {
}
movieClip 2662 {
}
movieClip 2664 {
}
movieClip 2665 {
}
movieClip 2667 {
}
movieClip 2668 {
}
movieClip 2670 {
}
movieClip 2672 {
}
movieClip 2673 {
frame 1 {
if (!activated) {
var z;
z = new zaman();
_parent.level.AddCollisionObject(this.coll);
var ACTIVE = true;
var dead = false;
var AI = 0;
var originY = _y;
var targetY = 730;
var fase = 0;
var pending = false;
var speed = 2;
_root.SaveSystem.LoadMonster(this, _parent);
var MovingSound = new Sound(this);
MovingSound.attachSound('ElevatorMove');
v.stop();
if (dead) {
fase = 1;
_y = 662;
pending = true;
MovingSound.start(0, 20);
} else {}
coll._visible = false;
hp._visible = false;
activated = true;
}
this.onEnterFrame = function () {
if (_root.keys[_root.BTN_ACTION] and !pending and !_global.Lock) {
if (hp.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false)) {
MovingSound.start(0, 20);
_global.Lock = true;
pending = true;
}
}
if (fase == 0 and pending) {
dead = true;
if (_y < targetY) {
_y = _y + speed;
v.gotoAndStop(3);
} else {
fase = 1;
pending = false;
_global.Lock = false;
MovingSound.stop();
v.gotoAndStop(1);
}
}
if (fase == 1 and pending) {
dead = false;
if (_y > originY) {
_y = _y - speed;
v.gotoAndStop(2);
} else {
_global.Lock = false;
fase = 0;
pending = false;
MovingSound.stop();
v.gotoAndStop(1);
}
}
};
onUnload = function () {
MovingSound.stop();
};
}
}
movieClip 2675 {
frame 1 {
_visible = false;
var Activated = false;
onEnterFrame = function () {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, true) and !Activated) {
Activated = true;
if (dir == 0) {
_root.TargetDirection = _parent.hero.direction;
} else {
_root.TargetDirection = dir;
}
_root.TargetFrame = to;
_root.point = point;
_root.FadeOut();
_root.tele = true;
}
};
}
}
movieClip 2677 {
}
movieClip 2678 {
frame 1 {
var level = new Level(this);
var Event1 = false;
level.setBound(-250);
level.CamFollowY(cam);
var ocX = cam._x;
var ocY = cam._y;
var z = new zaman();
var Meeting = 0;
if (_root.SaveSystem.bools[7]) {
_root.bgm.Play(0);
ghost._visible = false;
} else {
_root.bgm.Play(2);
Meeting = 1;
}
onEnterFrame = function () {
if (Meeting < 2) {
if (hero._y <= 20 and hero._x > 1050) {
cam._y += Math.round((ocY - cam._y) / 26);
} else {
if (hero._y <= 20 and hero._x <= 1050) {
cam._y += Math.round((-5 - cam._y) / 26);
} else {
if (hero._y > 20 and hero._y < 260) {
cam._y += Math.round((180 - cam._y) / 26);
} else {
cam._y += Math.round((403 - cam._y) / 26);
}
}
}
} else {
cam._y += Math.round((-37 - cam._y) / 26);
}
if (Meeting == 1) {
if (z.dist(hero._x, hero._y, 317, 126) < 130) {
Meeting = 2;
_root.TextSys.SayConv(9);
}
} else {
if (Meeting == 2) {
if (!_global.Lock) {
hero.Lock = true;
ghost._x -= 5;
if (ghost._x < -180) {
Meeting = 3;
ghost._visible = false;
_root.TextSys.SayConv(10);
}
}
} else {
if (Meeting == 3) {
if (!_global.Lock) {
Meeting = 0;
_root.SaveSystem.bools[7] = true;
hero.Lock = false;
_root.bgm.Play(0);
}
}
}
}
level.update();
};
}
instance d56555 of movieClip 1419 {
onClipEvent (load) {
var to = 2;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance d1 of movieClip 1423 {
onClipEvent (load) {
var to = 15;
var point = 'p2';
var dir = 0;
}
}
instance d2 of movieClip 2675 {
onClipEvent (load) {
var to = 17;
var point = 'p1';
var dir = 0;
}
}
instance p2 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance of movieClip 1682 {
onClipEvent (load) {
var conv = _root.Lang.Others[7];
}
}
instance coll of movieClip 2677 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 2683 {
}
movieClip 2685 {
}
movieClip 2688 {
}
movieClip 2689 {
}
movieClip 2692 {
}
movieClip 2694 {
}
movieClip 2697 {
}
movieClip 2699 {
frame 1 {
deleteMe.swapDepths(this.getNextHighestDepth());
var z = new zaman();
var oldX = _x;
var R = 0;
var Flow = 0;
onEnterFrame = function () {
Flow = z.WrapValue(Flow + 6);
_y = _y + Math.sin(z.rad(Flow)) / 2;
if (_visible and _alpha > 10) {
R += ((_x - oldX) * 3 - R) / 4;
_rotation = R;
var v3 = _parent.getNextHighestDepth();
var v2 = _parent.attachMovie('GirlSmokeParticle', 'smokeParticle' + v3, v3);
v2._x = _x + Math.cos(z.rad(_rotation + 90)) * 25 + random(30) - 15;
v2._y = _y + Math.sin(z.rad(_rotation + 90)) * 25;
}
oldX = _x;
};
}
}
movieClip 2700 {
frame 1 {
if (!activated) {
var z;
z = new zaman();
_parent.level.AddCollisionObject(this.coll);
var ACTIVE = true;
var dead = false;
var AI = 0;
var originY = _y - 200;
var targetY = 660;
var fase = 0;
var pending = false;
var speed = 2;
_root.SaveSystem.LoadMonster(this, _parent);
var MovingSound = new Sound(this);
MovingSound.attachSound('ElevatorMove');
v.stop();
if (dead) {
fase = 1;
_y = targetY;
} else {
MovingSound.start(0, 20);
_y = originY + 200;
pending = true;
}
coll._visible = false;
hp._visible = false;
activated = true;
}
this.onEnterFrame = function () {
if (_root.keys[_root.BTN_ACTION] and !pending and !_global.Lock) {
if (hp.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, false)) {
MovingSound.start(0, 20);
_global.Lock = true;
pending = true;
}
}
if (fase == 0 and pending) {
dead = true;
if (_y < targetY) {
v.gotoAndStop(3);
_y = _y + speed;
} else {
fase = 1;
pending = false;
_global.Lock = false;
v.gotoAndStop(1);
MovingSound.stop();
}
}
if (fase == 1 and pending) {
dead = false;
if (_y > originY) {
v.gotoAndStop(2);
_y = _y - speed;
} else {
_global.Lock = false;
fase = 0;
pending = false;
v.gotoAndStop(1);
MovingSound.stop();
}
}
};
onUnload = function () {
MovingSound.stop();
};
}
}
movieClip 2702 {
frame 1 {
_visible = false;
var Activated = false;
onEnterFrame = function () {
if (this.hitTest(_parent.hero._x + _parent._x, _parent.hero._y + _parent._y, true) and !Activated) {
Activated = true;
if (dir == 0) {
_root.TargetDirection = _parent.hero.direction;
} else {
_root.TargetDirection = dir;
}
_root.TargetFrame = to;
_root.point = point;
_root.FadeOut();
_root.tele = true;
}
};
}
}
movieClip 2704 {
}
movieClip 2705 {
frame 1 {
function controlGhost() {
if (hero._x < 1165) {
if (hero._x < ghost._x + 150) {
GhostTarget = hero._x - 200;
} else {
if (hero._x > ghost._x + 400) {
GhostTarget = hero._x - 180;
}
}
if (GhostTarget > 1065) {
GhostTarget = 1065;
}
}
ghost._x += (GhostTarget - ghost._x) / 32;
}
var level = new Level(this);
var Event1 = false;
level.setBound(-130);
level.CamFollowY(cam);
_root.bgm.Play(3);
var GhostTarget = ghost._x;
var Meeting = _root.SaveSystem.numbers[0];
if (_root.SaveSystem.bools[8]) {
if (_root.SaveSystem.numbers[0] != 7) {
ghost._visible = false;
}
} else {
Meeting = 1;
}
onEnterFrame = function () {
if (Meeting == 1) {
if (hero._x < 1020) {
_global.Lock = true;
_root.SaveSystem.bools[8] = true;
Meeting = 2;
}
} else {
if (Meeting == 2) {
hero.Lock = true;
_root.TextSys.SayConv(13);
Meeting = 3;
} else {
if (Meeting == 3) {
if (!_global.Lock) {
var v3 = hero._x - 110;
hero.Lock = true;
ghost._x += (v3 - ghost._x) / 28;
if (ghost._x > v3 - 20) {
Meeting = 4;
}
}
} else {
if (Meeting == 4) {
_root.TextSys.SayConv(14);
Meeting = 5;
} else {
if (Meeting == 5) {
if (!_global.Lock) {
var v3 = hero._x - 220;
ghost._x += (v3 - ghost._x) / 18;
if (ghost._x < v3 + 10) {
_root.TextSys.SayConv(15);
Meeting = 6;
}
}
} else {
if (Meeting == 6) {
if (!_global.Lock) {
GhostTarget = ghost._x;
Meeting = 7;
hero.Lock = false;
}
} else {
if (Meeting == 7) {
controlGhost();
}
}
}
}
}
}
}
_root.SaveSystem.numbers[0] = Meeting;
level.update();
};
}
instance d1 of movieClip 1419 {
onClipEvent (load) {
var to = 2;
var point = 'p2';
var dir = 0;
}
}
instance p1 of movieClip 1421 {
onClipEvent (load) {
var Dir = 2;
}
}
instance d4234 of movieClip 2702 {
onClipEvent (load) {
var to = 26;
var point = 'p1';
var dir = 0;
}
}
instance d2 of movieClip 2675 {
onClipEvent (load) {
var to = 16;
var point = 'p2';
var dir = 0;
}
}
instance sayEventX88 of movieClip 1546 {
onClipEvent (load) {
var conv = _root.Lang.Conversations[11];
}
}
instance coll of movieClip 2704 {
onClipEvent (load) {
this._visible = false;
}
}
}
frame 228 {
delete onEnterFrame;
bgm.ForceStop();
gotoAndPlay('DemoEnd');
}
frame 241 {
stop();
stopAllSounds();
var blackend = 0;
onEnterFrame = function () {
if (blackend == 0) {
blackne._alpha -= 2;
if (blackne._alpha < 5) {
blackne._visible = false;
blackend = 1;
}
}
if (blackend == 2) {
blackne._visible = true;
blackne._alpha += 2;
if (blackne._alpha > 95) {
blackne._alpha = 100;
delete onEnterFrame;
gotoAndPlay('MainMenu');
}
}
};
}
// unknown tag 88 length 146
movieClip 2710 {
}
movieClip 2714 {
}
instance of movieClip 2714 {
onClipEvent (press) {
_parent.blackend = 2;
}
}
movieClip 2715 {
}