Quote:
Originally Posted by mikelowe
I want to have a character that I can spawn multiple times on the screen, and have them all behave in the same way.
Right now I am using UIImageViews in my games, but i need to be able to keep track of each character and destroy them individually as necessary.
|
I'm doing the same type of thing in my game. You need to make a UIImageView for each character you put on the screen, then put them all into an array, then use a for loop to go through the array and do your actions for each character. Then when you want to destroy one, you just remove it from the array and the view. If you want example code for this, I made a post titled "need help looping through an array". Does this help?