hii everyone in am working on game in which gems are created after time to time.
cannon have to destroy all the gems by bullet..
example: gems have life of 5 .
when bullet collide with gems life of gems life = life - 1;
i want to know how to show life on gems .
i already tried to create text object with gems(sprite) but when i am trying to set text = life of gems construct set text to all the gems which all in screen .
like we have 5 gems in screen when i hit a bullet to any gems (life of this become 4 if previously 5)
then it set text 4 to all the gems which are on screen (but all gems have there life of 5 ) .
i just want to set text to particular gem which is now hit by not all