@Captain Ouais : didn't see your last post when posting my answer
@Crystal Noir : If this command is Handy, it's a really bad practice to use it.
What I suggested to Captain Ouais, is to create a custom DeleteSprite method working this way :
MyDeleteSprite( SpriteID As Integer )
if getSpriteExists( SpriteID ) = 1
DeleteSprite( SpriteID )
Endif
EndFunction 0
This way you can reset your sprite object ... If for example you have a structure containing player sprite ID :
Type Player_Type
SpriteID As Integer
EndType
PlayerOne As Player_Type
You can reset your sprite using :
PlayerOne.SpriteID = myDeleteSprite( PlayerOne.SpriteID )
With this when you must use your sprite (at any place) just check before that it exists or that it is not equal to 0
Regards,