|
LevelTransparentTile | ||
LevelTransparentTile MapIndex, LevelIndex, TransparentTile | ||
Parameters: MapIndex = The Index of the Map LevelIndex = The index of the level you wish to set the transparent tile in TransparentTile = The Index of a totally transparent block to ignore. |
||
Returns: NONE | ||
LevelTransparentTile sets a levels primary transparent tile. This transparent tile parameter is the index of a block that is known to be completely clear. Since we know this block is clear, then it doesn't make sense for it to be drawn, Since it's a waste of valuable processing time. Thus we screen the block out entirely, so basically the transparent DrawMap routines will ignore these blocks completely. Since PlayBASIC V1.64N, the mapping system gives map blocks three different transparent classifications, those being completely solid, partly transparent and completely transparent. The blocks are classified as you manually grab them (ie GetMapBlk) or as they're imported though commands like LoadMapGfx and MakeMapGFx. This allows the draw map routines to not only ignore our primary tile, but any completely transparent tile. FACTS: * Since the V1.64N upgrade of PlayBASIC, the usefulness of LevelTransparentTile has been somewhat diminished, even so, we still recommend setting a transparent block. Mini Tutorial: This example creates a maps level, and then draws the solid and transparent versions of this level at the mouse pointers current position, as if the level was a sprite.
This example would output.
|
Related Info: | GetLevelDrawMode | GetLevelTransparentTile | LevelAnimated | LevelDrawMode | LevelSolid | LevelTransparent : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |