How to make a trajectory line that looks like the one in Angry Birds?

Hi, i’m trying to make a trajectory line that looks like the one in angry birds. What i mean is, i want it to look like made of multiple points, rather than a single piece of line here is the picture.

I found the solution in this video: