home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / ZanyAttack.swf / scripts / DefineSprite_155 / frame_95 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  243 b   |  8 lines

  1. elXPos = getProperty("/enemyLaser", _X);
  2. elYPos = getProperty("/enemyLaser", _Y);
  3. pXPos = getProperty("/player", _X);
  4. if(- "15" < elXPos - pXPos and elXPos - pXPos < "15" and "360" < elYPos and elYPos < "400")
  5. {
  6.    call("HitPlayer");
  7. }
  8.