home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 July / Chip_1998-07_cd.bin / zkuste / mazda / Hatch311.dxr / Internal_3_PosunMe.ls < prev    next >
Encoding:
Text File  |  1998-05-12  |  443 b   |  19 lines

  1. property okolik, kam
  2.  
  3. on MoveSpr me, nakolik, kam
  4.   set myLocV to the locV of sprite the spriteNum of me
  5.   set myLocH to the locH of sprite the spriteNum of me
  6.   case kam of
  7.     "L":
  8.       if myLocV > nakolik then
  9.         set the locV of sprite the spriteNum of me to myLocV - 1
  10.       end if
  11.     "P":
  12.       if myLocV < nakolik then
  13.         set the locV of sprite the spriteNum of me to myLocV + 1
  14.       end if
  15.     "N":
  16.     "D":
  17.   end case
  18. end
  19.