home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 July / Chip_1998-07_cd.bin / zkuste / mazda / mazIn311.dxr / Internal_26_NO Visible + Mask.ls < prev    next >
Encoding:
Text File  |  1998-05-06  |  785 b   |  29 lines

  1. property nCurMemb, nOtMemb
  2.  
  3. on beginSprite me
  4.   set nCurMemb to the memberNum of sprite the spriteNum of me
  5.   set nOtMemb to nCurMemb + 2
  6.   set the memberNum of sprite the spriteNum of me to nOtMemb
  7.   set the visible of sprite the spriteNum of me to 0
  8. end
  9.  
  10. on endSprite me
  11.   set the memberNum of sprite the spriteNum of me to nCurMemb
  12.   set the visible of sprite the spriteNum of me to 1
  13. end
  14.  
  15. on SetVis me, lVis
  16.   if lVis then
  17.     set the memberNum of sprite the spriteNum of me to nCurMemb
  18.     set the ink of sprite the spriteNum of me to 8
  19.   else
  20.     set the memberNum of sprite the spriteNum of me to nOtMemb
  21.     set the ink of sprite the spriteNum of me to 8
  22.     delay(2 * 60)
  23.   end if
  24.   set the visible of sprite the spriteNum of me to lVis
  25. end
  26.  
  27. on getPropertyDescriptionList
  28. end
  29.