开发者

Adjust particle file (.plist) in real time

I have a cocos2 project I'm working on and I'm wondering if there is a way to adjust a variable in my particle system .plist file in real time. i.e. adjust the x gravity to correlate with the speed of the player etc. I'开发者_高级运维m using particle designer to make the files initially.

Any suggestions or direction would be greatly appreciated.


After you initialize the particle from the file, just modify it's properties like you would to any other particle.

Open the particles header file (CCParticle.h, probably) to see what properties it has and what you can modify.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜