DeleteAllLevels
DeleteAllLevels MapIndex
 
Parameters:

    MapIndex = The Index Identifier of the Map you wish to delete this level from.
Returns: NONE
 

     DeleteAlllevels will remove all levels that are attached to a map.



FACTS:


     * none




Mini Tutorial:


      This example shows how to first create a Map, a Level and display the information about this map, an then delete the newly created level.


  
  
; Create a map with provision for 5 levels
  MyMap=NewMap(5)
  
  
  
; Create level 1 of size 100x,200y, and attach
; it To MYMap
  CreateLevel MyMap,1,100,200
  
  
; Display the status info about Level 1 in MyMap
  Print "Map Level Status:"     +Str$(GetLevelStatus(MyMap,1))
  
  
  
; Delete alls Levels in MyMap
  DeleteAllLevels MyMap
  
; Display the status info about Level 1 in MyMap
  Print "Map Level Status:"     +Str$(GetLevelStatus(MyMap,1))
  
; Display the screen and wait for a key to be pressed
  Sync
  WaitKey
  
  



This example would output.

  
  Map Level Status:1
  Map Level Status:0
  

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


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