GetLevelTransparentTile
TransparentTile = GetLevelTransparentTile(MapIndex, LevelIndex)
 
Parameters:

    MapIndex = The Index of the Map
    LevelIndex = The index of the level you wish to query
Returns:

    TransparentTile = The Index of a totally transparent block to ignore.
 
     GetLevelTransparentTile returns a levels transparent tile.



FACTS:


      * See LevelTransparentTile



Mini Tutorial:


      This example simply creates a map, attaches a level to it, then set the levels drawmode and transparent tile. Then demonstrates how to retrieve the levels transparent tile using GetLevelTransparentTile


  
; Create a map with provision for 5 levels
  MyMap=NewMap(5)
  
; Create level  with my map
  MyLevel=NewLevel(MyMap,10,10)
  
  
; Set LEvel #1 as solid
  LevelDrawMode MyMap,MyLevel,%010
  
; Set the transparent tile to tile 11
  LevelTransparentTile MyMap,MyLevel,11
  
  Print GetLevelDrawMode(MyMap,MyLevel)
  Print GetLevelTransparentTile(MyMap,MyLevel)
  
; Display the screen and wait for a key press
  Sync
  WaitKey
  
  




This example would output.

  
  2
  11
  

 
Related Info: GetLevelDrawMode | LevelAnimated | LevelDrawMode | LevelSolid | LevelTransparent | LevelTransparentTile :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com