Hi. I swear I've gotten something like this to work in the past but I have no idea how I did it. I might not even be remembering correctly, no clue.
Anyway, I have a simple sprite with an instance variable on it called index, it set to 0 by default. All I want to do is create say, 3 instances of that object in-game but with the index variable for each of them to sequentially increase by 1.
So the first instance it's index would be 1
The second instance it's index would be 2
The third instance it's index would be 3 and so on and so on.
I feel like this should be very simple to do but I'm not quite sure how to make it happen.
Can anyone offer any insight on it?
Thanks