SpriteIndex
Previous Top Next

Returns the index of the specified sprite in the sprites collection. Note that the index of a Sprite can change if other Sprites added before that Sprite are deleted.
Syntax: SpriteIndex (Sprite As Sprite) As Int32
SpriteIndex returns -1 if the sprite was not found.

Example:
If gw.SpriteIndex(sprite.Value) = 0 Then Return