home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineSprite_652 / frame_21 / DoAction.as
Encoding:
Text File  |  2005-09-27  |  246 b   |  12 lines

  1. tempo = random(_root.enemyOut) + 1;
  2. choose = random(28) + 1;
  3. switch(choose)
  4. {
  5.    case 1:
  6.       _root["enemy" + tempo].life -= random(4) + 2;
  7.       break;
  8.    case 4:
  9.       _root["enemy" + tempo].life -= random(3) + 8;
  10. }
  11. gotoAndPlay(1);
  12.