home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / DesktopInvaders.swf / scripts / frame_19 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.8 KB  |  49 lines

  1. if(she == "200")
  2. {
  3.    duplicateMovieClip("/shieldcov","shieldcov" add shieldlay,shieldlay + 16384);
  4.    setProperty("shieldcov" add shieldlay, _X, x * "4" + "4");
  5.    setProperty("shieldcov" add shieldlay, _Y, y * "4" + "4");
  6.    set(x add "dm" add y,shieldlay);
  7.    setProperty("shieldcov" add shieldlay, _alpha, shieldred);
  8.    set(x add "alp" add y,shieldred);
  9.    set(x add "am" add y,"0");
  10.    set("wepy" add count,"0");
  11.    removeMovieClip("wep" add count);
  12.    duplicateMovieClip("/wepexp","wep" add count,"153" + count + 16384);
  13.    setProperty("wep" add count, _X, x * "4" + wepoffx);
  14.    setProperty("wep" add count, _Y, y * "4" + wepoffy);
  15.    setProperty("wep" add count, _alpha, "100");
  16.    alienfire -= "1";
  17.    shieldlay += "1";
  18. }
  19. else
  20. {
  21.    alp = eval(x add "alp" add y) + shieldred;
  22.    if(alp < "75")
  23.    {
  24.       setProperty("shieldcov" add she, _alpha, alp);
  25.       set(x add "alp" add y,alp);
  26.       set(x add "am" add y,"0");
  27.       set("wepy" add count,"0");
  28.       removeMovieClip("wep" add count);
  29.       duplicateMovieClip("/wepexp","wep" add count,"153" + count + 16384);
  30.       setProperty("wep" add count, _X, x * "4" + wepoffx);
  31.       setProperty("wep" add count, _Y, y * "4" + wepoffy);
  32.       setProperty("wep" add count, _alpha, "100");
  33.       alienfire -= "1";
  34.    }
  35.    else
  36.    {
  37.       setProperty("shieldcov" add she, _alpha, "100");
  38.       set(x add "dm" add y,"0");
  39.       set(x add "am" add y,"0");
  40.       set("wepy" add count,"0");
  41.       removeMovieClip("wep" add count);
  42.       duplicateMovieClip("/wepexp","wep" add count,"153" + count + 16384);
  43.       setProperty("wep" add count, _X, x * "4" + wepoffx);
  44.       setProperty("wep" add count, _Y, y * "4" + wepoffy);
  45.       setProperty("wep" add count, _alpha, "100");
  46.       alienfire -= "1";
  47.    }
  48. }
  49.