GetMapLevels
State = GetMapLevels(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 GetMapLevels function will return the max numbers of level a map included provision for. You can alter this at any time with the MapLevelQuantity command



FACTS:


      * none



Mini Tutorial:


      This example shows how to first create a Map & Level, then displays the size information about this level.



  
; Create a map with provision for 5 levels
  MyMap=NewMap(5)
  
; Display the number of levels this map has provision for
  Print GetMapLevels(MyMap)
  
; Display the screen and wait for a key to be pressed
  Sync
  WaitKey
  



This example would output.

  
  5
  

 
Related Info: CreateLevel | DeleteLevel | GetLevelStatus :
 


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