Quote:
Originally Posted by TomWhitaker
Hi all, I'm new here so please move if this is in the wrong forum..
I'm currently making a game where you have to tap monsters to make them disappear, but it looks a bit tame when they just disappear off the screen.. therefore I was wondering if anyone knew how to make the images kind of break up in an explosion effect or something similar?
Thanks in advance 
|
The easiest thing to do would probably be to set up a UIImageView frame animation. You could create the animation frames in the image editor of your choice.
Take a look at the docs for UIImageView in the XCode help system. It has a property animationImages that takes an array of images to use for a "flip book style" animation where it shows frame after frame. There is a section at the beginning of the docs for UIImageView called "Animating Images". It lists the methods you would use.
I would suggest either installing an animationImages array into a monster's UIImageView when it dies, or hiding that monster and replacing it with an image view set up with an array of animationImages already set up.