GetMapAnimSize
Frames = GetMapAnimSize(MapIndex, AnimIndex)
 
Parameters:

    MapIndex = The Index of the Map that you wish to query an anim within
    AnimIndex = The index of the block animation to query
Returns:

    Frames = The number of frames in this block animation
 

      The GetMapAnimSize function returns the current number of frames within a block animation.



FACTS:


      * none




Mini Tutorial:


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


  
; Get a free Map index
  MyMap=GetFreeMap()
  
; Create a map with provision for 5 levels
  CreateMap MyMap,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 | ResizeMapAnim :
 


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