0

So basically, ive created this idle clicker game, and I created "automakers" that add one "pencil" per second each. The game is written in python, using pygame library. Pencils is the in game currency. Right now, if you have 5 automakers for example, the display of pencils you have goes up in increments of 5. I want it to go up by 1, though, so it's more visually appealing. I still want you to get the amount of automakers you have per second, but I want the number to go up by 1 very fast every second rather than increments, if that makes sense.

Here's the code I have for the actual system, Im doing it in a thread.

def autoMaker():
    while True:
        user.pencils += user.autoMakers
        time.sleep(1)

automakerSystem = threading.Thread(target=autoMaker)
automakerSystem.start()

In the game loop, I have a drawWindow() function that is always updating the stats, one of which is the pencil count. How would I make this happen?

0 Answers0