How to resize particles already exist in a particle system of Cocos2d -
i'm new cocos2d , game development. use particle system in cocos2d , want dynamically resize particles exist on screen. tried change startsize, endsize , other value, influence particles emitted. how achieve effect want.
everything inherits ccnode has scale property. when add particle scene can change scale then
ccparticlesystemquad *jewelxplodeparticle = [ccparticlesystemquad particlewithfile:@"bam.plist"]; jewelxplodeparticle.position = ccp(100,100); jewelxplodeparticle.autoremoveonfinish = true; [self addchild:jewelxplodeparticle z:1 tag:1]; jewelxplodeparticle.scale = 3.0f
or particle have added following.
ccparticlesystemquad *jewelxplodeparticle = (ccparticlesystemquad*)[self getchildbytag:1]; jewelxplodeparticle.scale = 3.0f
scale works same ccsprite.
Comments
Post a Comment