Table of Contents | ||||
|
||||
SetScroll | ||||
Purpose Sets the scroll offset for the map |
||||
Protoype void CTileMngr::SetScroll (int i_flag, int i_scroll = 0) |
||||
Parameters
|
||||
Description This function sets the scroll value for the map. A map is scrolled by moving its viewport with MoveWindow(). The value set here determines how MoveWindow() scrolls the map. If you want the map to scroll the width or height of a tile, then use SCROLL_TILE. If you want the map to scroll 1 pixel at a time, then use SCROLL_PIXEL. If you want the map to move a certain number of pixels, use SCROLL_CUSTOM and pass in a pixel value. |
||||
Use CTileMngr tile_mngr; tile_mngr.SetScroll(SCROLL_TILE); tile_mngr.SetScroll(SCROLL_CUSTOM, 15); |
||||
|
||||
|