home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / BombPearlHarbor.swf / scripts / DefineSprite_41 / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  329 b   |  15 lines

  1. _X = _X + movement;
  2. japX = getProperty("/fighter", _X);
  3. japY = getProperty("/fighter", _Y);
  4. yankX = _X;
  5. yankY = _Y;
  6. if(yankX - "40" < japX and japX < yankX + "40" and yankY - "10" < japY and japY < yankY + "10")
  7. {
  8.    tellTarget("/fighter")
  9.    {
  10.       gotoAndStop("japboom");
  11.       play();
  12.    }
  13.    gotoAndPlay(4);
  14. }
  15.