home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / croc.swf / scripts / DefineSprite_151 / frame_1 / DoAction_10.as next >
Encoding:
Text File  |  2003-11-08  |  355 b   |  17 lines

  1. function checkGameOver()
  2. {
  3.    if(_parent.database.lives == 1)
  4.    {
  5.       _root.userDatabase.score = _parent.database.score;
  6.       _parent._parent.gotoAndStop("gameOver");
  7.    }
  8.    else
  9.    {
  10.       _parent.database.lives -= 1;
  11.       _parent.heroInfo.lives = _parent.database.lives;
  12.    }
  13.    resetHero();
  14.    resetTimer();
  15.    resetSupplies();
  16. }
  17.