DeleteAllMapAnims
DeleteAllMapAnims MapIndex, Animindex
 
Parameters:

    MapIndex = The Index of the Map that you wish to delete an anim from
    Animindex = The Index of the animation to delete
Returns: NONE
 

      DeleteAllMapAnims deletes all block anim sequences from a map.



FACTS:


      * If any animation sequence is still being used within a level, then those Animations will not be rendered correctly.




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 this animation
  CreateMapAnim MyMap,1,10
  
; Display the status of this anim
  Print GetMapAnimStatus(Mymap,1)
  
; Delete all the animations in this MAP from memory
  DeleteAllMapAnims MyMap
  
  
; 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 | GetLevelStatus | GetMapAnims | GetMapAnimSize | GetMapAnimStatus | GetMapAnimType :
 


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