My pygame character leaves trails when I move it [duplicate]
问题 This question already has answers here : Pygame how to fix 'trailing pixels'? (4 answers) Closed 3 years ago . I've been trying to make a game in Python but when I move my character it leaves a trail behind. I know it doesn't show that much but if you get close you can see the trail and it really bothers me. Here's my code: import pygame import os from pygame import mixer pygame.init() mixer.init() width = 800 height = 600 black = (0,0,0) white = (255,255,255) ship_width = 56 ship_height = 64