home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / DesktopInvaders.swf / scripts / frame_9 / DoAction_4.as < prev    next >
Encoding:
Text File  |  2006-06-13  |  749 b   |  30 lines

  1. countdown -= "1";
  2. if(countdown == "0" and alientots < "40")
  3. {
  4.    motherflag = "1";
  5.    mothershipx = "-3";
  6.    countdown = motherinit + random(mothercount) + "1";
  7.    duplicateMovieClip("/mothership","mothergo","164" + 16384);
  8.    setProperty("mothergo", _alpha, "100");
  9.    setProperty("mothergo", _X, mothershipx * "4" + motheroffx);
  10.    setProperty("mothergo", _Y, "3" * "4" + motheroffy);
  11. }
  12. else if(motherflag == "1")
  13. {
  14.    mothershipx += "1";
  15.    setProperty("mothergo", _X, mothershipx * "4" + motheroffx);
  16.    if("90" < mothershipx)
  17.    {
  18.       motherflag = "0";
  19.       removeMovieClip("mothergo");
  20.    }
  21. }
  22. if("0" < prizeflag)
  23. {
  24.    prizeflag -= "1";
  25.    if(prizeflag == "0")
  26.    {
  27.       removeMovieClip("prizedisplay");
  28.    }
  29. }
  30.