home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / asitchintime2.swf / scripts / DefineSprite_865 / frame_2 / DoAction.as
Encoding:
Text File  |  2005-11-09  |  199 b   |  10 lines

  1. if(perso.persoBody.hitTest(this) and !c.persoIsInPain)
  2. {
  3.    c.persoXSpeed = -8;
  4.    c.persoYSpeed = -5;
  5.    c.persoIsInPain = true;
  6.    c.persoAnim("hit");
  7.    c.damage(4);
  8.    gotoAndStop(1);
  9. }
  10.