I want to wait some time before firing a bullet because if I don't do it, then the bullet would fire unlimitedly. I tried using time.sleep but it does not work. Here is my code:
import pygame
pygame.init()
def fire_bullet():
bullet.fire()
# I want to wait here
does anyone know how to use pygame time?