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

  1. function goToNextLevel()
  2. {
  3.    _parent.database.level += 1;
  4.    _parent.heroInfo.level = _parent.database.level;
  5.    resetTimer();
  6.    resetHero();
  7.    resetCrocMouth();
  8.    _parent.database.crocSpeed += 0.5;
  9.    _parent.database.logSpeed += 0.5;
  10.    levelSound = new Sound(this);
  11.    levelSound.attachSound("endOfLevel");
  12.    levelSound.start();
  13. }
  14.