开发者

Running an animation on a CCSprite

How does one run an animation or a series of pngs(e.g. 4 pngs) on a CCSp开发者_StackOverflow社区rite?

Constantly make the CCSprites image be this animation series?

Also, how does one rotate a CCSprite's orientation? e.g. 45 degrees rotation to the left or right

Thanks


Yes, you want to update the sprite's source every so often according to a timer.

For rotating, check out this tutorial: http://www.raywenderlich.com/692/rotating-turrets

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜