home *** CD-ROM | disk | FTP | other *** search
- on setScroll theSpriteNum, offsetPtr, totLines, fldNo
- global loValPos, hiValPos, scrRange, displayLines
- set x to loValPos + (offsetPtr * scrRange / integer(totLines - displayLines - 0.5))
- if x > hiValPos then
- set x to hiValPos
- end if
- set the visible of sprite theSpriteNum to 0
- set the locV of sprite theSpriteNum to x
- set the visible of sprite theSpriteNum to 1
- end
-