I'm making a simple rpg game with pygame and I've created a very powerful weapon. I want to make a delay so that the player can only use it after 5 seconds. Tried doing it with time.sleep() but instead of a delay my code just freezes for 10 seconds. Tell me please
Asked
Active
Viewed 16 times
0
-
https://stackoverflow.com/questions/45520104/counting-time-in-pygame – Hussien Mostafa Jul 24 '22 at 10:37
-
does this answer your question ? – Hussien Mostafa Jul 24 '22 at 10:38
-
https://www.pygame.org/docs/ref/time.html – Hussien Mostafa Jul 24 '22 at 10:38
-
https://stackoverflow.com/questions/18839039/how-to-wait-some-time-in-pygame – Hussien Mostafa Jul 24 '22 at 10:39