I am struggling to find a way to make a timer that can blit this image every 2 seconds. It's an image of a net and is meant to trap my player on my platform game. The net is dropped from a helicopter which I wont go into details about. At the moment the net drops once and I want it to drop continuously ever 2 seconds. Any help would be appreciated.
class Net:
def __init__(self,x,y):
self.x = x
self.y = y
self.width = 60
self.height = 30
self.velocity = 0
self.netimage = pygame.image.load("Images/net.png")
self.GroundCollision = False
def drop(self, heli, player, gravity):
screen.blit(self.netimage, (self.x,self.y))
self.velocity += gravity
self.y += self.velocity