SCROLLMAP |
Top Previous Next |
Syntax SCROLLMAP(map as POINTER,direction as INT,amount as INT) Description Scrolls the map in the direction specified. Parameters map - Map pointer returned by the NEWMAP function. direction - A directional constant. amount - How far, in pixels, to scroll the map. Return value None Remarks This command updates the internal position of the map by scrolling in the direction specified by the distance specified. The direction argument can be one of: @SCROLLUP @SCROLLDOWN @SCROLLLEFT @SROLLRIGHT If the tile data was created with scroll wrapping set to TRUE then the map will continuously scroll in the direction specified with each call to SCROLLMAP. The map must still be rendered with DRAWMAP to show the changes made while scrolling. The amount argument is a positive integer. See Also: MOVEMAP Example usage DRAWMAP map |