home *** CD-ROM | disk | FTP | other *** search
/ 200 Game / 200GAME2.iso / FLASHGAME / COCKROACH.EXE / scripts / DefineSprite_55 / frame_1 / DoAction.as
Encoding:
Text File  |  2000-06-10  |  265 b   |  16 lines

  1. Pos = getProperty(this, _Y);
  2. if(Pos < "120")
  3. {
  4.    setProperty(this, _visible, "0");
  5.    set("/:Score",eval("/:Score") - "1");
  6.    if(eval("/:Score") < "0")
  7.    {
  8.       set("/:Score","0");
  9.    }
  10.    stop();
  11. }
  12. else
  13. {
  14.    setProperty(this, _Y, Pos - "10");
  15. }
  16.