home *** CD-ROM | disk | FTP | other *** search
- function testiflifelost()
- {
- if(playerHealth < 0)
- {
- playerHealth = 0;
- player.gotoAndPlay("lifelost");
- n = getNextHighestDepth();
- displayHolder.attachMovie("lifelost","ll",n);
- displayHolder.ll._x = 320;
- displayHolder.ll._y = 150;
- landScape.thrustClip.thrustRightClip._visible = false;
- landScape.thrustClip.thrustLeftClip._visible = false;
- landScape.thrustClip.thrustUpClip._visible = false;
- landScape.thrustClip.thrustDownClip._visible = false;
- attachMovie("playerExplosion","playerExplosion",7);
- playerExplosion._x = 320;
- playerExplosion._y = 230;
- playerExplosionSnd.start();
- lives--;
- if(lives < 0)
- {
- trace("game over");
- state = "game over";
- }
- else
- {
- state = "paused";
- }
- }
- this.lifeMeter_clip.life_bar_clip._xscale = playerHealth;
- }
-