How to remove/replace text in pygame
问题 I'm fairly new to pygame and ive hit my first stump which I cannot find an answer for.. After blitting text, then changing the string for the same variable, the game instead of replacing the original text with the new, overlaps the two texts..? 回答1: You have to erase the old text first. Surfaces created by Font.render are ordinary surfaces. Once a Surface is blit, its contents become part of the destination surface, and you have to manipulate the destination surface to erase whatever was blit