Sorry for the simple question but I am having a bit of a problem selecting a specific object.
I have created a series of (Sprite)buttons that will be red or green after an event. I can them to set the frame in order if I use sprite.UID and increase the value of UID incrementally each time. My problem is I have a function to RETRY that starts everything again and adds 20 to the SPRITE.UID when starting again.
It works fine until I restart. I could add 20 every time I restart but I'd need to save the number of RETRY's.
I am sure there is a better way to do this.
Thanks in advance for any help.