home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / MosquitoBlaster.swf / scripts / DefineSprite_40 / frame_2 / DoAction.as
Encoding:
Text File  |  2005-08-05  |  314 b   |  15 lines

  1. thisX = getProperty("/p", _X);
  2. thisY = getProperty("/p", _Y);
  3. spX = _X;
  4. spY = _Y;
  5. difX = thisX - spX;
  6. difY = thisY - spY;
  7. boost = "12";
  8. xStp = difX / boost;
  9. yStp = difY / boost;
  10. _X = spX + xStp;
  11. _Y = spY + yStp;
  12. _yscale = _yscale * "0.95";
  13. _xscale = random("100") + "50";
  14. _xscale = _xscale * "0.95";
  15.