home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / croc.swf / scripts / DefineSprite_119 / frame_1 / DoAction_2.as next >
Encoding:
Text File  |  2003-11-08  |  405 b   |  21 lines

  1. function checkCrocAction()
  2. {
  3.    if(100 >= actionSpeed)
  4.    {
  5.       gotoAndStop(35);
  6.    }
  7.    else if(100 < actionSpeed and actionSpeed < 200)
  8.    {
  9.       gotoAndStop(196);
  10.    }
  11.    else if(200 < actionSpeed and actionSpeed < 300)
  12.    {
  13.       gotoAndStop(229);
  14.    }
  15.    else if(actionSpeed < 300)
  16.    {
  17.       gotoAndStop(35);
  18.       actionSpeed = _parent._parent.database.crocSpeed / 3;
  19.    }
  20. }
  21.