IsSprite()

语法

Result = IsSprite(#Sprite)
概要
Tests if the given #Sprite number is a valid and correctly initialized, sprite.

参数

#Sprite The sprite to use.

返回值

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.

参阅

CreateSprite(), LoadSprite()

已支持操作系统

所有

<- InitSprite() - Sprite Index - LoadSprite() ->