Hi,
What is the best way to kill a sprite?
In my game I have created a sprite array which stores a variable number of 'food' sprites which the games main character has to collect.
When a collision is detected between the player sprite and one of the food sprites I increase the score. But I'm just wondering what the best method is for 'killing' the sprite?
is it something like:
foodsprite[i] = null?
atm, I just set the x,y co-ords to 0,0 and set visible to false. Although this gives the impression the hero has eaten the food, the food sprite still exists.
Thanks in advance for any help,
Phil

Reply With Quote

