How to implement a trail in cocos2dx

How to implement a trail in cocos2dx


Hi all,

please any one give a logic for trail in cocos


I think @tranthor can help you


Trail? Explain with more details plz


Look up

MotionStreak* streak = MotionStreak::create(0.1f, 3, 45, Color3B::WHITE, "res/Arsenal/blueStreak.png");


I’d like to implement a trail (like the sprites circle in ZumaDeluxe) that chase my sprite.I already used CCMotionStreak,

please give me some solution.


We generally appreciate seeing some effort when you post topics :slight_smile:

If you don’t know how to implement something, something like: I want to implement a trail in Cocos2d-x. I don’t know how. I think I could try x,y,z.

In this case @bilalmirza gave you a start with MotionStreak. I’d suggest taking a look at the API-Ref for it:


Sorry I don’t understand what you mean.


Typing from my phone. Corrected. I apologize.