IsSprite()
Syntax
Result = IsSprite(#Sprite)Description
Tests if the given #Sprite number is a valid and correctly initialized, sprite.
Parameters
#Sprite The sprite to use.
Return value
Nonzero if #Sprite is a valid sprite and zero otherwise.
Remarks
This function is bulletproof and can be used with any value. If the 'Result' is not zero then the object is valid and initialized, otherwise it will equal zero. This is the correct way to ensure a sprite is ready to use.
See Also
CreateSprite(), LoadSprite()
Supported OS
All