Easiest thing would be using the canvas plugin with "line to" and draw path.
If you wanna draw every x traveled use something like (posx, posy = global vars, set them to sprite.x and sprite.y at the start of the layout):
distance(sprite.x,sprite.y,posx,posy) greater of equal 10: call function "draw line"
set posx = sprite.x
set posy = sprite.y
and function draw line contains the drawing on the canvas.
This would prevent you from having to deal with a big number of objects.
If you playing area is very big ofc it is better to just spawn those points and then delete them when offscreen or use multiple canvases.