GetSpriteVisible
Flag = GetSpriteVisible(SpriteIndex)
 
Parameters:

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

    Flag = The visible status of this sprite (0 = hidden) (1= visible)
 

      The GetSpriteVisible returns the current visible status of a sprite. If the sprite is visible then the function will return a True (1), but if it's hidden (and not being drawn) the function will return a false (0)



FACTS:


      * Sprites default to a visibility status setting of True (1).

      * See SpriteVisible





Mini Tutorial:


This simple example creates a sprite, then displays the sprites current visibility status.


  
; Create Sprite #1
  CreateSprite 1
  
; Display the Visible status of the sprite
  Print GetSpriteVisible(1)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  1
  

 
Related Info: GetSpriteStatus | SpriteVisible :
 


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