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

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