Okay, here we go again.
I want to create a Tower Defence game.
In this game you´ll need Towers and u will need to upgrade them to another level. When I upgrade my placed Tower, all the Towers (who use the same sprite) will be updated to. I just want to update 1 of the placed Towers and not all Towers.
another Example:
When I creat another Sprite - every Tower is using. Tower number1, and another placed Tower number2, the third placed Tower number3 - but every placed Tower is using the same sprite. I just want to upgrade Tower number1. The rest of all the 3 placed Towers (number2 and number3) shouldnt upgrade to.
I tried with boolean - when touch tower number1 = set upgrade1 and some conditions to "upgrade1".
And I tried with instance variable - when touch tower number1 = set instance variable "upgrade" from 0 to 1. If instance variable "upgrade" is set to 1 then do all the conditions I want to. The Problem is all Tower´s means Tower number1, number2 and number3 getting upgradet if I touch only on Tower number1 to change the boolean or instance variable. I hope its understandable now. Sorry for bad english.