I want to add a tail to a moving sprite, i’ve read on the internet that i should use particles, but they dont give the smooth line as in my example. Does anybody have a suggestion how to do this?

Here is an example with particles, which is not how i want it!

You can draw continuous connected lines by providing preX, PreY and nextX and nextY points
here is the code to draw lines also you can draw multi point paths. here is the sample code