GetMapStatus
State = GetMapStatus(MapIndex)
 
Parameters:

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

    State = The Map state flag (1= Map exists, 0 = Map doesn't exist)
 

      The GetMapStatus function will returns the current state of a Map map. If the function returns a True(1) the Map exists, if not, it'll return a False (0) value.



FACTS:


      * none



Mini Tutorial:


      This simple example displays the status of map index before and after it was created.


  
; Get a free Map index
  MyMap=GetFreeMap()
  
; Display the state of this map index
  Print GetMapStatus(MyMap)
  
  
; Create map with provision for 5 levels
  CreateMap MyMap,5
  
; Display the state of this map index
  Print GetMapStatus(MyMap)
  
; Display the screen and wait for a key to be pressed
  Sync
  WaitKey
  



This example would output.

  
  0
  1
  

 
Related Info: CreateLevel | DeleteLevel | GetLevelStatus | GetMapLevels | NewMap :
 


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