开发者

Why I have warnings?

I'm working with cocos2d v0.99.5. I create CCAnimation and put it in a sprite.

CCAnimation *anim = [CCAnimation animationWithName:@"blink" delay:delay frames:frames];
[sprite addAnimation:anim];

Why I have warnings 'animationWithName:delay:frames' 开发者_JAVA百科is deprecated and 'addAnimation:' is deprecated?

My program works great. I'm interesting only why I have some warnings.


You are warned that your used methods are deprecated and will be removed in future cocos releases. So when you update cocos2d from 0.99.5 to something newer - your program may not "work great" anymore. I suggest you consult the documentation to see which methods should be used instead of these deprecated ones.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜