I'm making the google dinosaur game in python and i have multithreaded the scoring system. The multi-threading works but pygame keeps popping up an error that says "Text has zero width"
def scoreCounter(currentScore, block1, block2, delay):
while(True):
currentScore += 1
scoreText = scoreFont.render("Score {0}".format(currentScore), 1, (0, 0, 0))
screen.blit(scoreText, (1, 1))
pygame.time.wait(delay)
#delay is changed based on the current score, default is 100
#rest of the code is just evaluating whether or not the score has reached a certain point
block1 and block2 are references to the two block that appear as obstacles
The result is that it's supposed to update the score. Keeps popping up the same error.