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

  1. if(this.hitTest(perso.persoBody) and done == undefined)
  2. {
  3.    c.setDamage(_parent._name,1);
  4.    _root.persoLife = _root.persoLife + 1;
  5.    _parent._parent._parent._parent.life.attachMovie("life","life_" + _root.persoLife,_root.persoLife);
  6.    _parent._parent._parent._parent.life["life_" + _root.persoLife]._x = _root.persoLife * 42;
  7.    _parent._parent._parent._parent.life["life_" + _root.persoLife].gotoAndPlay("open");
  8.    done = true;
  9.    _parent.life.gotoAndPlay("close2");
  10. }
  11.