Hey all!
So, here is what I'm doing. In the app I'm making, I have two different sets of objects. One keeps track of the players life. That I've already made, it's pretty straight forward with some sprite objects and setting labels. But there will be 4 other objects on the screen at the same time, 1 in each corner, that you can tap and it will change /the selected Player Objects health/. I can do the selected object part, simply make that a Bool variable for the object. The two things I am having trouble with is:
When I select 1 player object, any previously selected objects should become unselected. How can I see which one's are selected or not?
and:
When I tap one of the objects in the corner to change the selected objects health, it should "find" which one is the selected one and then change it's health. How can I have it find which one it is? I'm not sure how I can pass around the objects so everything knows what's going on... help would be appreciated. If anything is unclear, I'll be glad to clarify. Thank you!