DeleteLevel
DeleteLevel MapIndex, LevelIndex
 
Parameters:

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

     Deletelevel will remove a level from within a map.



FACTS:


      * DeleteLevel doesn't alter the block graphics or block animations of the map.



Mini Tutorial:


      This example shows how to first create a Map, create a Level and display the information about this map, 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 the Level
  DeleteLevel MyMap,1
  
; 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 | Maps :
 


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