PBMapAnim_MASK
 

     PBMapAnim_MASK is map animation constant. It's used when peeking or poking tiles into a map levels. Levels can hold both static and animated tiles. Animated tiles are stored as the animation index with the high bit set.

      Eg. Storing map animation index into a map level.

  
  PokeLevelTile ThisMap,ThisLevel, X, Y,  AnimIndex Or pbmapanim_mask
  



      Eg. Detecting if tile is an animation index

  
  ThisTile=PeekLevelTile(ThisMap,ThisLevel, X, Y)
  
  // Mask the tile with the animation mask constant, if it's none zero
  // it's an animation, other wise it's a normal tile
  If ThisTIle And pbmapanim_mask
     
     Print "This is an animation index, not a tile index"
  Else
     
     Print "It's a normal tile"
     
  EndIf
  



      Other Map Animation Constants:



PBMapAnim_Idle = Animation is Idle
PBMapAnim_Forward = Animate forward
PBMapAnim_BackWard = Animate backward
PBMapAnim_ForwardOnce= Animate forward once (stops after reaching the end of the anim)
PBMapAnim_BackwardOnce = Animate backward once (stops after reaching the end of the anim)
PBMapAnim_PingPongForward = Ping Pong Animation forward
PBMapAnim_PingPongBackward = Ping Pong Animation Backward






 
Related Info: CreateMapAnim | MapAnimType | PBMapAnim_Backward | PBMapAnim_BackwardOnce | PBMapAnim_Forward | PBMapAnim_ForwardOnce | PBMapAnim_Idle | PBMapAnim_PingPongBackward | PBMapAnim_PingPongForward :
 


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