home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / DesktopInvaders.swf / scripts / frame_11 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  747 b   |  38 lines

  1. y -= "2";
  2. if(y < "0")
  3. {
  4.    call("clearbullet");
  5. }
  6. else
  7. {
  8.    d = eval(x add "adm" add (y + "2"));
  9.    e = eval(x add "am" add (y + "2"));
  10.    f = eval(x add "am" add (y + "4"));
  11.    she = eval(x add "dm" add y);
  12.    if("0" < d and d < "49")
  13.    {
  14.       call("killalien");
  15.    }
  16.    else if("53" < e and e < "64")
  17.    {
  18.       call("killweapon");
  19.    }
  20.    else if("53" < f and f < "64")
  21.    {
  22.       call("killweapon");
  23.    }
  24.    else if("0" < she)
  25.    {
  26.       call("killbase");
  27.    }
  28.    else if(y == "3" and motherflag == "1" and x >= mothershipx and mothershipx + "4" >= x)
  29.    {
  30.       call("shotmother");
  31.    }
  32.    else
  33.    {
  34.       setProperty("/bullet" add count, _Y, y * "4" + bulloffy);
  35.       set("bully" add count,y);
  36.    }
  37. }
  38.