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

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

night-crawlers.swf

This is the info page for
Flash #126685

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


Text
D

GAMES.CO.UK

developed by

Control

ActionScript [AS1/AS2]

Frame 1
var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); copyrightNotice.separatorBefore = true; myMenu.customItems.push(mySiteLink, copyrightNotice); _root.menu = myMenu; bytes_loaded = Math.round(_root.getBytesLoaded()); bytes_total = Math.round(_root.getBytesTotal()); getPercent = bytes_loaded / bytes_total; _root.loadBar._width = getPercent * 100; _root.loadText = Math.round(getPercent * 100) + "%"; if (bytes_loaded == bytes_total) { _root.gotoAndPlay(4); }
Instance of Symbol 43 MovieClip in Frame 1
on (release) { getURL ("http://www.deadfrontier.com/index.php?cp=neilNightcrawlers&sid=1", "_blank"); }
Frame 2
gotoAndPlay (1);
Frame 3
logo.onPress = function () { getURL ("http://www.xdgames.co.uk", "_blank"); };
Frame 4
cam._x = csTest._x; cam._y = csTest._y; stop(); stopAllSounds();
Instance of Symbol 43 MovieClip in Frame 4
on (release) { getURL ("http://www.deadfrontier.com/index.php?cp=neilNightcrawlers&sid=2", "_blank"); }
Instance of Symbol 98 MovieClip in Frame 4
on (release) { _root.nextFrame(); }
Frame 5
cam._x = csTest._x; cam._y = csTest._y;
Instance of Symbol 190 MovieClip in Frame 5
on (release) { getURL ("http://www.deadfrontier.com/index.php?cp=neilNightcrawlers&sid=3", "_blank"); }
Frame 6
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 70; cam.lens._yscale = 70; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 32; timeSpentShiningTorch = 80; walkingSpeed = 2; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc1, human_mc2); heardSomething.push(false, false, false); heardSomethingTimer.push(0, 0, 0); torch.push(false, false, false); torchTimer.push(0, 0, 0); alive.push(true, true, true); walking.push(false, false, true); walkingDistance.push(0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 0.25; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 80) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 40)) { human[i]._xscale = -100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 40) { human[i]._xscale = 100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 7
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc11, human_mc2, human_mc6); heardSomething.push(false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0); torch.push(false, false, false, false); torchTimer.push(0, 0, 0, 0); alive.push(true, true, true, true); walking.push(false, false, true, false); walkingDistance.push(0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 8
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc1, human_mc2, human_mc3); heardSomething.push(false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0); torch.push(false, false, false, false); torchTimer.push(0, 0, 0, 0); alive.push(true, true, true, true); walking.push(false, false, true, false); walkingDistance.push(0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); ingame = false; } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 9
cam._x = csTest._x; cam._y = csTest._y;
Frame 10
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc7, human_mc2, human_mc6); heardSomething.push(false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0); torch.push(false, false, false, false); torchTimer.push(0, 0, 0, 0); alive.push(true, true, true, true); walking.push(false, false, true, false); walkingDistance.push(0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 11
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc1, human_mc2, human_mc4, human_mc5); heardSomething.push(false, false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0, 0); torch.push(false, false, false, false, false); torchTimer.push(0, 0, 0, 0, 0); alive.push(true, true, true, true, true); walking.push(false, false, true, false, false); walkingDistance.push(0, 0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 12
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc1, human_mc10, human_mc4, human_mc5); heardSomething.push(false, false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0, 0); torch.push(false, false, false, false, false); torchTimer.push(0, 0, 0, 0, 0); alive.push(true, true, true, true, true); walking.push(false, false, true, false, false); walkingDistance.push(0, 0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 13
cam._x = csTest._x; cam._y = csTest._y;
Frame 14
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc1, human_mc11, human_mc4, human_mc5); heardSomething.push(false, false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0, 0); torch.push(false, false, false, false, false); torchTimer.push(0, 0, 0, 0, 0); alive.push(true, true, true, true, true); walking.push(false, false, true, false, false); walkingDistance.push(0, 0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 15
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc13, human_mc12, human_mc4, human_mc5); heardSomething.push(false, false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0, 0); torch.push(false, false, false, false, false); torchTimer.push(0, 0, 0, 0, 0); alive.push(true, true, true, true, true); walking.push(false, false, true, false, false); walkingDistance.push(0, 0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 16
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc14, human_mc15, human_mc11, human_mc4, human_mc5); heardSomething.push(false, false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0, 0); torch.push(false, false, false, false, false); torchTimer.push(0, 0, 0, 0, 0); alive.push(true, true, true, true, true); walking.push(false, false, true, false, false); walkingDistance.push(0, 0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 17
cam._x = csTest._x; cam._y = csTest._y;
Frame 18
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 32; timeSpentShiningTorch = 80; walkingSpeed = 2; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc20, human_mc21, human_mc2); heardSomething.push(false, false, false); heardSomethingTimer.push(0, 0, 0); torch.push(false, false, false); torchTimer.push(0, 0, 0); alive.push(true, true, true); walking.push(false, false, true); walkingDistance.push(0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 5; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 80) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 40)) { human[i]._xscale = -100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 40) { human[i]._xscale = 100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 20; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 19
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc221, human_mc2, human_mc26); heardSomething.push(false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0); torch.push(false, false, false, false); torchTimer.push(0, 0, 0, 0); alive.push(true, true, true, true); walking.push(false, false, true, false); walkingDistance.push(0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 5; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 20; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 20
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc1, human_mc32, human_mc33); heardSomething.push(false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0); torch.push(false, false, false, false); torchTimer.push(0, 0, 0, 0); alive.push(true, true, true, true); walking.push(false, false, true, false); walkingDistance.push(0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 5; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 20; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); ingame = false; } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 21
cam._x = csTest._x; cam._y = csTest._y;
Frame 22
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc27, human_mc222, human_mc2226); heardSomething.push(false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0); torch.push(false, false, false, false); torchTimer.push(0, 0, 0, 0); alive.push(true, true, true, true); walking.push(false, false, true, true); walkingDistance.push(0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 23
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc, human_mc1, human_mc42, human_mc44, human_mc45); heardSomething.push(false, false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0, 0); torch.push(false, false, false, false, false); torchTimer.push(0, 0, 0, 0, 0); alive.push(true, true, true, true, true); walking.push(false, false, true, false, false); walkingDistance.push(0, 0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11, light12); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 24
function removeStuff() { i = light.length - 1; while (i >= 0) { light[i].removeMovieClip(); light.splice(i, 1); i--; } i = human.length - 1; while (i >= 0) { human[i].removeMovieClip(); human.splice(i, 1); i--; } i = walking.length - 1; while (i >= 0) { walking.splice(i, 1); i--; } i = walkingDistance.length - 1; while (i >= 0) { walkingDistance.splice(i, 1); i--; } i = heardSomething.length - 1; while (i >= 0) { heardSomething.splice(i, 1); i--; } i = heardSomethingTimer.length - 1; while (i >= 0) { heardSomethingTimer.splice(i, 1); i--; } i = torch.length - 1; while (i >= 0) { torch.splice(i, 1); i--; } i = torchTimer.length - 1; while (i >= 0) { torchTimer.splice(i, 1); i--; } i = alive.length - 1; while (i >= 0) { alive.splice(i, 1); i--; } } stop(); hud.ac.gotoAndStop("blah"); _global.goToTitle = false; _global.levelDone = false; ingame = true; gasp_sound = new Sound(); gasp_sound.attachSound("gasp"); die_sound = new Sound(); die_sound.attachSound("dieSound"); player._x = startPoint._x; player._y = startPoint._y; cam._xscale = 100; cam._yscale = 100; hitPlayer = 0; hitTimer = 0; health = 100; running = false; gravity = 0; gravityaccel = 0.3; xaccel = 0; runaccelamt = 0.3; friction = 0.5; airrisist = 0.05; maxaccel = 5; maxjump = 3; eating = false; eatingTimer = 0; inControl = true; doubleJump = false; doubleJumping = false; jump = true; sneaking = false; pressOnce = 0; walkingThroughDoor = false; walkingThroughDoorTimer = 0; dying = false; dyingTimer = 0; crouch = false; invisible = false; power = 100; cam.lens._xscale = 100; cam.lens._yscale = 100; timeSpentWalkingThroughDoor = 25; timeSpentTurningToDust = 40; timeSpentEating = 40; timeItTakesToGetOutTorch = 15; timeSpentShiningTorch = 80; walkingSpeed = 1; var human = new Array(); var heardSomething = new Array(); var heardSomethingTimer = new Array(); var torch = new Array(); var torchTimer = new Array(); var alive = new Array(); var walking = new Array(); var walkingDistance = new Array(); human.push(human_mc1000, human_mc1001, human_mc1002, human_mc1003, human_mc1004); heardSomething.push(false, false, false, false, false); heardSomethingTimer.push(0, 0, 0, 0, 0); torch.push(false, false, false, false, false); torchTimer.push(0, 0, 0, 0, 0); alive.push(true, true, true, true, true); walking.push(false, false, true, false, true); walkingDistance.push(0, 0, 0, 0, 0); var light = new Array(); light.push(light1, light2, light3, light4, light5, light6, light7, light8, light9, light10, light11, light12); player.onEnterFrame = function () { if (power < 1) { invisible = false; player._alpha = 100; power = 0; } if ((!dying) && (!eating)) { if (power > 0) { if (Key.isDown(83)) { power = power - 1; invisible = true; player._alpha = 30; } else { invisible = false; player._alpha = 100; } } } if (hitPlayer == 0) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:0, gb:0, bb:0}; myColor.setTransform(myColorTransform); } if (hitPlayer == 1) { myColor = new Color(player); myColorTransform = new Object(); myColorTransform = {rb:100, gb:-50, bb:-50}; myColor.setTransform(myColorTransform); hitTimer++; if (hitTimer == 1) { hitPlayer = 0; hitTimer = 0; } } i = light.length - 1; while (i >= 0) { if (player.hitMarker.hitTest(light[i])) { if ((!dying) && (!invisible)) { health = health - 3; hitPlayer = 1; } } i--; } if (health < 0) { inControl = false; dying = true; power = 100; health = 0; } if (dying) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("dead"); if (dyingTimer == 0) { die_sound.start(); } dyingTimer++; if (dyingTimer == timeSpentTurningToDust) { dyingTimer = 0; dying = false; inControl = true; player._x = startPoint._x; player._y = startPoint._y; health = 100; } } i = human.length - 1; while (i >= 0) { if (!alive[i]) { if (walking[i]) { human[i]._xscale = 100; } human[i].gotoAndStop("dead"); } if (alive[i]) { if (walking[i]) { walkingDistance[i]++; human[i].gotoAndStop("walk"); if (walkingDistance[i] == 180) { walkingDistance[i] = 0; } if ((walkingDistance[i] > 0) && (walkingDistance[i] < 90)) { human[i]._xscale = 100; human[i]._x = human[i]._x - walkingSpeed; } if (walkingDistance[i] > 90) { human[i]._xscale = -100; human[i]._x = human[i]._x + walkingSpeed; } } if (!walking[i]) { if (torch[i]) { torchTimer[i]++; human[i].gotoAndStop("light"); if (torchTimer[i] == timeSpentShiningTorch) { torch[i] = false; torchTimer[i] = 0; human[i].gotoAndStop("idle"); } } if (heardSomething[i]) { if (heardSomethingTimer[i] == 0) { gasp_sound.start(); } heardSomethingTimer[i]++; human[i].gotoAndStop("wtf"); if (heardSomethingTimer[i] == timeItTakesToGetOutTorch) { heardSomethingTimer[i] = 0; heardSomething[i] = false; torch[i] = true; } } } if ((!dying) && (player.hitTest(human[i].hit))) { alive[i] = false; eating = true; inControl = false; } if (player.hitMarker.hitTest(human[i].beam)) { if ((!dying) && (!invisible)) { health = health - 10; hitPlayer = 1; } } if (player.hitTest(human[i].zone)) { if (!sneaking) { if (!torch[i]) { heardSomething[i] = true; } } } } i--; } if (!jump) { crouch = false; } if (inControl) { if ((!running) && (jump)) { if (Key.isDown(40)) { maxaccel = 2; crouch = true; } else { maxaccel = 5; crouch = false; } } } if ((!jump) && (!crouch)) { maxaccel = 5; sneaking = false; } if (inControl) { if (jump && (!crouch)) { if (Key.isDown(65)) { maxaccel = 1.6; sneaking = true; } else { maxaccel = 5; sneaking = false; } } } if (player.hitTest(door)) { walkingThroughDoor = true; xaccel = 0; inControl = false; player.gotoAndStop("throughDoor"); } if (walkingThroughDoor) { walkingThroughDoorTimer++; if (walkingThroughDoorTimer == timeSpentWalkingThroughDoor) { removeStuff(); hud.ac.gotoAndStop("areaComplete"); } } if (eating) { invisible = false; player._alpha = 100; xaccel = 0; player.gotoAndStop("feeding"); eatingTimer++; if (eatingTimer == timeSpentEating) { eating = false; eatingTimer = 0; inControl = true; } } if (inControl) { if (doubleJumping) { player.gotoAndStop("double"); } if (crouch && (!running)) { player.gotoAndStop("crouch"); } if (crouch && (running)) { player.gotoAndStop("crouchWalk"); } if (!crouch) { if (!sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("run"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } if (sneaking) { if (jump && (!doubleJumping)) { if (running) { player.gotoAndStop("sneak"); } else { player.gotoAndStop("idle"); } } else if (!doubleJumping) { player.gotoAndStop("jump"); } } } if (Key.isDown(39) or Key.isDown(37)) { running = true; } else { running = false; } } if (!ground.hitTest(player._x, player._y + 10, true)) { falling = true; grounded = false; } if (ground.hitTest(player._x, player._y + 11, true)) { doubleJumping = false; doubleJump = false; jump = true; grounded = true; falling = false; while (ground.hitTest(player._x, player._y + 9, true)) { player._y--; } } if (falling == true) { gravity = gravity + gravityaccel; } else { gravity = 0; } if (inControl) { if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == true)) { xaccel = xaccel + (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == true)) { xaccel = xaccel - (runaccelamt - airrisist); } else if ((Key.isDown(37) && (xaccel > (-maxaccel))) && (falling == false)) { xaccel = xaccel - runaccelamt; } else if ((Key.isDown(39) && (xaccel < maxaccel)) && (falling == false)) { xaccel = xaccel + runaccelamt; } else if (grounded == true) { if (xaccel > 0) { xaccel = xaccel - friction; } if (xaccel < 0) { xaccel = xaccel + friction; } if ((xaccel < 0) && (xaccel > friction)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < friction)) { xaccel = 0; } } else { if (xaccel > 0) { xaccel = xaccel - airrisist; } if (xaccel < 0) { xaccel = xaccel + airrisist; } if ((xaccel < 0) && (xaccel > airrisist)) { xaccel = 0; } if ((xaccel > 0) && (xaccel < airrisist)) { xaccel = 0; } } } if (_root.ground.hitTest(this._x, this._y - 11, true)) { gravity = 1; while (_root.ground.hitTest(this._x, this._y - 10, true)) { this._y++; } } if (xaccel > 0) { player._xscale = 100; } if (xaccel < 0) { player._xscale = -100; } if (!Key.isDown(38)) { pressOnce = 0; } if (inControl) { if (Key.isDown(38) && (jump == true)) { gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump); jump = false; doubleJump = true; pressOnce = 1; } } leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7); lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 500); rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7); righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 500); if (ground.hitTest(leftx, lefty, true)) { xaccel = 0; player._x++; } if (ground.hitTest(rightx, righty, true)) { xaccel = 0; player._x--; } hud.whateverTheInvisibilityBarIsCalled._xscale = power; hud.whateverTheHealthBarIsCalled._xscale = health; if (ingame) { cam._x = _root.player._x; cam._y = _root.player._y - 30; cam.camControl(); } player._y = player._y + gravity; player._x = player._x + xaccel; hud._x = cam._x; hud._y = cam._y; hud._xscale = cam.lens._xscale; hud._yscale = cam.lens._yscale; if (_global.goToTitle) { stopAllSounds(); removeStuff(); gotoAndStop ("title"); } if (_global.levelDone) { removeStuff(); nextFrame(); } };
Frame 25
stop(); cam._x = csTest._x; cam._y = csTest._y;
Instance of Symbol 190 MovieClip in Frame 25
on (release) { getURL ("http://www.deadfrontier.com/index.php?cp=neilNightcrawlers&sid=4", "_blank"); }
Symbol 2 MovieClip [sniper] Frame 1
type = "sniper"; if (!Key.isDown(70)) { pressed = false; } onEnterFrame = function () { if (!(_parent._name === "gun")) { if (_root.guy.hitTest(this) && (_root.intank == false)) { _root.cam["hitgun" + type] = true; if (Key.isDown(70) && (pressed == false)) { _root.cam["hitgun" + type] = false; _root.arm.gun.attachMovie(type, "dwa", 1); dgun = _root.arm.cgun; _root.arm.cgun = type; _root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y}); pressed = true; } if (!Key.isDown(70)) { pressed = false; } } else { _root.cam["hitgun" + type] = false; } } };
Symbol 4 MovieClip [pistol] Frame 1
type = "pistol"; if (!Key.isDown(70)) { pressed = false; } onEnterFrame = function () { if (!(_parent._name === "gun")) { if (_root.guy.hitTest(this) && (_root.intank == false)) { _root.cam["hitgun" + type] = true; if (Key.isDown(70) && (pressed == false)) { _root.cam["hitgun" + type] = false; _root.arm.gun.attachMovie(type, "dwa", 1); dgun = _root.arm.cgun; _root.arm.cgun = type; _root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y}); pressed = true; } if (!Key.isDown(70)) { pressed = false; } } else { _root.cam["hitgun" + type] = false; } } };
Symbol 6 MovieClip [assault] Frame 1
type = "assault"; if (!Key.isDown(70)) { pressed = false; } onEnterFrame = function () { if (!(_parent._name === "gun")) { if (_root.guy.hitTest(this) && (_root.intank == false)) { _root.cam["hitgun" + type] = true; if (Key.isDown(70) && (pressed == false)) { _root.cam["hitgun" + type] = false; _root.arm.gun.attachMovie(type, "dwa", 1); dgun = _root.arm.cgun; _root.arm.cgun = type; pressed = true; _root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y}); } if (!Key.isDown(70)) { pressed = false; } } else { _root.cam["hitgun" + type] = false; } } };
Symbol 8 MovieClip Frame 2
this._parent.spd = 130;
Symbol 8 MovieClip Frame 3
this._parent.spd = _root.bulletspd; stop();
Symbol 9 MovieClip [tankshell] Frame 1
if (_root.water.hitTest(_x, _y, true)) { water = true; } else { water = false; } if (_root.tank._xscale == 100) { left = true; } onEnterFrame = function () { if (left == true) { this._x = this._x + (Math.cos((_rotation * 3.141593) / 180) * spd); this._y = this._y + (Math.sin((_rotation * 3.141593) / 180) * spd); } else { this._x = this._x + (Math.cos(((_rotation - 180) * 3.141593) / 180) * spd); this._y = this._y + (Math.sin(((_rotation - 180) * 3.141593) / 180) * spd); } if (_root.ground.hitTest(_x, _y, true)) { removeMovieClip(this); } if (_root.water.hitTest(_x, _y, true)) { spd = spd / 1.2; if (water == false) { _root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:_y - _root.water._y, _xscale:50}); water = true; } } else if (water == true) { _root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:(_y - _root.water._y) + 2, _xscale:50}); water = false; } if (spd < 0.1) { removeMovieClip(this); } if ((spd < 3) && (!_root.water.hitTest(_x, _y, true))) { removeMovieClip(this); } };
Symbol 11 MovieClip [shotgun] Frame 1
type = "shotgun"; if (!Key.isDown(70)) { pressed = false; } onEnterFrame = function () { if (!(_parent._name === "gun")) { if (_root.guy.hitTest(this) && (_root.intank == false)) { _root.cam["hitgun" + type] = true; if (Key.isDown(70) && (pressed == false)) { _root.cam["hitgun" + type] = false; _root.arm.gun.attachMovie(type, "dwa", 1); dgun = _root.arm.cgun; _root.arm.cgun = type; pressed = true; _root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y}); } if (!Key.isDown(70)) { pressed = false; } } else { _root.cam["hitgun" + type] = false; } } };
Symbol 13 MovieClip [blood] Frame 1
gravity = 0; onEnterFrame = function () { _y = (_y + yspd); _x = (_x + xspd); if (_root.ground.hitTest(_x, _y + 1, true)) { _alpha = (_alpha - 5); xspd = 0; yspd = 0; while (_root.ground.hitTest(_x, _y, true)) { _y = (_y-1); _y = (_y-1); } } else { gravity = gravity + 0.2; _y = (_y + gravity); } if (_alpha <= 0) { removeMovieClip(this); } };
Symbol 15 MovieClip Frame 2
stop();
Symbol 16 MovieClip [bullet] Frame 1
function hitsomeone(person) { if (_root[person].died != true) { hydif = Math.abs(_root[person + "head"]._y - looky); bydif = Math.abs(_root[person + "body"]._y - looky); nydif = Math.abs(_root[person + "neck"]._y - looky); xdif = _root[person]._x - _x; if (hydif < nydif) { hitarea = "head"; } else if (nydif < bydif) { hitarea = "neck"; } else { hitarea = "body"; } if (hitarea == "head") { _root[person].dead = hitarea; _root[person].deathway = xdif; _root[person].hitx = lookx; _root[person].hity = looky; _root[person].hp = _root[person].hp - damage; removeMovieClip(this); } if (hitarea == "neck") { _root[person].dead = hitarea; _root[person].deathway = xdif; _root[person].hitx = lookx; _root[person].hity = looky; removeMovieClip(this); } if (hitarea == "body") { _root[person].dead = hitarea; _root[person].deathway = xdif; _root[person].hitx = lookx; _root[person].hity = looky; _root[person].hp = _root[person].hp - (damage / 4); removeMovieClip(this); } } } spd = _root.bulletspd; left = false; if (typelol == "shot") { damage = 50; } else { damage = 100; } if (_root.water.hitTest(_x, _y, true)) { water = true; } else { water = false; } if (_root[shooter]._xscale == 100) { left = true; } bcount = 0; onEnterFrame = function () { if (spd < 0.1) { removeMovieClip(this); } if ((spd < 3) && (!_root.water.hitTest(_x, _y, true))) { removeMovieClip(this); } if (left == true) { this._x = this._x + (Math.cos((_rotation * 3.141593) / 180) * spd); this._y = this._y + (Math.sin((_rotation * 3.141593) / 180) * spd); } else { this._x = this._x + (Math.cos(((_rotation - 180) * 3.141593) / 180) * spd); this._y = this._y + (Math.sin(((_rotation - 180) * 3.141593) / 180) * spd); } j = 0; while (j < spd) { if (left == true) { lookx = _x + (Math.cos((_rotation * 3.141593) / 180) * j); looky = _y + (Math.sin((_rotation * 3.141593) / 180) * j); } else { lookx = _x + (Math.cos(((_rotation - 180) * 3.141593) / 180) * j); looky = _y + (Math.sin(((_rotation - 180) * 3.141593) / 180) * j); } if (shooter == "guy") { if (_root.enemy.hitTest(lookx, looky, true)) { _root.crosshair.n.gotoAndPlay(2); hitsomeone("enemy"); } } else if (_root.guy.hitTest(lookx, looky, true)) { hitsomeone("guy"); } if (_root.ground.hitTest(lookx, looky, true)) { _x = lookx; _y = looky; spd = 0; } j = j + (spd / 5); } if (_root.water.hitTest(_x, _y, true)) { spd = spd / 1.3; if (water == false) { _root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:_y - _root.water._y, _xscale:50}); water = true; } } else if (water == true) { _root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:(_y - _root.water._y) + 2, _xscale:50}); water = false; } };
Symbol 18 MovieClip [bubble] Frame 1
onEnterFrame = function () { if (!_root.water.hitTest(_x, _y, true)) { removeMovieClip(this); } if (_root.ground.hitTest(_x + (_width / 2), _y + (_width / 2), true)) { _x = (_x-1); _x = (_x-1); } if (_root.ground.hitTest(_x - (_width / 2), _y + (_width / 2), true)) { _x = (_x+1); _x = (_x+1); } _y = (_y - 0.5); _x = (_x + (Math.round(Math.random()) - Math.round(Math.random()))); };
Symbol 29 MovieClip [splash] Frame 29
removeMovieClip(this);
Symbol 43 MovieClip Frame 1
myButton.onRelease = function () { if (clickTAG.substr(0, 5) == "http:") { getURL (clickTAG, "_blank"); } };
Symbol 43 MovieClip Frame 240
gotoAndPlay ("start");
Symbol 77 MovieClip Frame 5
stop();
Symbol 82 MovieClip Frame 10
stop();
Symbol 85 MovieClip Frame 5
stop();
Symbol 94 MovieClip Frame 30
stop();
Symbol 95 MovieClip Frame 1
_root.stop();
Symbol 95 MovieClip Frame 175
_root.play(); stopAllSounds();
Symbol 101 MovieClip Frame 1
function camControl() { parentColor.setTransform(camColor.getTransform()); var _local3 = sX / this._width; var _local4 = sY / this._height; _parent._x = cX - (this._x * _local3); _parent._y = cY - (this._y * _local4); _parent._xscale = 100 * _local3; _parent._yscale = 100 * _local4; } stop(); this._visible = true; var oldMode = Stage.scaleMode; Stage.scaleMode = "exactFit"; var cX = (Stage.width / 2); var cY = (Stage.height / 2); var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; camControl();
Symbol 110 MovieClip Frame 12
stop();
Symbol 113 Button
on (release) { gotoAndPlay (2); _root.soundstatus = "off"; }
Symbol 114 MovieClip Frame 11
stop();
Symbol 116 Button
on (release) { gotoAndPlay (1); _root.soundstatus = "on"; }
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 122 MovieClip [sound_contr] Frame 1
onClipEvent (load) { _root.soundstatus = "on"; _root.mySound = new Sound(_level0); _root.mySound2 = new Sound(_level1); _root.mySound3 = new Sound(_level2); _root.mySound4 = new Sound(_level3); _root.mySound5 = new Sound(_level4); maxvolume = 100; minvolume = 0; } onClipEvent (enterFrame) { if (_root.soundstatus == "on") { step = 5; } if (_root.soundstatus == "off") { step = -5; } maxvolume = maxvolume + step; if (maxvolume > 100) { maxvolume = 100; } if (maxvolume < 0) { maxvolume = 0; } _root.mySound.setVolume(maxvolume); _root.mySound2.setVolume(maxvolume); _root.mySound3.setVolume(maxvolume); _root.mySound4.setVolume(maxvolume); _root.mySound5.setVolume(maxvolume); }
Instance of Symbol 148 MovieClip in Symbol 151 MovieClip Frame 1
/* no clip actions */
Symbol 186 MovieClip Frame 660
stopAllSounds();
Symbol 187 MovieClip Frame 1
_root.stop();
Symbol 187 MovieClip Frame 1045
_root.play();
Symbol 223 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
stop();
Symbol 234 MovieClip Frame 15
gotoAndPlay (9);
Symbol 242 MovieClip Frame 26
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 2
stop();
Symbol 243 MovieClip Frame 3
stop();
Symbol 243 MovieClip Frame 4
stop();
Symbol 243 MovieClip Frame 5
stop();
Symbol 243 MovieClip Frame 6
stop();
Symbol 243 MovieClip Frame 7
stop();
Symbol 243 MovieClip Frame 8
stop();
Symbol 243 MovieClip Frame 9
stop();
Symbol 243 MovieClip Frame 10
stop();
Symbol 243 MovieClip Frame 11
stop();
Symbol 257 MovieClip Frame 39
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
function camControl() { parentColor.setTransform(camColor.getTransform()); var _local3 = sX / this._width; var _local4 = sY / this._height; _parent._x = cX - (this._x * _local3); _parent._y = cY - (this._y * _local4); _parent._xscale = 100 * _local3; _parent._yscale = 100 * _local4; } stop(); this._visible = true; var oldMode = Stage.scaleMode; Stage.scaleMode = "exactFit"; var cX = (Stage.width / 2); var cY = (Stage.height / 2); var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; camControl();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Instance of Symbol 281 MovieClip in Symbol 282 MovieClip Frame 2
on (release) { _global.levelDone = true; } on (rollOver) { this.gotoAndStop("over"); } on (rollOut) { this.gotoAndStop("up"); }
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip Frame 1
on (release) { _global.goToTitle = true; } on (rollOver) { this.gotoAndStop("over"); } on (rollOut) { this.gotoAndStop("up"); }
Instance of Symbol 190 MovieClip in Symbol 283 MovieClip Frame 1
on (release) { getURL ("http://www.deadfrontier.com/index.php?cp=neilNightcrawlers&sid=3", "_blank"); }
Symbol 321 MovieClip Frame 1
_root.stop();
Symbol 321 MovieClip Frame 95
_root.play();
Symbol 339 MovieClip Frame 1
_root.stop();
Symbol 339 MovieClip Frame 95
_root.play();
Symbol 354 MovieClip Frame 1
_root.stop();
Symbol 354 MovieClip Frame 95
_root.play();
Instance of Symbol 277 MovieClip in Symbol 357 MovieClip Frame 1
on (release) { _root.gotoAndStop("title"); } on (rollOver) { this.gotoAndStop("over"); } on (rollOut) { this.gotoAndStop("up"); }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [sniper]Uses:1
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClip [pistol]Uses:3
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClip [assault]Uses:5
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:9
Symbol 9 MovieClip [tankshell]Uses:8
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip [shotgun]Uses:10
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip [blood]Uses:12
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:14Used by:16
Symbol 16 MovieClip [bullet]Uses:15
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClip [bubble]Uses:17
Symbol 19 ShapeTweeningUsed by:29
Symbol 20 GraphicUsed by:29
Symbol 21 ShapeTweeningUsed by:29
Symbol 22 ShapeTweeningUsed by:29
Symbol 23 GraphicUsed by:29
Symbol 24 ShapeTweeningUsed by:29
Symbol 25 ShapeTweeningUsed by:29
Symbol 26 GraphicUsed by:29
Symbol 27 GraphicUsed by:29
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClip [splash]Uses:19 20 21 22 23 24 25 26 27 28
Symbol 30 GraphicUsed by:43
Symbol 31 BitmapUsed by:32 42
Symbol 32 GraphicUses:31Used by:43
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35
Symbol 35 MovieClipUses:34Used by:43
Symbol 36 GraphicUsed by:37
Symbol 37 ButtonUses:36Used by:43
Symbol 38 BitmapUsed by:39 41
Symbol 39 GraphicUses:38Used by:43
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:38 40Used by:43
Symbol 42 GraphicUses:31Used by:43
Symbol 43 MovieClipUses:30 32 35 37 39 41 42Used by:Timeline
Symbol 44 GraphicUsed by:Timeline
Symbol 45 GraphicUsed by:46 106 127
Symbol 46 MovieClipUses:45Used by:Timeline
Symbol 47 GraphicUsed by:52
Symbol 48 GraphicUsed by:52
Symbol 49 GraphicUsed by:52
Symbol 50 GraphicUsed by:52
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClipUses:47 48 49 50 51Used by:73 179
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClipUses:53Used by:73 169 179 210 227 233 235 236 237 240 241 317
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClipUses:55Used by:73 169 179 233 235 241 317
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:57Used by:73 169 179 210 227 230 233 235 236 237 240 241 317
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:59Used by:73 162 179 181 210 252 256
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:73 162 176 179 181 210 252 253 256
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:63Used by:73 162 176 179 181 210 252 253 256
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:65Used by:73
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClipUses:67Used by:73 179
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClipUses:69Used by:73 179 227 233 235 237 240 317
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClipUses:71Used by:73 169 179 210 227 230 236 237 241
Symbol 73 MovieClipUses:52 54 56 58 60 62 64 66 68 70 72Used by:321 339 354 357  Timeline
Symbol 74 GraphicUsed by:95 96 186 187 263 321 338 339 353 354 357
Symbol 75 ShapeTweeningUsed by:77
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClipUses:75 76Used by:94
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClipUses:78Used by:94
Symbol 80 ShapeTweeningUsed by:82
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:80 81Used by:94
Symbol 83 ShapeTweeningUsed by:85
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:83 84Used by:94
Symbol 86 FontUsed by:87 89 90
Symbol 87 TextUses:86Used by:88
Symbol 88 MovieClipUses:87Used by:94
Symbol 89 TextUses:86Used by:91
Symbol 90 TextUses:86Used by:91
Symbol 91 MovieClipUses:89 90Used by:94
Symbol 92 MovieClipUsed by:93
Symbol 93 MovieClipUses:92Used by:94
Symbol 94 MovieClipUses:77 79 82 85 88 91 93Used by:95
Symbol 95 MovieClipUses:74 94 SS1Used by:Timeline
Symbol 96 MovieClipUses:74Used by:98 277 281
Symbol 97 GraphicUsed by:98
Symbol 98 MovieClipUses:96 97Used by:Timeline
Symbol 99 GraphicUsed by:100
Symbol 100 MovieClipUses:99Used by:101 268
Symbol 101 MovieClipUses:100Used by:Timeline
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClipUses:102Used by:Timeline
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClipUses:104Used by:117
Symbol 106 MovieClipUses:45Used by:107 108
Symbol 107 MovieClipUses:106Used by:109
Symbol 108 MovieClipUses:106Used by:109
Symbol 109 MovieClipUses:107 108Used by:110 114
Symbol 110 MovieClipUses:109Used by:117
Symbol 111 GraphicUsed by:117
Symbol 112 GraphicUsed by:113 116
Symbol 113 ButtonUses:112Used by:117
Symbol 114 MovieClipUses:109Used by:117
Symbol 115 GraphicUsed by:117
Symbol 116 ButtonUses:112Used by:117
Symbol 117 MovieClipUses:105 110 111 113 114 115 116Used by:122
Symbol 118 GraphicUsed by:121 250
Symbol 119 FontUsed by:120
Symbol 120 TextUses:119Used by:121
Symbol 121 MovieClipUses:118 120Used by:122
Symbol 122 MovieClip [sound_contr]Uses:117 121Used by:187 283
Symbol 123 GraphicUsed by:187
Symbol 124 SoundUsed by:187
Symbol 125 SoundUsed by:187 321 339 354
Symbol 126 SoundUsed by:187
Symbol 127 MovieClipUses:45Used by:187 321 339 354
Symbol 128 BitmapUsed by:129
Symbol 129 GraphicUses:128Used by:187
Symbol 130 GraphicUsed by:187
Symbol 131 GraphicUsed by:187
Symbol 132 GraphicUsed by:187
Symbol 133 GraphicUsed by:139
Symbol 134 ShapeTweeningUsed by:139
Symbol 135 GraphicUsed by:139
Symbol 136 GraphicUsed by:139
Symbol 137 GraphicUsed by:139
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:133 134 135 136 137 138Used by:152
Symbol 140 GraphicUsed by:148
Symbol 141 GraphicUsed by:148
Symbol 142 GraphicUsed by:148
Symbol 143 GraphicUsed by:148
Symbol 144 GraphicUsed by:148
Symbol 145 GraphicUsed by:148
Symbol 146 GraphicUsed by:148
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClipUses:140 141 142 143 144 145 146 147Used by:151
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClipUses:149Used by:151
Symbol 151 MovieClipUses:148 150Used by:152
Symbol 152 MovieClip [un]Uses:139 151Used by:186 283
Symbol 153 GraphicUsed by:186
Symbol 154 BitmapUsed by:155
Symbol 155 GraphicUses:154Used by:156
Symbol 156 MovieClipUses:155Used by:159 321  Timeline
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:159
Symbol 159 MovieClipUses:156 158Used by:186
Symbol 160 GraphicUsed by:161
Symbol 161 MovieClipUses:160Used by:162 179 181 256
Symbol 162 MovieClipUses:60 62 64 161Used by:163 186 258
Symbol 163 MovieClipUses:162Used by:186
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClipUses:164Used by:169 179 227 230 237 240 241
Symbol 166 GraphicUsed by:167
Symbol 167 MovieClipUses:166Used by:169 179 210 236 241
Symbol 168 SoundUsed by:169 235
Symbol 169 MovieClipUses:56 54 58 72 165 167 168Used by:186 243
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClipUses:170Used by:176 253
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClipUses:172Used by:176 252 253
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClipUses:174Used by:176 252 253 256
Symbol 176 MovieClipUses:171 62 64 173 175Used by:186
Symbol 177 GraphicUsed by:178
Symbol 178 MovieClipUses:177Used by:186
Symbol 179 MovieClipUses:54 165 58 60 62 64 161 70 56 68 167 52 72 SS2Used by:186 243
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClipUses:60 62 64 161 180Used by:186 257 339 354
Symbol 182 GraphicUsed by:186
Symbol 183 GraphicUsed by:186
Symbol 184 GraphicUsed by:186
Symbol 185 GraphicUsed by:186
Symbol 186 MovieClipUses:74 152 153 159 163 169 162 176 178 179 181 182 183 184 185 SS3Used by:187
Symbol 187 MovieClipUses:74 122 123 124 125 126 127 129 130 131 132 186Used by:Timeline
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:190
Symbol 190 MovieClipUses:189Used by:283  Timeline
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:191Used by:Timeline
Symbol 193 GraphicUsed by:194
Symbol 194 MovieClipUses:193Used by:Timeline
Symbol 195 GraphicUsed by:203
Symbol 196 GraphicUsed by:197
Symbol 197 MovieClipUses:196Used by:203 260 296 299 311 313 328 334 350 352
Symbol 198 GraphicUsed by:203
Symbol 199 GraphicUsed by:203
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:200Used by:203 296 311 334 350
Symbol 202 GraphicUsed by:203
Symbol 203 MovieClipUses:195 197 198 199 201 202Used by:Timeline
Symbol 204 GraphicUsed by:Timeline
Symbol 205 GraphicUsed by:206
Symbol 206 MovieClipUses:205Used by:Timeline
Symbol 207 GraphicUsed by:210
Symbol 208 GraphicUsed by:209
Symbol 209 MovieClipUses:208Used by:210
Symbol 210 MovieClipUses:207 60 62 64 167 54 58 72 209Used by:357  Timeline
Symbol 211 GraphicUsed by:223
Symbol 212 BitmapUsed by:213
Symbol 213 GraphicUses:212Used by:222
Symbol 214 BitmapUsed by:215
Symbol 215 GraphicUses:214Used by:222
Symbol 216 BitmapUsed by:217
Symbol 217 GraphicUses:216Used by:222
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:222
Symbol 220 BitmapUsed by:221
Symbol 221 GraphicUses:220Used by:222
Symbol 222 MovieClipUses:213 215 217 219 221Used by:223 226
Symbol 223 MovieClipUses:211 222Used by:227
Symbol 224 GraphicUsed by:226
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClipUses:224 225 222Used by:227
Symbol 227 MovieClipUses:54 223 226 165 58 72 70Used by:Timeline
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClipUses:228Used by:230 241
Symbol 230 MovieClipUses:229 165 58 72Used by:243
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClipUses:231Used by:243
Symbol 233 MovieClipUses:56 54 58 70Used by:243
Symbol 234 MovieClipUsed by:243
Symbol 235 MovieClipUses:54 56 58 70 168Used by:242 243
Symbol 236 MovieClipUses:167 54 58 72Used by:243
Symbol 237 MovieClipUses:54 165 58 72 70Used by:243
Symbol 238 GraphicUsed by:239
Symbol 239 MovieClipUses:238Used by:240
Symbol 240 MovieClipUses:54 165 58 70 239Used by:243
Symbol 241 MovieClipUses:56 54 58 165 72 167 229Used by:243
Symbol 242 MovieClipUses:235Used by:243
Symbol 243 MovieClipUses:230 232 169 233 234 235 236 179 237 240 241 242Used by:Timeline
Symbol 244 GraphicUsed by:245
Symbol 245 MovieClipUses:244Used by:Timeline
Symbol 246 GraphicUsed by:247
Symbol 247 MovieClipUses:246Used by:Timeline
Symbol 248 GraphicUsed by:249
Symbol 249 MovieClipUses:248Used by:258
Symbol 250 MovieClipUses:118Used by:258
Symbol 251 GraphicUsed by:252
Symbol 252 MovieClipUses:251 175 62 64 173 60Used by:258
Symbol 253 MovieClipUses:171 62 64 173 175Used by:258
Symbol 254 GraphicUsed by:255
Symbol 255 MovieClipUses:254Used by:258
Symbol 256 MovieClipUses:60 62 64 161 175Used by:258
Symbol 257 MovieClipUses:181Used by:258
Symbol 258 MovieClipUses:249 162 250 252 253 255 256 257Used by:Timeline
Symbol 259 GraphicUsed by:260
Symbol 260 MovieClipUses:259 197Used by:Timeline
Symbol 261 GraphicUsed by:262
Symbol 262 MovieClipUses:261Used by:Timeline
Symbol 263 MovieClipUses:74Used by:Timeline
Symbol 264 GraphicUsed by:266 267 335
Symbol 265 GraphicUsed by:266 305 314 335
Symbol 266 MovieClipUses:264 265Used by:Timeline
Symbol 267 MovieClipUses:264Used by:305 315 316  Timeline
Symbol 268 MovieClipUses:100Used by:Timeline
Symbol 269 GraphicUsed by:270
Symbol 270 MovieClipUses:269Used by:283
Symbol 271 GraphicUsed by:272
Symbol 272 MovieClipUses:271Used by:283
Symbol 273 GraphicUsed by:283
Symbol 274 GraphicUsed by:283
Symbol 275 GraphicUsed by:277
Symbol 276 GraphicUsed by:277
Symbol 277 MovieClipUses:96 275 276Used by:283 357
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:278Used by:282
Symbol 280 GraphicUsed by:281
Symbol 281 MovieClipUses:96 280Used by:282
Symbol 282 MovieClipUses:279 281Used by:283
Symbol 283 MovieClipUses:270 272 273 152 274 122 277 282 190Used by:Timeline
Symbol 284 Sound [gasp]Used by:Timeline
Symbol 285 Sound [dieSound]Used by:Timeline
Symbol 286 SoundUsed by:Timeline
Symbol 287 SoundUsed by:Timeline
Symbol 288 GraphicUsed by:289
Symbol 289 MovieClipUses:288Used by:Timeline
Symbol 290 GraphicUsed by:296
Symbol 291 GraphicUsed by:296
Symbol 292 GraphicUsed by:293
Symbol 293 MovieClipUses:292Used by:294
Symbol 294 MovieClipUses:293Used by:296 350
Symbol 295 GraphicUsed by:296
Symbol 296 MovieClipUses:290 197 291 294 295 201Used by:Timeline
Symbol 297 GraphicUsed by:Timeline
Symbol 298 GraphicUsed by:299
Symbol 299 MovieClipUses:298 197Used by:Timeline
Symbol 300 GraphicUsed by:301
Symbol 301 MovieClipUses:300Used by:Timeline
Symbol 302 GraphicUsed by:303
Symbol 303 MovieClipUses:302Used by:304 314
Symbol 304 MovieClipUses:303Used by:Timeline
Symbol 305 MovieClipUses:267 265Used by:Timeline
Symbol 306 GraphicUsed by:307
Symbol 307 MovieClipUses:306Used by:Timeline
Symbol 308 GraphicUsed by:311
Symbol 309 GraphicUsed by:311
Symbol 310 GraphicUsed by:311
Symbol 311 MovieClipUses:308 197 309 310 201Used by:Timeline
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClipUses:312 197Used by:Timeline
Symbol 314 MovieClipUses:303 265Used by:Timeline
Symbol 315 MovieClipUses:267Used by:Timeline
Symbol 316 MovieClipUses:267Used by:Timeline
Symbol 317 MovieClipUses:56 54 58 70Used by:321
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:318Used by:321
Symbol 320 GraphicUsed by:321 339 354
Symbol 321 MovieClipUses:156 317 319 320 125 127 74 73Used by:Timeline
Symbol 322 BitmapUsed by:323
Symbol 323 GraphicUses:322Used by:324
Symbol 324 MovieClipUses:323Used by:338 339  Timeline
Symbol 325 GraphicUsed by:326
Symbol 326 MovieClipUses:325Used by:Timeline
Symbol 327 GraphicUsed by:328
Symbol 328 MovieClipUses:327 197Used by:Timeline
Symbol 329 GraphicUsed by:330
Symbol 330 MovieClipUses:329Used by:Timeline
Symbol 331 GraphicUsed by:334
Symbol 332 GraphicUsed by:334
Symbol 333 GraphicUsed by:334
Symbol 334 MovieClipUses:331 197 332 333 201Used by:Timeline
Symbol 335 MovieClipUses:264 265Used by:Timeline
Symbol 336 GraphicUsed by:337
Symbol 337 MovieClipUses:336Used by:Timeline
Symbol 338 MovieClipUses:74 324Used by:339
Symbol 339 MovieClipUses:338 73 320 125 127 324 74 181Used by:Timeline
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:342
Symbol 342 MovieClipUses:341Used by:353 354  Timeline
Symbol 343 GraphicUsed by:344
Symbol 344 MovieClipUses:343Used by:Timeline
Symbol 345 GraphicUsed by:346
Symbol 346 MovieClipUses:345Used by:Timeline
Symbol 347 GraphicUsed by:350
Symbol 348 GraphicUsed by:350
Symbol 349 GraphicUsed by:350
Symbol 350 MovieClipUses:347 197 294 348 349 201Used by:Timeline
Symbol 351 GraphicUsed by:352
Symbol 352 MovieClipUses:351 197Used by:Timeline
Symbol 353 MovieClipUses:74 342Used by:354
Symbol 354 MovieClipUses:353 73 320 125 127 342 74 181Used by:Timeline
Symbol 355 GraphicUsed by:Timeline
Symbol 356 GraphicUsed by:357
Symbol 357 MovieClipUses:74 210 73 356 277Used by:Timeline
Streaming Sound 1Used by:Symbol 95 MovieClip
Streaming Sound 2Used by:Symbol 179 MovieClip
Streaming Sound 3Used by:Symbol 186 MovieClip

Instance Names

"loadBar"Frame 1Symbol 46 MovieClip
"logo"Frame 3Symbol 95 MovieClip
"cam"Frame 4Symbol 101 MovieClip
"csTest"Frame 4Symbol 103 MovieClip
"ground"Frame 6Symbol 203 MovieClip
"player"Frame 6Symbol 243 MovieClip
"startPoint"Frame 6Symbol 245 MovieClip
"door"Frame 6Symbol 247 MovieClip
"human_mc"Frame 6Symbol 258 MovieClip
"human_mc1"Frame 6Symbol 258 MovieClip
"light8"Frame 6Symbol 266 MovieClip
"light3"Frame 6Symbol 267 MovieClip
"light4"Frame 6Symbol 266 MovieClip
"cam"Frame 6Symbol 268 MovieClip
"hud"Frame 6Symbol 283 MovieClip
"ground"Frame 7Symbol 296 MovieClip
"human_mc6"Frame 7Symbol 258 MovieClip
"human_mc11"Frame 7Symbol 258 MovieClip
"light10"Frame 7Symbol 304 MovieClip
"light3"Frame 7Symbol 305 MovieClip
"ground"Frame 8Symbol 311 MovieClip
"human_mc2"Frame 8Symbol 258 MovieClip
"human_mc3"Frame 8Symbol 258 MovieClip
"light5"Frame 8Symbol 314 MovieClip
"light6"Frame 8Symbol 267 MovieClip
"light3"Frame 8Symbol 315 MovieClip
"light1"Frame 8Symbol 316 MovieClip
"light9"Frame 8Symbol 266 MovieClip
"light6"Frame 8Symbol 267 MovieClip
"cs"Frame 9Symbol 321 MovieClip
"cam"Frame 9Symbol 101 MovieClip
"csTest"Frame 9Symbol 103 MovieClip
"ground"Frame 10Symbol 311 MovieClip
"player"Frame 10Symbol 243 MovieClip
"startPoint"Frame 10Symbol 245 MovieClip
"door"Frame 10Symbol 247 MovieClip
"human_mc6"Frame 10Symbol 258 MovieClip
"human_mc7"Frame 10Symbol 258 MovieClip
"light5"Frame 10Symbol 314 MovieClip
"light6"Frame 10Symbol 267 MovieClip
"light10"Frame 10Symbol 304 MovieClip
"light3"Frame 10Symbol 315 MovieClip
"light3"Frame 10Symbol 315 MovieClip
"light3"Frame 10Symbol 315 MovieClip
"light6"Frame 10Symbol 267 MovieClip
"light6"Frame 10Symbol 267 MovieClip
"cam"Frame 10Symbol 268 MovieClip
"hud"Frame 10Symbol 283 MovieClip
"ground"Frame 11Symbol 334 MovieClip
"human_mc2"Frame 11Symbol 258 MovieClip
"human_mc4"Frame 11Symbol 258 MovieClip
"human_mc5"Frame 11Symbol 258 MovieClip
"light3"Frame 11Symbol 267 MovieClip
"light4"Frame 11Symbol 335 MovieClip
"light9"Frame 11Symbol 266 MovieClip
"light10"Frame 11Symbol 314 MovieClip
"ground"Frame 12Symbol 296 MovieClip
"human_mc10"Frame 12Symbol 258 MovieClip
"cs"Frame 13Symbol 339 MovieClip
"cam"Frame 13Symbol 101 MovieClip
"csTest"Frame 13Symbol 103 MovieClip
"ground"Frame 14Symbol 350 MovieClip
"player"Frame 14Symbol 243 MovieClip
"startPoint"Frame 14Symbol 245 MovieClip
"door"Frame 14Symbol 247 MovieClip
"human_mc11"Frame 14Symbol 258 MovieClip
"light4"Frame 14Symbol 335 MovieClip
"light5"Frame 14Symbol 314 MovieClip
"light9"Frame 14Symbol 266 MovieClip
"light10"Frame 14Symbol 314 MovieClip
"light1"Frame 14Symbol 335 MovieClip
"light3"Frame 14Symbol 305 MovieClip
"cam"Frame 14Symbol 268 MovieClip
"hud"Frame 14Symbol 283 MovieClip
"ground"Frame 15Symbol 311 MovieClip
"human_mc12"Frame 15Symbol 258 MovieClip
"human_mc13"Frame 15Symbol 258 MovieClip
"ground"Frame 16Symbol 350 MovieClip
"human_mc11"Frame 16Symbol 258 MovieClip
"human_mc15"Frame 16Symbol 258 MovieClip
"human_mc14"Frame 16Symbol 258 MovieClip
"light3"Frame 16Symbol 305 MovieClip
"cs"Frame 17Symbol 354 MovieClip
"cam"Frame 17Symbol 101 MovieClip
"csTest"Frame 17Symbol 103 MovieClip
"ground"Frame 18Symbol 203 MovieClip
"player"Frame 18Symbol 243 MovieClip
"startPoint"Frame 18Symbol 245 MovieClip
"door"Frame 18Symbol 247 MovieClip
"human_mc20"Frame 18Symbol 258 MovieClip
"human_mc21"Frame 18Symbol 258 MovieClip
"light8"Frame 18Symbol 266 MovieClip
"light3"Frame 18Symbol 267 MovieClip
"light9"Frame 18Symbol 266 MovieClip
"light10"Frame 18Symbol 304 MovieClip
"light4"Frame 18Symbol 305 MovieClip
"light8"Frame 18Symbol 305 MovieClip
"cam"Frame 18Symbol 268 MovieClip
"hud"Frame 18Symbol 283 MovieClip
"ground"Frame 19Symbol 296 MovieClip
"human_mc26"Frame 19Symbol 258 MovieClip
"human_mc221"Frame 19Symbol 258 MovieClip
"light3"Frame 19Symbol 305 MovieClip
"light1"Frame 19Symbol 335 MovieClip
"light5"Frame 19Symbol 335 MovieClip
"light7"Frame 19Symbol 305 MovieClip
"ground"Frame 20Symbol 311 MovieClip
"human_mc32"Frame 20Symbol 258 MovieClip
"human_mc33"Frame 20Symbol 258 MovieClip
"light6"Frame 20Symbol 267 MovieClip
"light3"Frame 20Symbol 315 MovieClip
"light1"Frame 20Symbol 316 MovieClip
"light7"Frame 20Symbol 267 MovieClip
"cs"Frame 21Symbol 321 MovieClip
"cam"Frame 21Symbol 101 MovieClip
"csTest"Frame 21Symbol 103 MovieClip
"ground"Frame 22Symbol 311 MovieClip
"player"Frame 22Symbol 243 MovieClip
"startPoint"Frame 22Symbol 245 MovieClip
"door"Frame 22Symbol 247 MovieClip
"human_mc222"Frame 22Symbol 258 MovieClip
"human_mc27"Frame 22Symbol 258 MovieClip
"human_mc2226"Frame 22Symbol 258 MovieClip
"light5"Frame 22Symbol 314 MovieClip
"light6"Frame 22Symbol 267 MovieClip
"light10"Frame 22Symbol 304 MovieClip
"light3"Frame 22Symbol 315 MovieClip
"light2"Frame 22Symbol 315 MovieClip
"light4"Frame 22Symbol 315 MovieClip
"light11"Frame 22Symbol 267 MovieClip
"light7"Frame 22Symbol 267 MovieClip
"light12"Frame 22Symbol 304 MovieClip
"light1"Frame 22Symbol 305 MovieClip
"light21"Frame 22Symbol 315 MovieClip
"cam"Frame 22Symbol 268 MovieClip
"hud"Frame 22Symbol 283 MovieClip
"ground"Frame 23Symbol 350 MovieClip
"human_mc42"Frame 23Symbol 258 MovieClip
"human_mc44"Frame 23Symbol 258 MovieClip
"human_mc45"Frame 23Symbol 258 MovieClip
"light3"Frame 23Symbol 267 MovieClip
"light2"Frame 23Symbol 335 MovieClip
"light9"Frame 23Symbol 266 MovieClip
"light12"Frame 23Symbol 335 MovieClip
"light1"Frame 23Symbol 314 MovieClip
"light11"Frame 23Symbol 335 MovieClip
"ground"Frame 24Symbol 296 MovieClip
"human_mc1000"Frame 24Symbol 258 MovieClip
"human_mc1001"Frame 24Symbol 258 MovieClip
"human_mc1002"Frame 24Symbol 258 MovieClip
"human_mc1003"Frame 24Symbol 258 MovieClip
"human_mc1004"Frame 24Symbol 258 MovieClip
"cam"Frame 25Symbol 101 MovieClip
"csTest"Frame 25Symbol 103 MovieClip
"myButton"Symbol 43 MovieClip Frame 1Symbol 37 Button
"lens"Symbol 101 MovieClip Frame 1Symbol 100 MovieClip
"un"Symbol 152 MovieClip [un] Frame 1Symbol 139 MovieClip
"deux"Symbol 152 MovieClip [un] Frame 1Symbol 151 MovieClip
"hitMarker"Symbol 243 MovieClip Frame 1Symbol 232 MovieClip
"kill"Symbol 243 MovieClip Frame 7Symbol 179 MovieClip
"burn"Symbol 243 MovieClip Frame 10Symbol 241 MovieClip
"hitMarker"Symbol 243 MovieClip Frame 10Symbol 232 MovieClip
"zone"Symbol 258 MovieClip Frame 1Symbol 249 MovieClip
"hit"Symbol 258 MovieClip Frame 1Symbol 250 MovieClip
"beam"Symbol 258 MovieClip Frame 3Symbol 255 MovieClip
"lens"Symbol 268 MovieClip Frame 1Symbol 100 MovieClip
"whateverTheHealthBarIsCalled"Symbol 283 MovieClip Frame 1Symbol 270 MovieClip
"whateverTheInvisibilityBarIsCalled"Symbol 283 MovieClip Frame 1Symbol 272 MovieClip
"ac"Symbol 283 MovieClip Frame 1Symbol 282 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 2 as "sniper"
ExportAssets (56)Timeline Frame 1Symbol 4 as "pistol"
ExportAssets (56)Timeline Frame 1Symbol 6 as "assault"
ExportAssets (56)Timeline Frame 1Symbol 9 as "tankshell"
ExportAssets (56)Timeline Frame 1Symbol 11 as "shotgun"
ExportAssets (56)Timeline Frame 1Symbol 13 as "blood"
ExportAssets (56)Timeline Frame 1Symbol 16 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 18 as "bubble"
ExportAssets (56)Timeline Frame 1Symbol 29 as "splash"
ExportAssets (56)Timeline Frame 5Symbol 122 as "sound_contr"
ExportAssets (56)Timeline Frame 5Symbol 152 as "un"
ExportAssets (56)Timeline Frame 6Symbol 284 as "gasp"
ExportAssets (56)Timeline Frame 6Symbol 285 as "dieSound"

Labels

"title"Frame 4
"start"Symbol 43 MovieClip Frame 1
"idle"Symbol 243 MovieClip Frame 1
"run"Symbol 243 MovieClip Frame 2
"jump"Symbol 243 MovieClip Frame 3
"double"Symbol 243 MovieClip Frame 4
"sneak"Symbol 243 MovieClip Frame 5
"crouch"Symbol 243 MovieClip Frame 6
"feeding"Symbol 243 MovieClip Frame 7
"damage"Symbol 243 MovieClip Frame 8
"dead"Symbol 243 MovieClip Frame 9
"crouchWalk"Symbol 243 MovieClip Frame 10
"throughDoor"Symbol 243 MovieClip Frame 11
"idle"Symbol 258 MovieClip Frame 1
"wtf"Symbol 258 MovieClip Frame 2
"light"Symbol 258 MovieClip Frame 3
"walk"Symbol 258 MovieClip Frame 4
"dead"Symbol 258 MovieClip Frame 5
"up"Symbol 277 MovieClip Frame 1
"over"Symbol 277 MovieClip Frame 2
"up"Symbol 281 MovieClip Frame 1
"over"Symbol 281 MovieClip Frame 2
"blah"Symbol 282 MovieClip Frame 1
"areaComplete"Symbol 282 MovieClip Frame 2
"areaHud"Symbol 283 MovieClip Frame 1




http://swfchan.com/26/126685/info.shtml
Created: 25/2 -2019 19:54:25 Last modified: 25/2 -2019 19:54:25 Server time: 03/05 -2024 12:42:28