开发者

cocos2d sprite explosion

开发者 https://www.devze.com 2023-01-26 05:37 出处:网络
Hey, does somebody know, how i can let a sprite explode? a co开发者_运维技巧de like [[CCSprite spriteWithFile:@\"supermario.png\"] runAction:[CCExplode action......]];

Hey, does somebody know, how i can let a sprite explode? a co开发者_运维技巧de like [[CCSprite spriteWithFile:@"supermario.png"] runAction:[CCExplode action......]]; would be great!!!


The way you want to handle something like is to first put the explosion frames in an Array, then you want to create a CCAnimation where you would specify the delay between frames and then you would say, [mySprite runAction: myAnim].

0

精彩评论

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