home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / croc.swf / scripts / DefineSprite_126 / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2003-11-08  |  411 b   |  15 lines

  1. function checkSupplies()
  2. {
  3.    if(this.hitTest(_parent.hero.hitArea))
  4.    {
  5.       _parent._parent.functions.updateScore(10);
  6.       gotoAndStop(10);
  7.       s = new Sound(this);
  8.       s.attachSound("pickUpSupply");
  9.       s.start();
  10.       _parent.hero.holdingSupplies = 1;
  11.       _parent._parent.database.supplies += 1;
  12.       _parent._parent.heroInfo.supplies = _parent._parent.database.supplies;
  13.    }
  14. }
  15.