You can remix this, copy the code, backpack it or whatever to make trails for your games and characters but to move the sprite use your mouse and trails will form.
Thanks to @griffpatch for this turtorial