iPhone Dev: Animating PNG Sequences

后端 未结 4 677
攒了一身酷
攒了一身酷 2021-01-03 04:44

What is the best or recommended technique for animating PNG Sequences.
Heres what I\'ve learned:

Do it Manually
Using M

4条回答
  •  萌比男神i
    2021-01-03 05:26

    It depends on how you are going to use the sprites. If you just need a simple looping sprite then the UIImage method is great. If you want more granular control then you will be happier loading the images into an array and cycling them using a NSTimer to handle the timing. Personally I use the array method most often because it leaves me more options in the future (like detecting when animations have completed). One more suggestion would be to check out the cocos2d project. Its sprite is alot more powerful than either of these suggestions.

提交回复
热议问题