home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / pendekar.swf / scripts / DefineSprite_102 / frame_1 / DoAction.as < prev   
Text File  |  2006-05-08  |  468b  |  27 lines

  1. this.onEnterFrame = function()
  2. {
  3.    tellTarget(_parent)
  4.    {
  5.       if(right && duck && !(left || jump))
  6.       {
  7.          moveRight();
  8.       }
  9.       else if(left && duck && !(right || jump))
  10.       {
  11.          moveLeft();
  12.       }
  13.       else if(attack && duck)
  14.       {
  15.          attDuck();
  16.       }
  17.       else if(special)
  18.       {
  19.          pickup();
  20.       }
  21.       else if(jump || !duck)
  22.       {
  23.          gotoAndStop(getIdleState());
  24.       }
  25.    }
  26. };
  27.