GetMapBlockStatus
State = GetMapBlockStatus(MapIndex)
 
Parameters:

    MapIndex = The index pof the map you wish to query
Returns:

    State = The state of this maps blocks (1 = Blocks exist, 0 = no blocks)
 

      The GetMapBlockStatus function returns if a map has a graphic block set or not. If the map does the function will return a TRUE (1) value, if not, it will return a False(0) value



FACTS:


      * None



Mini Tutorial:


      The example creates a MAP and block set, then displays the informatin about the created block set.

  
; Create a map with provision for 5 levels
  MyMap=NewMap(5)
  
; Create some blank blocks for this map
  CreateMapGFX MyMap,30,20,10,RGB(0,0,255)
  
; Display the info about this maps created block set
  Print "Number OF Blocks:"+Str$(GetMapBlocks(mymap))
  Print "Block Status:"     +Str$(GetMapBlockStatus(MyMap))
  Print "Block Width:"     +Str$(GetMapBlockWidth(MyMap))
  Print "Block Height:"     +Str$(GetMapBlockHeight(MyMap))
  Print "Block Mask Colour:"     +Str$(GetMapMaskColour(MyMap))
  
; Display the screen and wait for a key to be pressed
  Sync
  WaitKey
  
  



This example would output.

  
  Number OF Blocks:10
  Block Status:1
  Block Width:30
  Block Height:20
  Block Mask Colour:255
  

 
Related Info: CreateMapGfx | GetMapBlocks | LoadMapGfx | MakeMapGfx :
 


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