Sprite leaving unwanted trail

I set up a basic player class, and I’ve given the player the ability to move and that’s it. When I use any overload of the draw method, the player leaves behind a glitchy trail, but only when there is no sprite behind it. The trail also goes away when I resize the window, but immediately starts up again when I move the player. Help would be appreciated.

Here is a video: https://www.youtube.com/watch?v=Q4kosF4V4-I

1 Like

Are you calling Clear prior to drawing?

1 Like

Thanks! That was it. Somehow I deleted that without realizing.

1 Like