Hi everybody, I'm Juan, so the thing is: Imagine a warcraft type game. So there are these minerals you can farm, I currently have 1 sprite called mineral, and it has a global variable (tried using instance variables, didn't work) wich is the mineral's life. Once you send a worker to the mineral, he starts farming it. Now, there has to be several of these minerals across the map, and idk how to make each of them (wich is the same sprite spread out across the map, the same mineral) has its own life.
I would be incredibly grateful if someone could help me. :D