|
|
| GetMapBlk | ||
| GetMapBlk MapIndex, BlockIndex, Xpos, Ypos | ||
| Parameters: MapIndex = The Index Identifier of the Map you wish to grab blocks to. BlockIndex = The index of the Block you wish to grab. Xpos = The X coordinate where to grab this block from Ypos = The Y coordinate where to grab this block from |
||
| Returns: NONE | ||
GetMapBlk allows the user to grab an region of the screen or image as an Block. FACTS: * You can't use GetMapBlk until the map has either had space for block created, or some blocks loaded. * GetMapBlk uses the Width/Height sizes of the block as defined with the LoadMapGfx or CreateMapGfx commands. Mini Tutorial: This example creates a map and uses the GetMapBlk to create a simple coloured block set, then displays them using the DrawMapBlk command.
This example would output.
|
| Related Info: | CreateMap | CreateMapGfx | DrawMapBlk | LoadMapGfx | MakeMapGfx : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |