removeSprite - sometimes

** I found a duplicate call to removeSprite with (,false) set so it wasn’t removing the sprite, It seems to be working better, hopefully that was the problem.

Hi dyson,

I’m having a problem with removeSprite… most of the time the sprite gets removed, about 5% of the time the sprite will remain after running:

t=event.target

if enemy[t.index] ~= nil then

   mte.removeSprite(enemy[t.index], true)

end

I know the code is executing, just a strange problem that I haven’t tracked down yet. When I shoot the enemy a second time, the sprite gets removed…

I’ve checked t.index, and it is the same from the first call to the second.

Thanks, Greg