GetMapAnims
Anims = GetMapAnims(MapIndex)
 
Parameters:

    MapIndex = The Index of the Map that you wish to query
Returns:

    Anims = The number of block animations available
 

      The GetMapAnims function returns the current number of block animations that a map has provision for.



FACTS:


      * You can change (expand/contract) the number of animations at any time using the MapAnimQuantity command





Mini Tutorial:


      This example shows the hands on creation of a Map, and the basic creation of a map anim. It then displays the create map anims information for you. Which should give you a feel, for how the block animation commands fit together.


  
; Create a map with provision for 5 levels
  MyMap=NewMap(5)
  
; Create Room for 5 Block Animations with this map
  MapAnimQuantity MyMap,5
  
; Display the number animations this map now has provision for
  Print "Number Of Animations in Map:"+Str$(GetMapAnims(MyMap))
  
; Request a free Anim index from this map
  MyAnim=GetFreeMapAnim(MyMap)
  
; Create Anim with space for 10 frames in the anim
  CreateMapAnim MyMap,MyAnim,10
  
; Display the size of ANim 1
  Print "Anim size:"+Str$(GetMapAnimSize(MyMap,MyAnim))
  
; Display the screen and loop back to the DO
  Sync
  WaitKey
  
  
  



This example would output.

  
  Number Of Animations in Map:5
  Anim size:10
  

 
Related Info: CreateMapAnim | DeleteMapAnim | GetMapAnimCurrentFrameRate | GetMapAnimFrameRate | GetMapAnimStatus | MapAnimCurrentFrameRate | MapAnimFrameRate | MapAnimType :
 


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