|
CreateMapGfx | |
CreateMapGfx MapIndex, TileWidth, TileHeight, NumbOfTiles, TransparentColour, [Format=1] | |
Parameters: MapIndex = The Index Identifier of the Map you wish to assign these tiles gfx to. TileWidth = The Width in pixels of the tiles TileHeight = The Height in pixels of the tiles NumbOfTiles = The number of tiles to create TransparentColour = The transparent colour (in RGB fromat) to use for these tiles. [Format=1] = The image format of graphical blocks (1=Video, 2= FX, 4 = AFX) |
|
Returns: NONE | |
CreateMapGfx creates and assigns a set of tile graphics to a map. These tiles will be blank upon creation. The tiles will be of uniform size (width & height) and quantity you specify. [ The CreateMapGfx command also requires the tiles transparent colour in [link]RGB[/link] format. This colour is used as the transparency mask when drawing transparent levels. This effect is commonly used when two (or more) levels need to be drawn over each other to create multi layer parallax effects. Setting this value incorrectly, will no doubt result in your level not rendering with the correct transparency. Once you have created a set of tiles for your map, you can then individually grab Tile graphics from the screen or images as you see fit, using the GetMapBlk command. Block Formats:
FACTS: * There's no limited upon the size(width/height) of the Tiles. You are only limited by the amount of Video Memory in your computer. * Also see LoadMapGFX & MakeMapGFX Mini Tutorial: This example Creates a Map, then manually builds a tiled image, just so it can import it and finally build and display it
|
Related Info: | DrawMapBlk | GetMapBlk | LoadMapGfx | MakeMapGfx : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |