home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / dragonforce.swf / scripts / DefineSprite_472 / frame_117 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  822 b   |  30 lines

  1. if(_root.levelnumber == 1)
  2. {
  3.    stop();
  4.    _root.havelaser = true;
  5.    _root.ship.powerup.gotoAndPlay("laser");
  6.    _root.display.lasertext.gotoAndPlay("laser");
  7.    _root.havelaser = true;
  8.    _root.ship.shiptype.gotoAndStop("yeslaser");
  9.    _root.displaytextplaying = true;
  10. }
  11. else if(_root.levelnumber == 2)
  12. {
  13.    stop();
  14.    if(_root.difficulty == "easy")
  15.    {
  16.       _root.protectorlevel = 2;
  17.       _root.ship.protector.gotoAndStop("protector");
  18.    }
  19.    else if(_root.difficulty == "expert")
  20.    {
  21.       _root.protectorlevel = 1;
  22.       _root.ship.protector.gotoAndStop("protector");
  23.    }
  24.    _root.havelaser = true;
  25.    _root.ship.shiptype.gotoAndStop("yeslaser");
  26.    _root.display.lasertext.gotoAndPlay("protector");
  27.    _root.ship.powerup.gotoAndPlay("laser");
  28.    _root.displaytextplaying = true;
  29. }
  30.