I want to show a trail of the last points that the object has been in, but I want that trail to always be a certain length, regardless of the object's speed. How can I do that?
At the moment, I have an array of 100 points. When it gets full, I overwrite the oldest one.
However, if the object is staying still (or moves slowly), the old points are overwritten and the trail becomes shorter. I want the the trail to always be 100 pixels total length.