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

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

Stage-1.swf

This is the info page for
Flash #198364

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


ActionScript [AS1/AS2]
Combined Code
movieClip 2 { } movieClip 3 { } movieClip 4 { frame 1 { stop(); } } movieClip 6 { } movieClip 8 { } movieClip 12 { } movieClip 13 { } movieClip 16 { frame 35 { stop(); --_root.zombiesAlive; } } movieClip 17 { frame 1 { stop(); } } movieClip 18 zombie { frame 1 { zSpeed = random(4) + 1; health = random(_root.level) + 1; } instance body of movieClip 17 { onClipEvent (enterFrame) { hit = 0.1; if (_root.char.hitTest(this)) { if (_root.lives > 0) { _root.lives -= hit; _root.hud.hp._xscale -= hit; } } } } } movieClip 20 bullet { } frame 1 { function createZombie() { if (alive) { if (currentZombies < maxZombies) { zombies[zombies.length] = _root.attachMovie('zombie', 'zombie' + [zombies.length], _root.getNextHighestDepth()); zombies[zombies.length - 1]._x = 1800; zombies[zombies.length - 1]._y = 330; ++currentZombies; ++zombiesAlive; } else { if (zombiesAlive == 0) { resetZombies(); } } } } function zombieAct() { h = 0; while (h < zombies.length) { if (zombies[h]._alpha < 100) { zombies[h]._alpha += 10; } if (zombies[h].health > 0) { if (zombies[h]._x > char._x) { zombies[h]._xscale = 100; zombies[h]._x -= zombies[h].zSpeed; } else { if (zombies[h]._x < char._x) { zombies[h]._xscale = -100; zombies[h]._x += zombies[h].zSpeed; } } } if (zombies[h].health < 1) { zombies[h].body.gotoAndStop(2); } ++h; } } function hitTest() { h = 0; while (h < zombies.length) { i = 0; while (i < bullets.length) { if (bullets[i].hitTest(zombies[h])) { if (zombies[h].health > 0) { zombies[h]._alpha = 50; --zombies[h].health; removeMovieClip(bullets[i]); } } ++i; } ++h; } } speed = 0; lives = 100; scores = 0; ammo = 50; gift = 0; clips = 20; rockets = 10; idle = true; alive = true; xspeed = 0; yspeed = 0; maxXspeed = 3; maxYspeed = 15; xAccSpeed = 0.1; yAccSpeed = 0.4; jumpSpeed = -8; setSpeed = function () { if (falling) { if (yspeed < maxYspeed) { yspeed += yAccSpeed; } else { yspeed = maxYspeed; } } else { yspeed = 0; jumping = false; } col._y = char._y; col._x = char._x; col._height = yspeed + 1; }; cameraUpdate = function () { _x = _x + (-camDesX + Stage.width / 4 - _x + Stage.width / 4); _y = _y + (-camDesY + Stage.height / 4 - _y + Stage.height / 4); }; var bullets = new Array(); var bulletsX = new Array(); createBullet = function () { bullets[bullets.length] = this.attachMovie('bullet', 'bullet' + [bullets.length], _root.getNextHighestDepth()); bullets[bullets.length - 1]._x = char._x; bullets[bullets.length - 1]._y = char._y - 45 + random(3); bulletsX[bullets.length - 1] = -char._xscale / 8; --ammo; if (ammo > 0) { _root.hud.ammoBars._xscale -= 1; } }; moveBullets = function () { i = 0; while (i < bullets.length) { bullets[i]._x -= bulletsX[i]; if (bullets[i]._x < char._x - 500) { bullets[i].unloadMovie(); } if (bullets[i]._x > char._x + 500) { bullets[i].unloadMovie(); } ++i; } }; char.onEnterFrame = function () { zombieAct(); hitTest(); touchingGround = false; setSpeed(); moveBullets(); cameraUpdate(); hud._x = camDesX; hud._y = camDesY; camDesX = char._x; camDesY = char._y - 130; char._y += yspeed; this._x += speed; if (ammo < 1 && clips > 0) { ammo += 50; _root.hud.ammoBars._xscale += ammo; clips -= 1; } if (Key.isDown(32) && !attack) { if (pistol && ammo > 0) { this.body.gotoAndStop('pistolShoot'); createBullet(); } if (shotgun && ammo > 0) { this.body.gotoAndStop('shotgunShoot'); createBullet(); } if (machine && ammo > 0) { this.body.gotoAndStop('machineShoot'); createBullet(); } } else { if (!attack) { if (pistol) { this.body.gotoAndStop('pistolIdle'); } if (shotgun) { this.body.gotoAndStop('shotgunIdle'); } if (machine) { this.body.gotoAndStop('machineIdle'); } } } if (Key.isDown(49) && !idle) { attack = false; idle = true; pistol = false; shotgun = false; machine = false; launcher = false; this.body.gotoAndStop('idle'); } if (Key.isDown(50) && !pistol) { attack = false; pistol = true; idle = false; shotgun = false; machine = false; launcher = false; this.body.gotoAndStop('pistolIdle'); } if (Key.isDown(51) && !shotgun) { attack = false; shotgun = true; pistol = false; idle = false; machine = false; launcher = false; this.body.gotoAndStop('shotgunIdle'); } if (Key.isDown(52) && !machine) { attack = false; machine = true; shotgun = false; pistol = false; idle = false; launcher = false; this.body.gotoAndStop('machineIdle'); } if (Key.isDown(87)) { if (yspeed == 0) { yspeed = jumpSpeed; char._y -= 15; falling = true; this.legs.gotoAndStop(3); } } if (Key.isDown(65)) { this._xscale = -100; if (speed > -10) { speed -= 0.5; } } else { if (!Key.isDown(65)) { if (speed < 0) { speed += 0.5; } } } if (Key.isDown(68)) { this._xscale = 100; if (speed < 10) { speed += 0.5; } } else { if (!Key.isDown(68)) { if (speed > 0) { speed -= 0.5; } } } if (speed > 0 || speed < 0) { this.legs.gotoAndStop(2); } if (speed == 0) { this.legs.gotoAndStop(1); } if (lives == 0) { loadMovieNum('GameOver.swf', 0); } if (scores == 10) { loadMovieNum('Stage-1b.swf', 0); } }; setInterval(createZombie, 1000); zombies = new Array(); maxZombies = 2; percentage = 40; currentZombies = 0; zombiesAlive = 0; level = 1; resetZombies = function () { h = 0; while (h < zombies.length) { zombies[h].unloadMovie(); ++h; } var zombies = new Array(); var v1 = new Array(); var v4 = new Array(); var v2 = 0; var v3 = 0; }; } movieClip 24 { } movieClip 26 { } movieClip 27 { } movieClip 29 { } movieClip 30 { } movieClip 31 { } movieClip 32 { frame 1 { _root.attack = true; } frame 18 { _root.attack = false; } } movieClip 34 { } movieClip 36 { } movieClip 37 { frame 1 { _root.attack = true; } frame 15 { _root.attack = false; } } movieClip 39 { } movieClip 40 { frame 1 { _root.attack = true; } frame 6 { _root.attack = false; } } movieClip 42 { } movieClip 43 { frame 1 { _root.attack = true; } frame 30 { _root.attack = false; } } movieClip 46 { } movieClip 47 { frame 1 { stop(); } } movieClip 48 { } movieClip 52 { } instance of movieClip 52 { onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _root.char._x > this._x) { _root.char._x += 10; } } } instance of movieClip 52 { onClipEvent (enterFrame) { if (_root.char.hitTest(this) && _root.char._x < this._x) { _root.char._x -= 10; } } } movieClip 55 { } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } movieClip 60 { frame 1 { onEnterFrame = function () { if (_root.yspeed >= 0) { if (this.hitTest(_root.col)) { _root.falling = false; _root.char._y = this._y + 1; _root.touchingGround = true; } if (!_root.touchingGround) { _root.falling = true; } } }; } } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } instance of movieClip 55 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { this.unloadMovie(); ++_root.scores; } } } movieClip 62 { } // unknown tag 88 length 297 movieClip 67 { } movieClip 69 { } movieClip 74 { } movieClip 75 { instance ammoBar of movieClip 74 { onClipEvent (enterFrame) { _root.hud.ammoBar._xscale == _root.ammo; } } } movieClip 78 { instance hp of movieClip 67 { onClipEvent (enterFrame) { _root.hud.hp._xscale == _root.lives; } } instance ammoBars of movieClip 75 { onClipEvent (enterFrame) { _root.hud.ammoBars._xscale == _root.ammo; } } }




http://swfchan.com/40/198364/info.shtml
Created: 12/10 -2018 19:02:07 Last modified: 12/10 -2018 19:02:07 Server time: 29/04 -2024 00:25:57