DeleteMap
DeleteMap MapIndex
 
Parameters:

    MapIndex = The Index of the Map that you wish to delete.
Returns: NONE
 

      DeleteMap will delete a map and all of it's data including block graphics, Animations, and levels from memory.



FACTS:


      * When a map is deleted, it's associated tile graphics, tile animations and levels, will be deleted from memory also.




Mini Tutorial:


      This example will create a map with provision for 10 levels. Each level can be any size you like.

  
  
; Create map 1, with room for 10 levels.
  CreateMap 1,10
  
; Display the Info about this map.
  
  Print "Map Status:"+Str$(GetMapStatus(1))
  Print "Number Of Levels:"+Str$(GetMapLevels(1))
  
; Delete the Map...
  DeleteMap 1
  
; Display the status of the deleted map
  Print "Map Status:"+Str$(GetMapStatus(1))
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  
  



This example would output.

  
  Map Status:1
  Number Of Levels:10
  Map Status:0
  
  

 
Related Info: CreateLevel | CreateMap | DeleteAllMaps | DeleteLevel | NewLevel | NewMap :
 


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