home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / pendekar.swf / scripts / DefineSprite_159 / frame_4 / DoAction.as
Text File  |  2006-05-08  |  352b  |  15 lines

  1. hit._x = 50 + weapon._height / 2;
  2. if(_parent._parent.isObjectConnect(hit,_parent))
  3. {
  4.    if(_root.sfx)
  5.    {
  6.       _parent._parent.playSFX("slash01.wav");
  7.    }
  8.    _parent._parent.sliceObject(hit,_parent._parent.getWeaponPower(_parent.weapon),_parent);
  9.    if(_parent.attack)
  10.    {
  11.       attack = true;
  12.       gotoAndPlay(_totalframes);
  13.    }
  14. }
  15.