GetSpriteDrawMode
DrawMode = GetSpriteDrawMode(SpriteIndex)
 
Parameters:

    SpriteIndex = The number of the sprite you wish to check
Returns:

    DrawMode = The current draw mode of this sprite
 

      GetSpriteDrawMode reads a sprites current draw mode property. DrawMode controls how this sprite is rendered. See SpriteDrawMode for available modes.




FACTS:


      * None.




Mini Tutorial:


     Create a sprite, set it's drawmode, then read and display this setting to the screen.

  
; Create the Sprite
  CreateSprite 1
  
; Set Sprite 1 to drawmode 2 (rotation mode)
  SpriteDrawMode 1,2
  
; Read and display sprite 1's current drawmode
  Print GetSpriteDrawMode(1)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  2
  


 
Related Info: SpriteDrawMode :
 


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