DeleteMapAnim
DeleteMapAnim 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
 

     DeleteMapAnim deletes a block anim sequence from memory.



FACTS:


      * If this animation was used within a level, then that Animation will no longer render.




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 | GetLevelStatus | GetMapAnimStatus :
 


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