home *** CD-ROM | disk | FTP | other *** search
- property okolik, kam
-
- on MoveSpr me, nakolik, kam
- set myLocV to the locV of sprite the spriteNum of me
- set myLocH to the locH of sprite the spriteNum of me
- case kam of
- "L":
- if myLocV > nakolik then
- set the locV of sprite the spriteNum of me to myLocV - 1
- end if
- "P":
- if myLocV < nakolik then
- set the locV of sprite the spriteNum of me to myLocV + 1
- end if
- "N":
- "D":
- end case
- end
-