home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / arcade_animal.swf / scripts / DefineSprite_242 / frame_8 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  359 b   |  12 lines

  1. thistX = getProperty("/crab1", _X);
  2. thistY = getProperty("/crab1", _Y);
  3. sptX = getProperty("/light", _X);
  4. sptY = getProperty("/light", _Y);
  5. diftX = thistX - sptX;
  6. diftY = thistY - sptY;
  7. xtStp = diftX / "20";
  8. ytStp = diftY / "20";
  9. setProperty("/light", _X, sptX + xtStp);
  10. setProperty("/light", _Y, sptY + ytStp);
  11. thisYe = getProperty("/light", _Y);
  12.