cocos2d 刀光拖尾

使用粒子系统:

streak = CCMotionStreak::create(1, 16, 16, ccc3(255, 255, 0), "fire.png");
streak->setPosition(ccp(240, 160));
this->addChild(streak, 5);

把此粒子系统添加到目标上,跟着目标移动就可以了

posted @ 2014-06-20 18:20  无语男  阅读(256)  评论(0)    收藏  举报