cocos2d中的轨迹效果

发布于 2024-10-09 06:13:34 字数 248 浏览 0 评论 0原文

先生,

请参阅下面的链接,其中指定了我到目前为止使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

望她远 2024-10-16 06:13:34

我认为《水果忍者》中的“轨迹效果”最好通过使用自定义粒子效果来实现。您可以使用粒子设计器 (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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文