GetSpriteStatus
Flag = GetSpriteStatus(SpriteIndex)
 
Parameters:

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

    Flag = The status of this sprite (0 = Doesn't exist) (1= created)
 

      The GetSpriteStatus function returns if sprite index number is currectly in use or not.



FACTS:


      * The status will be returned as either a True (Sprite Created & In use) or False (Doesn't exist).

      * See CreateSprite, DeleteSprite




Mini Tutorial:


      This example displays the status of sprite index #1, both before and after the sprite is created.


  
; Check and display the current status of a sprite number #1,
  Print GetSpriteStatus(1)
  
; Create Sprite #1
  CreateSprite 1
  
; Display the status of the sprite after it's been created.
  Print GetSpriteStatus(1)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  0
  1
  

 
Related Info: CreateSprite | DeleteSprite | GetFirstSprite | GetFreeSprite | NewSprite :
 


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