GetFreeMapAnim
AnimIndex = GetFreeMapAnim(MapIndex)
 
Parameters:

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

    AnimIndex = The index of a free animation fready for use
 

      The GetFreeMapAnim function returns a free animation index ready for use.



FACTS:


      * None




Mini Tutorial:


      This cut down example creates a map, and then adds provision to this map for block animations, then displays this information. After that it creates a block animtion and displays this animations size.


  
; 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 | GetMapAnimSize | GetMapAnimStatus :
 


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