home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / ChipCD_1.03.iso / oddech / bechpack / bechpack.exe / scripts / DefineSprite_559 / frame_2 / DoAction_2.as next >
Text File  |  2002-10-29  |  331b  |  16 lines

  1. setProperty("road", _Y, getProperty("road", _Y) + 15);
  2. c = getProperty("road", _Y) + 1103;
  3. if(2803 < c)
  4. {
  5.    stop();
  6.    if(eval("/:cp") == 0 and eval("/:damage") < 100)
  7.    {
  8.       set("/:win","You Win!");
  9.       tellTarget("_root.t")
  10.       {
  11.          stop();
  12.       }
  13.    }
  14. }
  15. set("/:cp",int(Math.abs(c / 28.1 - 100)));
  16.