GetMapAnimStatus
State = GetMapAnimStatus(MapIndex, Animindex)
 
Parameters:

    MapIndex = The Index of the Map that you wish to query and anim from
    Animindex = The Index of the animation to query
Returns:

    State = The state of this block animation (1= created, 0 = not created)
 

      The GetMapAnimStatus() check is an animation exists or not.



FACTS:


      * None.




Mini Tutorial:


      This example shows creates a map, then adds provision for some block animations. Next it displays a Block Animations status, before and after it's been created/deleted.


  
; ==============================
; Part 1 - Create Map
; ==============================
  
; Create a map with provision for 5 levels
  MyMap=NewMap(5)
  
  
; ==============================
; Part 2 - Create Tile Animations
; ==============================
  
; Create Room for 5 Block Animations in this map
  MapAnimQuantity MyMap,5
  
; Create Anim 1,with space for 10 frames in the anim
  CreateMapAnim MyMap,1,10
  
; Display the status of this anim
  Print GetMapAnimStatus(Mymap,1)
  
; Create Anim 1,with space for 10 frames in the anim
  DeleteMapAnim MyMap,1
  
; Display the status of this anim
  Print GetMapAnimStatus(Mymap,1)
  
; Display the screen and wait for key press
  Sync
  WaitKey
  



This example would output.

  
  1
  0
  

 
Related Info: CreateMapAnim | DeleteMapAnim :
 


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