Hi, a question of an enthusiast newbie. I hope this first post is in the right place. I hope also somebody has an solution for me. I can't find it myself yet.
This is the situation:
I have many different sprites with different names and different values stored in their instance variables (numbers).
I know how to retrieve the value of every sprite separately by name, but I thought it would be easier, nicer and faster to make a function that I can use for all the different sprites with their different names and values to let them do the same Action.
But how can I retrieve the value of that clicked or touched sprite, getting it's value only because it's clicked or touched, to use in a function?
Or maybe that's not possible? Or is it simple and I can't find it?
All help will be very much appreciated, thanks a lot in advance.
Philip