I want to do a trail for my game. I have a ball and I want that the ball has a trail. I want that the trail be like the trail of the game duet. I try to do it with ShapeRenderer but it don't work.
How I can do it?
What you're looking for is called a ParticleEffect. You can see the official tutorial for some basics. There are also some good youtube videos that explain the whole process, from building the effects and until how to use them in code.
Email codedump link for How I can do a trail in Libgdx?