sounds like a bug, surly - if the sprite is deleted and re-created... then surly there is a new sprite and thus it exists..
personally i do think there should be a way to find hidden objects/sprites (sprite hidden()), but there isn't unfortunately..
one simple way around this is to use an array, e.g.:
dim sprite_hidden(5000) as boolean
function hide_sprite(n)
hide sprite n
sprite_hidden(n) = 1
endfunction
function show_sprite(n)
hide sprite n
sprite_hidden(n) = 0
endfunction
obviously, a similar technique could be applied to deleting sprites if you wish
www.AoFP.co.uk