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

  1. if(perso.persoBody.hitTest(hitZone) and !c.persoIsDying)
  2. {
  3.    c.damage(_root.persoHealth);
  4.    c.persoXSpeed = 0;
  5.    c.persoYSpeed = -10;
  6.    c.persoIsDying = true;
  7.    c.persoIsInPain = true;
  8.    c.persoAnim("death");
  9.    sleeper.sleeper.gotoAndPlay("play");
  10.    stop();
  11. }
  12.