home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / MosquitoBlaster.swf / scripts / DefineSprite_54 / frame_1 / DoAction.as
Encoding:
Text File  |  2005-08-05  |  454 b   |  18 lines

  1. xdif = int(getProperty("/p", _X) - getProperty("/man", _X));
  2. ydif = int(getProperty("/p", _Y) - getProperty("/man", _Y));
  3. if(xdif < "0")
  4. {
  5.    xdif *= - "1";
  6. }
  7. if(ydif < "0")
  8. {
  9.    ydif *= - "1";
  10. }
  11. x2 = xdif * xdif;
  12. y2 = ydif * ydif;
  13. c2 = x2 + y2;
  14. set("/:fscale",int(getProperty("/human/head/f_1", _xscale)));
  15. k = distance / "18";
  16. setProperty("/man", _xscale, distance / "2" + "100");
  17. setProperty("/man", _yscale, distance / "2" + "100");
  18.