开发者

How to vibrate CCSprite in cocos2d

开发者 https://www.devze.com 2023-02-08 01:07 出处:网络
Can anyone tell me how to vibrate/shake CCSprite in cocos2d???开发者_如何学Pythonplz give me some example.If the object is static you could create a CCSequence of MoveTo actions - pixel or two to the

Can anyone tell me how to vibrate/shake CCSprite in cocos2d???开发者_如何学Pythonplz give me some example.


If the object is static you could create a CCSequence of MoveTo actions - pixel or two to the one side and pixel to the other of the real position and repeat it with CCRepeat how many times you need or use CCRepeatForever and remove action by tag with CCActionManager method removeActionByTag:(int)tag target:(id)target when some event occur.

0

精彩评论

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