I am creating a game in pygame which has some buttons and on every button pressed a text is displayed on screen on same position (co-ordinates) but the text is overlapping each other.
How can I solve this problem?
You need to fill in the screen with for example a background image or just white color to erase the old text before writing the new one.
How to remove a text in pygame?