Quote:
Originally Posted by Jason Rogers
hi
I would go for a system like this
1) store the delay you want to apply (I would put in the detail of you custom frame)
2)do a for(MyCustomView *inst in TheCollectionThatGroupsMyListOfElement)
in which you can happely launch a timer that will animate you View and set the delay of the timer to the value stored in you custom view
Timer Programming Topics for Cocoa: Using Timers
I don't know what you mean by sprite ut if you mean a composed view (icon + text + another iamge etc
then just create a custom UIView in wich you build your custom display
i did like that to create a image with some text underneath
hope it helped
jason
|
Thank you for help. The "sprite" is a word in cocos2d library, you can check it out here:
cocos2d-iphone - Google Code
A sprite can flip, scale, move and do other actions, and it can have some children(other sprites).
I want to use the library to improve my development process, it seems that i need to implement sprite animation myself.But i just think if there is a way to do it with cocos2d Animation class.
NSTimer class is helpful to me, thanks.