Create short trail for the object

Create short trail for the object
0.0 0

#1

I have an object in my game and I would like to add a trail (large at start, and small at the end) similar to the image below:

https://lh3.googleusercontent.com/JISUAYMQiCHnAnTBBOlj0CeI8gkf_SkgN33GW_MaIFFoVz3qlwEyWoT2TCa3LhrkuQk=h900

I’ve be trying to use MotionStreak but can’t achieve the desired effect. Does anyone know how to create something similar as on the image?


#2

If you use an Action (To or By), you could always use points along that action and make your trail.


#3

Can you write more concrete? I’ve used Action, but it only works for discrete trail (like a snake from blocks). I couldn’t create a smooth trail like example in first post.


#4

Actions use tweening and easing to create a smooth transition from point A to point B. Take a look here: http://cocos2d-x.org/docs/programmers-guide/actions/index.html under Easing header.