home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Graviton.swf / scripts / DefineSprite_80 / frame_1 / DoAction.as
Encoding:
Text File  |  2005-08-05  |  469 b   |  19 lines

  1. _X = _X + eval("/:movx");
  2. _Y = _Y + eval("/:movy");
  3. dx = _X - getProperty("/ufo1/", _X);
  4. dy = _Y - getProperty("/ufo1/", _Y);
  5. if(dx < eval("/:tolerance") and - eval("/:tolerance") < dx and dy < eval("/:tolerance") and - eval("/:tolerance") < dy)
  6. {
  7.    set("/ufo1/:tethered","1");
  8.    set("/:score",eval("/:score") + "200");
  9.    gotoAndPlay(3);
  10.    tellTarget("/line")
  11.    {
  12.       gotoAndPlay(2);
  13.    }
  14.    tellTarget("/hyperspace")
  15.    {
  16.       play();
  17.    }
  18. }
  19.