开发者

Running an animation on a CCSprite

开发者 https://www.devze.com 2023-02-07 20:31 出处:网络
How does one run an animation or a series of pngs(e.g. 4 pngs) on a CCSp开发者_StackOverflow社区rite?

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

精彩评论

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

关注公众号