cocos2d中的轨迹效果
先生,
请参阅下面的链接,其中指定了我到目前为止使用 ccRibbon 类所实现的目标。我需要在该类中进行一些改进。任何想法都暗示着我。我不想让条纹消失,而是喜欢将其移动到执行触摸过程的任何地方。谢谢。
“http://img64.imageshack.us/img64/4044/fromphixrwe.jpg”“http://img440.imageshack.us/img440/8497/fromphixrkq.jpg
”
Sir,
Refer the below link which specifies what i achieve upto now using ccRibbon class.I need some little bit improvement in that one.Any ideas intimate me.Instead of fading a streak i like to move it wherever touch process has been carried out.Thanks.
"http://img64.imageshack.us/img64/4044/fromphixrwe.jpg"
"http://img440.imageshack.us/img440/8497/fromphixrkq.jpg"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为《水果忍者》中的“轨迹效果”最好通过使用自定义粒子效果来实现。您可以使用粒子设计器 (http://articledesigner.71squared.com/) 创建粒子效果,然后使用适当的 CCParticle* 类(即特定于您的粒子效果的 CCParticleSystem 的派生类)将它们集成到您的 Cocos2D 项目中。
您还可以考虑通过自己实现 CCRibbon 来创建自己的 CCMotionStreak 版本。
I think the "trail effect" in Fruit Ninja would be best accomplished by using a custom particle effect. You can create particle effects using Particle Designer (http://particledesigner.71squared.com/) and then integrate them into your Cocos2D project using the appropriate CCParticle* classes (ie; a derived class of CCParticleSystem specific to your particle effect).
You could also look into creating your own version of CCMotionStreak by implementing CCRibbon yourself.