Stats won't decrease over time.
MatthewGilmour

Basically I have three stats, hunger thirst and temperature. They are supposed to be decreased by 1 point every second, and can be shown by pressing 'e'. The problem is that they will only go down by one point to 99, then stop. I've tried as much as I can think of but to no avail. Any help would be much appreciated.

You are viewing a single comment. View All
Answered by OldWizard209 [earned 5 cycles]
View Answer
OldWizard209

I see. my code doesn't work. And that is because python interprets code line by line. To actually decrease the stats, while letting the user play the game, you will need to use the threading module to actually run the code that decreases the stats in the background, while the user plays the game. Sorry for the late reply. @MatthewGilmour