GetLevelDrawMode
DrawMode = GetLevelDrawMode(MapIndex, LevelIndex)
 
Parameters:

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

    DrawMode = The DrawMode that this level should use
 
      The GetLevelDrawMode functions reads the draw mode state of level.


      Draw Mode Bits

      %001 = Level Solid
      %010 = Level Transparent
      %100 = Level Animated






FACTS:

      * None.



Mini Tutorial:


      This example simply creates a map, attaches level to it, set the levels drawmode and demonstrate how to retrieve the levels draw mode using GetLevelDrawMode


  
; Create a map with provision for 5 levels
  MyMap=NewMap(5)
  
; Create level (10x by 10y) within MyMap
  MyLevel=NewLevel(MyMap,10,10)
  
  
; Set LEvel as solid (1) and Animated (4)
  LevelDrawMode MyMap,MyLevel, 1+4
  
  Print GetLevelDrawMode(MyMap,MyLevel)
  
  
; Display the screen and wait for a key press
  Sync
  WaitKey
  
  



This example would output.

  
  5
  

 
Related Info: CreateLevel | CreateMap | DrawMap | LevelDrawMode :
 


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