home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / croc.swf / scripts / DefineSprite_106 / frame_1 / DoAction_4.as < prev    next >
Encoding:
Text File  |  2003-11-08  |  338 b   |  17 lines

  1. function checkHeroInWater()
  2. {
  3.    onLog = 0;
  4.    onCroc = 0;
  5.    onStone = 0;
  6.    if(this.hitTest(_parent.hero.hitArea))
  7.    {
  8.       checkHeroOnLog();
  9.       checkHeroOnCroc();
  10.       checkHeroOnStone();
  11.       if(!(onLog == 1 || onCroc == 1 || onStone == 1))
  12.       {
  13.          _parent._parent.functions.killHero();
  14.       }
  15.    }
  16. }
  17.